Commit 53149e10 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] add heap-symbols

Bug: v8:7684
Change-Id: Id27d6c9d011c6093b89c11edca71fbc6e5d9a0fb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1514192
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60174}
parent 11d83586
...@@ -2841,8 +2841,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2841,8 +2841,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kDateTimeFormatPrototypeFormatToParts, 1, Builtins::kDateTimeFormatPrototypeFormatToParts, 1,
false); false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->format_string(),
factory->InternalizeUtf8String("format"),
Builtins::kDateTimeFormatPrototypeFormat, false); Builtins::kDateTimeFormatPrototypeFormat, false);
} }
...@@ -2873,8 +2872,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2873,8 +2872,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
SimpleInstallFunction(isolate_, prototype, "formatToParts", SimpleInstallFunction(isolate_, prototype, "formatToParts",
Builtins::kNumberFormatPrototypeFormatToParts, 1, Builtins::kNumberFormatPrototypeFormatToParts, 1,
false); false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->format_string(),
factory->InternalizeUtf8String("format"),
Builtins::kNumberFormatPrototypeFormatNumber, false); Builtins::kNumberFormatPrototypeFormatNumber, false);
} }
...@@ -2899,8 +2897,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2899,8 +2897,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kCollatorPrototypeResolvedOptions, 0, Builtins::kCollatorPrototypeResolvedOptions, 0,
false); false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->compare_string(),
factory->InternalizeUtf8String("compare"),
Builtins::kCollatorPrototypeCompare, false); Builtins::kCollatorPrototypeCompare, false);
} }
...@@ -2924,24 +2921,19 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2924,24 +2921,19 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kV8BreakIteratorPrototypeResolvedOptions, Builtins::kV8BreakIteratorPrototypeResolvedOptions,
0, false); 0, false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->adoptText_string(),
factory->InternalizeUtf8String("adoptText"),
Builtins::kV8BreakIteratorPrototypeAdoptText, false); Builtins::kV8BreakIteratorPrototypeAdoptText, false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->first_string(),
factory->InternalizeUtf8String("first"),
Builtins::kV8BreakIteratorPrototypeFirst, false); Builtins::kV8BreakIteratorPrototypeFirst, false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->next_string(),
factory->InternalizeUtf8String("next"),
Builtins::kV8BreakIteratorPrototypeNext, false); Builtins::kV8BreakIteratorPrototypeNext, false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->current_string(),
factory->InternalizeUtf8String("current"),
Builtins::kV8BreakIteratorPrototypeCurrent, false); Builtins::kV8BreakIteratorPrototypeCurrent, false);
SimpleInstallGetter(isolate_, prototype, SimpleInstallGetter(isolate_, prototype, factory->breakType_string(),
factory->InternalizeUtf8String("breakType"),
Builtins::kV8BreakIteratorPrototypeBreakType, false); Builtins::kV8BreakIteratorPrototypeBreakType, false);
} }
...@@ -4390,36 +4382,26 @@ void Genesis::InitializeGlobal_harmony_locale() { ...@@ -4390,36 +4382,26 @@ void Genesis::InitializeGlobal_harmony_locale() {
SimpleInstallFunction(isolate(), prototype, "minimize", SimpleInstallFunction(isolate(), prototype, "minimize",
Builtins::kLocalePrototypeMinimize, 0, false); Builtins::kLocalePrototypeMinimize, 0, false);
// Base locale getters. // Base locale getters.
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->language_string(),
factory()->InternalizeUtf8String("language"),
Builtins::kLocalePrototypeLanguage, true); Builtins::kLocalePrototypeLanguage, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->script_string(),
factory()->InternalizeUtf8String("script"),
Builtins::kLocalePrototypeScript, true); Builtins::kLocalePrototypeScript, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->region_string(),
factory()->InternalizeUtf8String("region"),
Builtins::kLocalePrototypeRegion, true); Builtins::kLocalePrototypeRegion, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->baseName_string(),
factory()->InternalizeUtf8String("baseName"),
Builtins::kLocalePrototypeBaseName, true); Builtins::kLocalePrototypeBaseName, true);
// Unicode extension getters. // Unicode extension getters.
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->calendar_string(),
factory()->InternalizeUtf8String("calendar"),
Builtins::kLocalePrototypeCalendar, true); Builtins::kLocalePrototypeCalendar, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->caseFirst_string(),
factory()->InternalizeUtf8String("caseFirst"),
Builtins::kLocalePrototypeCaseFirst, true); Builtins::kLocalePrototypeCaseFirst, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->collation_string(),
factory()->InternalizeUtf8String("collation"),
Builtins::kLocalePrototypeCollation, true); Builtins::kLocalePrototypeCollation, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->hourCycle_string(),
factory()->InternalizeUtf8String("hourCycle"),
Builtins::kLocalePrototypeHourCycle, true); Builtins::kLocalePrototypeHourCycle, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->numeric_string(),
factory()->InternalizeUtf8String("numeric"),
Builtins::kLocalePrototypeNumeric, true); Builtins::kLocalePrototypeNumeric, true);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->numberingSystem_string(),
factory()->InternalizeUtf8String("numberingSystem"),
Builtins::kLocalePrototypeNumberingSystem, true); Builtins::kLocalePrototypeNumberingSystem, true);
} }
...@@ -4479,19 +4461,16 @@ void Genesis::InitializeGlobal_harmony_intl_segmenter() { ...@@ -4479,19 +4461,16 @@ void Genesis::InitializeGlobal_harmony_intl_segmenter() {
Builtins::kSegmentIteratorPrototypePreceding, 0, Builtins::kSegmentIteratorPrototypePreceding, 0,
false); false);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->index_string(),
factory()->InternalizeUtf8String("index"),
Builtins::kSegmentIteratorPrototypeIndex, false); Builtins::kSegmentIteratorPrototypeIndex, false);
SimpleInstallGetter(isolate(), prototype, SimpleInstallGetter(isolate(), prototype, factory()->breakType_string(),
factory()->InternalizeUtf8String("breakType"),
Builtins::kSegmentIteratorPrototypeBreakType, false); Builtins::kSegmentIteratorPrototypeBreakType, false);
// Setup SegmentIterator constructor. // Setup SegmentIterator constructor.
Handle<String> name_string = Handle<String> name_string =
Name::ToFunctionName( Name::ToFunctionName(isolate(),
isolate(), isolate()->factory()->SegmentIterator_string())
isolate()->factory()->InternalizeUtf8String("SegmentIterator"))
.ToHandleChecked(); .ToHandleChecked();
Handle<JSFunction> segment_iterator_fun = CreateFunction( Handle<JSFunction> segment_iterator_fun = CreateFunction(
isolate(), name_string, JS_INTL_SEGMENT_ITERATOR_TYPE, isolate(), name_string, JS_INTL_SEGMENT_ITERATOR_TYPE,
......
...@@ -7,15 +7,21 @@ ...@@ -7,15 +7,21 @@
#ifdef V8_INTL_SUPPORT #ifdef V8_INTL_SUPPORT
#define INTERNALIZED_STRING_LIST_GENERATOR_INTL(V, _) \ #define INTERNALIZED_STRING_LIST_GENERATOR_INTL(V, _) \
V(_, adoptText_string, "adoptText") \
V(_, baseName_string, "baseName") \
V(_, breakType_string, "breakType") \ V(_, breakType_string, "breakType") \
V(_, calendar_string, "calendar") \ V(_, calendar_string, "calendar") \
V(_, cardinal_string, "cardinal") \ V(_, cardinal_string, "cardinal") \
V(_, caseFirst_string, "caseFirst") \ V(_, caseFirst_string, "caseFirst") \
V(_, compare_string, "compare") \
V(_, current_string, "current") \
V(_, dateStyle_string, "dateStyle") \ V(_, dateStyle_string, "dateStyle") \
V(_, day_string, "day") \ V(_, day_string, "day") \
V(_, dayPeriod_string, "dayPeriod") \ V(_, dayPeriod_string, "dayPeriod") \
V(_, decimal_string, "decimal") \ V(_, decimal_string, "decimal") \
V(_, era_string, "era") \ V(_, era_string, "era") \
V(_, first_string, "first") \
V(_, format_string, "format") \
V(_, fraction_string, "fraction") \ V(_, fraction_string, "fraction") \
V(_, full_string, "full") \ V(_, full_string, "full") \
V(_, granularity_string, "granularity") \ V(_, granularity_string, "granularity") \
...@@ -36,6 +42,7 @@ ...@@ -36,6 +42,7 @@
V(_, Invalid_Date_string, "Invalid Date") \ V(_, Invalid_Date_string, "Invalid Date") \
V(_, integer_string, "integer") \ V(_, integer_string, "integer") \
V(_, kana_string, "kana") \ V(_, kana_string, "kana") \
V(_, language_string, "language") \
V(_, letter_string, "letter") \ V(_, letter_string, "letter") \
V(_, list_string, "list") \ V(_, list_string, "list") \
V(_, literal_string, "literal") \ V(_, literal_string, "literal") \
...@@ -44,13 +51,13 @@ ...@@ -44,13 +51,13 @@
V(_, lower_string, "lower") \ V(_, lower_string, "lower") \
V(_, maximumFractionDigits_string, "maximumFractionDigits") \ V(_, maximumFractionDigits_string, "maximumFractionDigits") \
V(_, maximumSignificantDigits_string, "maximumSignificantDigits") \ V(_, maximumSignificantDigits_string, "maximumSignificantDigits") \
V(_, nan_string, "nan") \
V(_, minimumFractionDigits_string, "minimumFractionDigits") \ V(_, minimumFractionDigits_string, "minimumFractionDigits") \
V(_, minimumIntegerDigits_string, "minimumIntegerDigits") \ V(_, minimumIntegerDigits_string, "minimumIntegerDigits") \
V(_, minimumSignificantDigits_string, "minimumSignificantDigits") \ V(_, minimumSignificantDigits_string, "minimumSignificantDigits") \
V(_, minusSign_string, "minusSign") \ V(_, minusSign_string, "minusSign") \
V(_, minute_string, "minute") \ V(_, minute_string, "minute") \
V(_, month_string, "month") \ V(_, month_string, "month") \
V(_, nan_string, "nan") \
V(_, none_string, "none") \ V(_, none_string, "none") \
V(_, normal_string, "normal") \ V(_, normal_string, "normal") \
V(_, numberingSystem_string, "numberingSystem") \ V(_, numberingSystem_string, "numberingSystem") \
...@@ -59,6 +66,7 @@ ...@@ -59,6 +66,7 @@
V(_, percentSign_string, "percentSign") \ V(_, percentSign_string, "percentSign") \
V(_, plusSign_string, "plusSign") \ V(_, plusSign_string, "plusSign") \
V(_, quarter_string, "quarter") \ V(_, quarter_string, "quarter") \
V(_, region_string, "region") \
V(_, second_string, "second") \ V(_, second_string, "second") \
V(_, segment_string, "segment") \ V(_, segment_string, "segment") \
V(_, SegmentIterator_string, "Segment Iterator") \ V(_, SegmentIterator_string, "Segment Iterator") \
......
...@@ -302,46 +302,46 @@ KNOWN_MAPS = { ...@@ -302,46 +302,46 @@ KNOWN_MAPS = {
("RO_SPACE", 0x026e1): (111, "Tuple2Map"), ("RO_SPACE", 0x026e1): (111, "Tuple2Map"),
("RO_SPACE", 0x02781): (113, "ArrayBoilerplateDescriptionMap"), ("RO_SPACE", 0x02781): (113, "ArrayBoilerplateDescriptionMap"),
("RO_SPACE", 0x02ac1): (100, "InterceptorInfoMap"), ("RO_SPACE", 0x02ac1): (100, "InterceptorInfoMap"),
("RO_SPACE", 0x04fe1): (89, "AccessCheckInfoMap"), ("RO_SPACE", 0x050a9): (89, "AccessCheckInfoMap"),
("RO_SPACE", 0x05031): (90, "AccessorInfoMap"), ("RO_SPACE", 0x050f9): (90, "AccessorInfoMap"),
("RO_SPACE", 0x05081): (91, "AccessorPairMap"), ("RO_SPACE", 0x05149): (91, "AccessorPairMap"),
("RO_SPACE", 0x050d1): (92, "AliasedArgumentsEntryMap"), ("RO_SPACE", 0x05199): (92, "AliasedArgumentsEntryMap"),
("RO_SPACE", 0x05121): (93, "AllocationMementoMap"), ("RO_SPACE", 0x051e9): (93, "AllocationMementoMap"),
("RO_SPACE", 0x05171): (94, "AsmWasmDataMap"), ("RO_SPACE", 0x05239): (94, "AsmWasmDataMap"),
("RO_SPACE", 0x051c1): (95, "AsyncGeneratorRequestMap"), ("RO_SPACE", 0x05289): (95, "AsyncGeneratorRequestMap"),
("RO_SPACE", 0x05211): (96, "ClassPositionsMap"), ("RO_SPACE", 0x052d9): (96, "ClassPositionsMap"),
("RO_SPACE", 0x05261): (97, "DebugInfoMap"), ("RO_SPACE", 0x05329): (97, "DebugInfoMap"),
("RO_SPACE", 0x052b1): (98, "FunctionTemplateInfoMap"), ("RO_SPACE", 0x05379): (98, "FunctionTemplateInfoMap"),
("RO_SPACE", 0x05301): (99, "FunctionTemplateRareDataMap"), ("RO_SPACE", 0x053c9): (99, "FunctionTemplateRareDataMap"),
("RO_SPACE", 0x05351): (101, "InterpreterDataMap"), ("RO_SPACE", 0x05419): (101, "InterpreterDataMap"),
("RO_SPACE", 0x053a1): (102, "ModuleInfoEntryMap"), ("RO_SPACE", 0x05469): (102, "ModuleInfoEntryMap"),
("RO_SPACE", 0x053f1): (103, "ModuleMap"), ("RO_SPACE", 0x054b9): (103, "ModuleMap"),
("RO_SPACE", 0x05441): (104, "ObjectTemplateInfoMap"), ("RO_SPACE", 0x05509): (104, "ObjectTemplateInfoMap"),
("RO_SPACE", 0x05491): (105, "PromiseCapabilityMap"), ("RO_SPACE", 0x05559): (105, "PromiseCapabilityMap"),
("RO_SPACE", 0x054e1): (106, "PromiseReactionMap"), ("RO_SPACE", 0x055a9): (106, "PromiseReactionMap"),
("RO_SPACE", 0x05531): (107, "PrototypeInfoMap"), ("RO_SPACE", 0x055f9): (107, "PrototypeInfoMap"),
("RO_SPACE", 0x05581): (108, "ScriptMap"), ("RO_SPACE", 0x05649): (108, "ScriptMap"),
("RO_SPACE", 0x055d1): (109, "StackFrameInfoMap"), ("RO_SPACE", 0x05699): (109, "StackFrameInfoMap"),
("RO_SPACE", 0x05621): (110, "StackTraceFrameMap"), ("RO_SPACE", 0x056e9): (110, "StackTraceFrameMap"),
("RO_SPACE", 0x05671): (112, "Tuple3Map"), ("RO_SPACE", 0x05739): (112, "Tuple3Map"),
("RO_SPACE", 0x056c1): (114, "WasmDebugInfoMap"), ("RO_SPACE", 0x05789): (114, "WasmDebugInfoMap"),
("RO_SPACE", 0x05711): (115, "WasmExceptionTagMap"), ("RO_SPACE", 0x057d9): (115, "WasmExceptionTagMap"),
("RO_SPACE", 0x05761): (116, "WasmExportedFunctionDataMap"), ("RO_SPACE", 0x05829): (116, "WasmExportedFunctionDataMap"),
("RO_SPACE", 0x057b1): (117, "CallableTaskMap"), ("RO_SPACE", 0x05879): (117, "CallableTaskMap"),
("RO_SPACE", 0x05801): (118, "CallbackTaskMap"), ("RO_SPACE", 0x058c9): (118, "CallbackTaskMap"),
("RO_SPACE", 0x05851): (119, "PromiseFulfillReactionJobTaskMap"), ("RO_SPACE", 0x05919): (119, "PromiseFulfillReactionJobTaskMap"),
("RO_SPACE", 0x058a1): (120, "PromiseRejectReactionJobTaskMap"), ("RO_SPACE", 0x05969): (120, "PromiseRejectReactionJobTaskMap"),
("RO_SPACE", 0x058f1): (121, "PromiseResolveThenableJobTaskMap"), ("RO_SPACE", 0x059b9): (121, "PromiseResolveThenableJobTaskMap"),
("RO_SPACE", 0x05941): (122, "FinalizationGroupCleanupJobTaskMap"), ("RO_SPACE", 0x05a09): (122, "FinalizationGroupCleanupJobTaskMap"),
("RO_SPACE", 0x05991): (123, "AllocationSiteWithWeakNextMap"), ("RO_SPACE", 0x05a59): (123, "AllocationSiteWithWeakNextMap"),
("RO_SPACE", 0x059e1): (123, "AllocationSiteWithoutWeakNextMap"), ("RO_SPACE", 0x05aa9): (123, "AllocationSiteWithoutWeakNextMap"),
("RO_SPACE", 0x05a31): (157, "LoadHandler1Map"), ("RO_SPACE", 0x05af9): (157, "LoadHandler1Map"),
("RO_SPACE", 0x05a81): (157, "LoadHandler2Map"), ("RO_SPACE", 0x05b49): (157, "LoadHandler2Map"),
("RO_SPACE", 0x05ad1): (157, "LoadHandler3Map"), ("RO_SPACE", 0x05b99): (157, "LoadHandler3Map"),
("RO_SPACE", 0x05b21): (165, "StoreHandler0Map"), ("RO_SPACE", 0x05be9): (165, "StoreHandler0Map"),
("RO_SPACE", 0x05b71): (165, "StoreHandler1Map"), ("RO_SPACE", 0x05c39): (165, "StoreHandler1Map"),
("RO_SPACE", 0x05bc1): (165, "StoreHandler2Map"), ("RO_SPACE", 0x05c89): (165, "StoreHandler2Map"),
("RO_SPACE", 0x05c11): (165, "StoreHandler3Map"), ("RO_SPACE", 0x05cd9): (165, "StoreHandler3Map"),
("MAP_SPACE", 0x00139): (1057, "ExternalMap"), ("MAP_SPACE", 0x00139): (1057, "ExternalMap"),
("MAP_SPACE", 0x00189): (1073, "JSMessageObjectMap"), ("MAP_SPACE", 0x00189): (1073, "JSMessageObjectMap"),
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment