@@ -659,10 +659,6 @@ size_t SnapshotCreator::AddContext(Local<Context> context,
659
659
return index ;
660
660
}
661
661
662
- size_t SnapshotCreator::AddTemplate (Local<Template> template_obj) {
663
- return AddData (template_obj);
664
- }
665
-
666
662
size_t SnapshotCreator::AddData (i::Address object) {
667
663
DCHECK_NE (object, i::kNullAddress );
668
664
SnapshotCreatorData* data = SnapshotCreatorData::cast (data_);
@@ -1523,21 +1519,6 @@ Local<FunctionTemplate> FunctionTemplate::New(
1523
1519
return templ;
1524
1520
}
1525
1521
1526
- MaybeLocal<FunctionTemplate> FunctionTemplate::FromSnapshot (Isolate* isolate,
1527
- size_t index) {
1528
- i::Isolate* i_isolate = reinterpret_cast <i::Isolate*>(isolate);
1529
- i::FixedArray serialized_objects = i_isolate->heap ()->serialized_objects ();
1530
- int int_index = static_cast <int >(index );
1531
- if (int_index < serialized_objects.length ()) {
1532
- i::Object info = serialized_objects.get (int_index);
1533
- if (info.IsFunctionTemplateInfo ()) {
1534
- return Utils::ToLocal (i::Handle <i::FunctionTemplateInfo>(
1535
- i::FunctionTemplateInfo::cast (info), i_isolate));
1536
- }
1537
- }
1538
- return Local<FunctionTemplate>();
1539
- }
1540
-
1541
1522
Local<FunctionTemplate> FunctionTemplate::NewWithCache (
1542
1523
Isolate* isolate, FunctionCallback callback, Local<Private> cache_property,
1543
1524
Local<Value> data, Local<Signature> signature, int length,
@@ -1730,21 +1711,6 @@ Local<ObjectTemplate> ObjectTemplate::New(
1730
1711
return ObjectTemplateNew (isolate, constructor, false );
1731
1712
}
1732
1713
1733
- MaybeLocal<ObjectTemplate> ObjectTemplate::FromSnapshot (Isolate* isolate,
1734
- size_t index) {
1735
- i::Isolate* i_isolate = reinterpret_cast <i::Isolate*>(isolate);
1736
- i::FixedArray serialized_objects = i_isolate->heap ()->serialized_objects ();
1737
- int int_index = static_cast <int >(index );
1738
- if (int_index < serialized_objects.length ()) {
1739
- i::Object info = serialized_objects.get (int_index);
1740
- if (info.IsObjectTemplateInfo ()) {
1741
- return Utils::ToLocal (i::Handle <i::ObjectTemplateInfo>(
1742
- i::ObjectTemplateInfo::cast (info), i_isolate));
1743
- }
1744
- }
1745
- return Local<ObjectTemplate>();
1746
- }
1747
-
1748
1714
// Ensure that the object template has a constructor. If no
1749
1715
// constructor is available we create one.
1750
1716
static i::Handle <i::FunctionTemplateInfo> EnsureConstructor (
0 commit comments