@@ -631,10 +631,6 @@ size_t SnapshotCreator::AddContext(Local<Context> context,
631
631
return index ;
632
632
}
633
633
634
- size_t SnapshotCreator::AddTemplate(Local<Template> template_obj) {
635
- return AddData(template_obj);
636
- }
637
-
638
634
size_t SnapshotCreator::AddData (i::Address object) {
639
635
DCHECK_NE (object, i::kNullAddress );
640
636
SnapshotCreatorData* data = SnapshotCreatorData::cast (data_);
@@ -1490,21 +1486,6 @@ Local<FunctionTemplate> FunctionTemplate::New(
1490
1486
return templ;
1491
1487
}
1492
1488
1493
- MaybeLocal<FunctionTemplate> FunctionTemplate::FromSnapshot(Isolate* isolate,
1494
- size_t index) {
1495
- i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1496
- i::FixedArray serialized_objects = i_isolate->heap()->serialized_objects();
1497
- int int_index = static_cast<int>(index);
1498
- if (int_index < serialized_objects.length()) {
1499
- i::Object info = serialized_objects.get(int_index);
1500
- if (info.IsFunctionTemplateInfo()) {
1501
- return Utils::ToLocal(i::Handle<i::FunctionTemplateInfo>(
1502
- i::FunctionTemplateInfo::cast(info), i_isolate));
1503
- }
1504
- }
1505
- return Local<FunctionTemplate>();
1506
- }
1507
-
1508
1489
Local<FunctionTemplate> FunctionTemplate::NewWithCache (
1509
1490
Isolate* isolate, FunctionCallback callback, Local<Private> cache_property,
1510
1491
Local<Value> data, Local<Signature> signature, int length,
@@ -1687,21 +1668,6 @@ Local<ObjectTemplate> ObjectTemplate::New(
1687
1668
return ObjectTemplateNew (isolate, constructor, false );
1688
1669
}
1689
1670
1690
- MaybeLocal<ObjectTemplate> ObjectTemplate::FromSnapshot(Isolate* isolate,
1691
- size_t index) {
1692
- i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1693
- i::FixedArray serialized_objects = i_isolate->heap()->serialized_objects();
1694
- int int_index = static_cast<int>(index);
1695
- if (int_index < serialized_objects.length()) {
1696
- i::Object info = serialized_objects.get(int_index);
1697
- if (info.IsObjectTemplateInfo()) {
1698
- return Utils::ToLocal(i::Handle<i::ObjectTemplateInfo>(
1699
- i::ObjectTemplateInfo::cast(info), i_isolate));
1700
- }
1701
- }
1702
- return Local<ObjectTemplate>();
1703
- }
1704
-
1705
1671
// Ensure that the object template has a constructor. If no
1706
1672
// constructor is available we create one.
1707
1673
static i::Handle <i::FunctionTemplateInfo> EnsureConstructor (
0 commit comments