Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V8
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
V8
Commits
f3ea8f46
Commit
f3ea8f46
authored
Sep 28, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Encoder
parent
4ad6b5b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
227 additions
and
195 deletions
+227
-195
BUILD.gn
BUILD.gn
+1
-0
builtins-definitions.h
src/builtins/builtins-definitions.h
+198
-195
builtins-encoder.cc
src/builtins/builtins-encoder.cc
+19
-0
bootstrapper.cc
src/init/bootstrapper.cc
+9
-0
No files found.
BUILD.gn
View file @
f3ea8f46
...
@@ -4314,6 +4314,7 @@ v8_source_set("v8_base_without_compiler") {
...
@@ -4314,6 +4314,7 @@ v8_source_set("v8_base_without_compiler") {
"src/builtins/builtins-internal.cc"
,
"src/builtins/builtins-internal.cc"
,
"src/builtins/builtins-intl.cc"
,
"src/builtins/builtins-intl.cc"
,
"src/builtins/builtins-json.cc"
,
"src/builtins/builtins-json.cc"
,
"src/builtins/builtins-encoder.cc"
,
"src/builtins/builtins-number.cc"
,
"src/builtins/builtins-number.cc"
,
"src/builtins/builtins-object.cc"
,
"src/builtins/builtins-object.cc"
,
"src/builtins/builtins-reflect.cc"
,
"src/builtins/builtins-reflect.cc"
,
...
...
src/builtins/builtins-definitions.h
View file @
f3ea8f46
...
@@ -620,6 +620,9 @@ namespace internal {
...
@@ -620,6 +620,9 @@ namespace internal {
CPP(JsonParse) \
CPP(JsonParse) \
CPP(JsonStringify) \
CPP(JsonStringify) \
\
\
/* ENCODER */
\
CPP(Encode) \
\
/* Web snapshots */
\
/* Web snapshots */
\
CPP(WebSnapshotSerialize) \
CPP(WebSnapshotSerialize) \
CPP(WebSnapshotDeserialize) \
CPP(WebSnapshotDeserialize) \
...
@@ -1704,204 +1707,204 @@ namespace internal {
...
@@ -1704,204 +1707,204 @@ namespace internal {
TFJ(StringFixedArrayFromIterable, kJSArgcReceiverSlots, kIterable) \
TFJ(StringFixedArrayFromIterable, kJSArgcReceiverSlots, kIterable) \
TFJ(TemporalInstantFixedArrayFromIterable, kJSArgcReceiverSlots, kIterable)
TFJ(TemporalInstantFixedArrayFromIterable, kJSArgcReceiverSlots, kIterable)
#define BUILTIN_LIST_BASE(CPP, TFJ, TFC, TFS, TFH, ASM) \
#define BUILTIN_LIST_BASE(CPP, TFJ, TFC, TFS, TFH, ASM)
\
BUILTIN_LIST_BASE_TIER0(CPP, TFJ, TFC, TFS, TFH, ASM) \
BUILTIN_LIST_BASE_TIER0(CPP, TFJ, TFC, TFS, TFH, ASM)
\
BUILTIN_LIST_BASE_TIER1(CPP, TFJ, TFC, TFS, TFH, ASM)
BUILTIN_LIST_BASE_TIER1(CPP, TFJ, TFC, TFS, TFH, ASM)
#ifdef V8_INTL_SUPPORT
#ifdef V8_INTL_SUPPORT
#define BUILTIN_LIST_INTL(CPP, TFJ, TFS) \
#define BUILTIN_LIST_INTL(CPP, TFJ, TFS)
\
/* ecma402 #sec-intl.collator */
\
/* ecma402 #sec-intl.collator */
\
CPP(CollatorConstructor) \
CPP(CollatorConstructor)
\
/* ecma 402 #sec-collator-compare-functions*/
\
/* ecma 402 #sec-collator-compare-functions*/
\
CPP(CollatorInternalCompare) \
CPP(CollatorInternalCompare)
\
/* ecma402 #sec-intl.collator.prototype.compare */
\
/* ecma402 #sec-intl.collator.prototype.compare */
\
CPP(CollatorPrototypeCompare) \
CPP(CollatorPrototypeCompare)
\
/* ecma402 #sec-intl.collator.supportedlocalesof */
\
/* ecma402 #sec-intl.collator.supportedlocalesof */
\
CPP(CollatorSupportedLocalesOf) \
CPP(CollatorSupportedLocalesOf)
\
/* ecma402 #sec-intl.collator.prototype.resolvedoptions */
\
/* ecma402 #sec-intl.collator.prototype.resolvedoptions */
\
CPP(CollatorPrototypeResolvedOptions) \
CPP(CollatorPrototypeResolvedOptions)
\
/* ecma402 #sup-date.prototype.tolocaledatestring */
\
/* ecma402 #sup-date.prototype.tolocaledatestring */
\
CPP(DatePrototypeToLocaleDateString) \
CPP(DatePrototypeToLocaleDateString)
\
/* ecma402 #sup-date.prototype.tolocalestring */
\
/* ecma402 #sup-date.prototype.tolocalestring */
\
CPP(DatePrototypeToLocaleString) \
CPP(DatePrototypeToLocaleString)
\
/* ecma402 #sup-date.prototype.tolocaletimestring */
\
/* ecma402 #sup-date.prototype.tolocaletimestring */
\
CPP(DatePrototypeToLocaleTimeString) \
CPP(DatePrototypeToLocaleTimeString)
\
/* ecma402 #sec-intl.datetimeformat */
\
/* ecma402 #sec-intl.datetimeformat */
\
CPP(DateTimeFormatConstructor) \
CPP(DateTimeFormatConstructor)
\
/* ecma402 #sec-datetime-format-functions */
\
/* ecma402 #sec-datetime-format-functions */
\
CPP(DateTimeFormatInternalFormat) \
CPP(DateTimeFormatInternalFormat)
\
/* ecma402 #sec-intl.datetimeformat.prototype.format */
\
/* ecma402 #sec-intl.datetimeformat.prototype.format */
\
CPP(DateTimeFormatPrototypeFormat) \
CPP(DateTimeFormatPrototypeFormat)
\
/* ecma402 #sec-intl.datetimeformat.prototype.formatrange */
\
/* ecma402 #sec-intl.datetimeformat.prototype.formatrange */
\
CPP(DateTimeFormatPrototypeFormatRange) \
CPP(DateTimeFormatPrototypeFormatRange)
\
/* ecma402 #sec-intl.datetimeformat.prototype.formatrangetoparts */
\
/* ecma402 #sec-intl.datetimeformat.prototype.formatrangetoparts */
\
CPP(DateTimeFormatPrototypeFormatRangeToParts) \
CPP(DateTimeFormatPrototypeFormatRangeToParts)
\
/* ecma402 #sec-intl.datetimeformat.prototype.formattoparts */
\
/* ecma402 #sec-intl.datetimeformat.prototype.formattoparts */
\
CPP(DateTimeFormatPrototypeFormatToParts) \
CPP(DateTimeFormatPrototypeFormatToParts)
\
/* ecma402 #sec-intl.datetimeformat.prototype.resolvedoptions */
\
/* ecma402 #sec-intl.datetimeformat.prototype.resolvedoptions */
\
CPP(DateTimeFormatPrototypeResolvedOptions) \
CPP(DateTimeFormatPrototypeResolvedOptions)
\
/* ecma402 #sec-intl.datetimeformat.supportedlocalesof */
\
/* ecma402 #sec-intl.datetimeformat.supportedlocalesof */
\
CPP(DateTimeFormatSupportedLocalesOf) \
CPP(DateTimeFormatSupportedLocalesOf)
\
/* ecma402 #sec-Intl.DisplayNames */
\
/* ecma402 #sec-Intl.DisplayNames */
\
CPP(DisplayNamesConstructor) \
CPP(DisplayNamesConstructor)
\
/* ecma402 #sec-Intl.DisplayNames.prototype.of */
\
/* ecma402 #sec-Intl.DisplayNames.prototype.of */
\
CPP(DisplayNamesPrototypeOf) \
CPP(DisplayNamesPrototypeOf)
\
/* ecma402 #sec-Intl.DisplayNames.prototype.resolvedOptions */
\
/* ecma402 #sec-Intl.DisplayNames.prototype.resolvedOptions */
\
CPP(DisplayNamesPrototypeResolvedOptions) \
CPP(DisplayNamesPrototypeResolvedOptions)
\
/* ecma402 #sec-Intl.DisplayNames.supportedLocalesOf */
\
/* ecma402 #sec-Intl.DisplayNames.supportedLocalesOf */
\
CPP(DisplayNamesSupportedLocalesOf) \
CPP(DisplayNamesSupportedLocalesOf)
\
/* ecma402 #sec-intl.getcanonicallocales */
\
/* ecma402 #sec-intl.getcanonicallocales */
\
CPP(IntlGetCanonicalLocales) \
CPP(IntlGetCanonicalLocales)
\
/* ecma402 #sec-intl.supportedvaluesof */
\
/* ecma402 #sec-intl.supportedvaluesof */
\
CPP(IntlSupportedValuesOf) \
CPP(IntlSupportedValuesOf)
\
/* ecma402 #sec-intl-listformat-constructor */
\
/* ecma402 #sec-intl-listformat-constructor */
\
CPP(ListFormatConstructor) \
CPP(ListFormatConstructor)
\
/* ecma402 #sec-intl-list-format.prototype.format */
\
/* ecma402 #sec-intl-list-format.prototype.format */
\
TFJ(ListFormatPrototypeFormat, kDontAdaptArgumentsSentinel) \
TFJ(ListFormatPrototypeFormat, kDontAdaptArgumentsSentinel)
\
/* ecma402 #sec-intl-list-format.prototype.formattoparts */
\
/* ecma402 #sec-intl-list-format.prototype.formattoparts */
\
TFJ(ListFormatPrototypeFormatToParts, kDontAdaptArgumentsSentinel) \
TFJ(ListFormatPrototypeFormatToParts, kDontAdaptArgumentsSentinel)
\
/* ecma402 #sec-intl.listformat.prototype.resolvedoptions */
\
/* ecma402 #sec-intl.listformat.prototype.resolvedoptions */
\
CPP(ListFormatPrototypeResolvedOptions) \
CPP(ListFormatPrototypeResolvedOptions)
\
/* ecma402 #sec-intl.ListFormat.supportedlocalesof */
\
/* ecma402 #sec-intl.ListFormat.supportedlocalesof */
\
CPP(ListFormatSupportedLocalesOf) \
CPP(ListFormatSupportedLocalesOf)
\
/* ecma402 #sec-intl-locale-constructor */
\
/* ecma402 #sec-intl-locale-constructor */
\
CPP(LocaleConstructor) \
CPP(LocaleConstructor)
\
/* ecma402 #sec-Intl.Locale.prototype.baseName */
\
/* ecma402 #sec-Intl.Locale.prototype.baseName */
\
CPP(LocalePrototypeBaseName) \
CPP(LocalePrototypeBaseName)
\
/* ecma402 #sec-Intl.Locale.prototype.calendar */
\
/* ecma402 #sec-Intl.Locale.prototype.calendar */
\
CPP(LocalePrototypeCalendar) \
CPP(LocalePrototypeCalendar)
\
/* ecma402 #sec-Intl.Locale.prototype.calendars */
\
/* ecma402 #sec-Intl.Locale.prototype.calendars */
\
CPP(LocalePrototypeCalendars) \
CPP(LocalePrototypeCalendars)
\
/* ecma402 #sec-Intl.Locale.prototype.caseFirst */
\
/* ecma402 #sec-Intl.Locale.prototype.caseFirst */
\
CPP(LocalePrototypeCaseFirst) \
CPP(LocalePrototypeCaseFirst)
\
/* ecma402 #sec-Intl.Locale.prototype.collation */
\
/* ecma402 #sec-Intl.Locale.prototype.collation */
\
CPP(LocalePrototypeCollation) \
CPP(LocalePrototypeCollation)
\
/* ecma402 #sec-Intl.Locale.prototype.collations */
\
/* ecma402 #sec-Intl.Locale.prototype.collations */
\
CPP(LocalePrototypeCollations) \
CPP(LocalePrototypeCollations)
\
/* ecma402 #sec-Intl.Locale.prototype.hourCycle */
\
/* ecma402 #sec-Intl.Locale.prototype.hourCycle */
\
CPP(LocalePrototypeHourCycle) \
CPP(LocalePrototypeHourCycle)
\
/* ecma402 #sec-Intl.Locale.prototype.hourCycles */
\
/* ecma402 #sec-Intl.Locale.prototype.hourCycles */
\
CPP(LocalePrototypeHourCycles) \
CPP(LocalePrototypeHourCycles)
\
/* ecma402 #sec-Intl.Locale.prototype.language */
\
/* ecma402 #sec-Intl.Locale.prototype.language */
\
CPP(LocalePrototypeLanguage) \
CPP(LocalePrototypeLanguage)
\
/* ecma402 #sec-Intl.Locale.prototype.maximize */
\
/* ecma402 #sec-Intl.Locale.prototype.maximize */
\
CPP(LocalePrototypeMaximize) \
CPP(LocalePrototypeMaximize)
\
/* ecma402 #sec-Intl.Locale.prototype.minimize */
\
/* ecma402 #sec-Intl.Locale.prototype.minimize */
\
CPP(LocalePrototypeMinimize) \
CPP(LocalePrototypeMinimize)
\
/* ecma402 #sec-Intl.Locale.prototype.numeric */
\
/* ecma402 #sec-Intl.Locale.prototype.numeric */
\
CPP(LocalePrototypeNumeric) \
CPP(LocalePrototypeNumeric)
\
/* ecma402 #sec-Intl.Locale.prototype.numberingSystem */
\
/* ecma402 #sec-Intl.Locale.prototype.numberingSystem */
\
CPP(LocalePrototypeNumberingSystem) \
CPP(LocalePrototypeNumberingSystem)
\
/* ecma402 #sec-Intl.Locale.prototype.numberingSystems */
\
/* ecma402 #sec-Intl.Locale.prototype.numberingSystems */
\
CPP(LocalePrototypeNumberingSystems) \
CPP(LocalePrototypeNumberingSystems)
\
/* ecma402 #sec-Intl.Locale.prototype.region */
\
/* ecma402 #sec-Intl.Locale.prototype.region */
\
CPP(LocalePrototypeRegion) \
CPP(LocalePrototypeRegion)
\
/* ecma402 #sec-Intl.Locale.prototype.script */
\
/* ecma402 #sec-Intl.Locale.prototype.script */
\
CPP(LocalePrototypeScript) \
CPP(LocalePrototypeScript)
\
/* ecma402 #sec-Intl.Locale.prototype.textInfo */
\
/* ecma402 #sec-Intl.Locale.prototype.textInfo */
\
CPP(LocalePrototypeTextInfo) \
CPP(LocalePrototypeTextInfo)
\
/* ecma402 #sec-Intl.Locale.prototype.timezones */
\
/* ecma402 #sec-Intl.Locale.prototype.timezones */
\
CPP(LocalePrototypeTimeZones) \
CPP(LocalePrototypeTimeZones)
\
/* ecma402 #sec-Intl.Locale.prototype.toString */
\
/* ecma402 #sec-Intl.Locale.prototype.toString */
\
CPP(LocalePrototypeToString) \
CPP(LocalePrototypeToString)
\
/* ecma402 #sec-Intl.Locale.prototype.weekInfo */
\
/* ecma402 #sec-Intl.Locale.prototype.weekInfo */
\
CPP(LocalePrototypeWeekInfo) \
CPP(LocalePrototypeWeekInfo)
\
/* ecma402 #sec-intl.numberformat */
\
/* ecma402 #sec-intl.numberformat */
\
CPP(NumberFormatConstructor) \
CPP(NumberFormatConstructor)
\
/* ecma402 #sec-number-format-functions */
\
/* ecma402 #sec-number-format-functions */
\
CPP(NumberFormatInternalFormatNumber) \
CPP(NumberFormatInternalFormatNumber)
\
/* ecma402 #sec-intl.numberformat.prototype.format */
\
/* ecma402 #sec-intl.numberformat.prototype.format */
\
CPP(NumberFormatPrototypeFormatNumber) \
CPP(NumberFormatPrototypeFormatNumber)
\
/* ecma402 #sec-intl.numberformat.prototype.formatrange */
\
/* ecma402 #sec-intl.numberformat.prototype.formatrange */
\
CPP(NumberFormatPrototypeFormatRange) \
CPP(NumberFormatPrototypeFormatRange)
\
/* ecma402 #sec-intl.numberformat.prototype.formatrangetoparts */
\
/* ecma402 #sec-intl.numberformat.prototype.formatrangetoparts */
\
CPP(NumberFormatPrototypeFormatRangeToParts) \
CPP(NumberFormatPrototypeFormatRangeToParts)
\
/* ecma402 #sec-intl.numberformat.prototype.formattoparts */
\
/* ecma402 #sec-intl.numberformat.prototype.formattoparts */
\
CPP(NumberFormatPrototypeFormatToParts) \
CPP(NumberFormatPrototypeFormatToParts)
\
/* ecma402 #sec-intl.numberformat.prototype.resolvedoptions */
\
/* ecma402 #sec-intl.numberformat.prototype.resolvedoptions */
\
CPP(NumberFormatPrototypeResolvedOptions) \
CPP(NumberFormatPrototypeResolvedOptions)
\
/* ecma402 #sec-intl.numberformat.supportedlocalesof */
\
/* ecma402 #sec-intl.numberformat.supportedlocalesof */
\
CPP(NumberFormatSupportedLocalesOf) \
CPP(NumberFormatSupportedLocalesOf)
\
/* ecma402 #sec-intl.pluralrules */
\
/* ecma402 #sec-intl.pluralrules */
\
CPP(PluralRulesConstructor) \
CPP(PluralRulesConstructor)
\
/* ecma402 #sec-intl.pluralrules.prototype.resolvedoptions */
\
/* ecma402 #sec-intl.pluralrules.prototype.resolvedoptions */
\
CPP(PluralRulesPrototypeResolvedOptions) \
CPP(PluralRulesPrototypeResolvedOptions)
\
/* ecma402 #sec-intl.pluralrules.prototype.select */
\
/* ecma402 #sec-intl.pluralrules.prototype.select */
\
CPP(PluralRulesPrototypeSelect) \
CPP(PluralRulesPrototypeSelect)
\
/* ecma402 #sec-intl.pluralrules.prototype.selectrange */
\
/* ecma402 #sec-intl.pluralrules.prototype.selectrange */
\
CPP(PluralRulesPrototypeSelectRange) \
CPP(PluralRulesPrototypeSelectRange)
\
/* ecma402 #sec-intl.pluralrules.supportedlocalesof */
\
/* ecma402 #sec-intl.pluralrules.supportedlocalesof */
\
CPP(PluralRulesSupportedLocalesOf) \
CPP(PluralRulesSupportedLocalesOf)
\
/* ecma402 #sec-intl.RelativeTimeFormat.constructor */
\
/* ecma402 #sec-intl.RelativeTimeFormat.constructor */
\
CPP(RelativeTimeFormatConstructor) \
CPP(RelativeTimeFormatConstructor)
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.format */
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.format */
\
CPP(RelativeTimeFormatPrototypeFormat) \
CPP(RelativeTimeFormatPrototypeFormat)
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.formatToParts */
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.formatToParts */
\
CPP(RelativeTimeFormatPrototypeFormatToParts) \
CPP(RelativeTimeFormatPrototypeFormatToParts)
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.resolvedOptions */
\
/* ecma402 #sec-intl.RelativeTimeFormat.prototype.resolvedOptions */
\
CPP(RelativeTimeFormatPrototypeResolvedOptions) \
CPP(RelativeTimeFormatPrototypeResolvedOptions)
\
/* ecma402 #sec-intl.RelativeTimeFormat.supportedlocalesof */
\
/* ecma402 #sec-intl.RelativeTimeFormat.supportedlocalesof */
\
CPP(RelativeTimeFormatSupportedLocalesOf) \
CPP(RelativeTimeFormatSupportedLocalesOf)
\
/* ecma402 #sec-Intl.Segmenter */
\
/* ecma402 #sec-Intl.Segmenter */
\
CPP(SegmenterConstructor) \
CPP(SegmenterConstructor)
\
/* ecma402 #sec-Intl.Segmenter.prototype.resolvedOptions */
\
/* ecma402 #sec-Intl.Segmenter.prototype.resolvedOptions */
\
CPP(SegmenterPrototypeResolvedOptions) \
CPP(SegmenterPrototypeResolvedOptions)
\
/* ecma402 #sec-Intl.Segmenter.prototype.segment */
\
/* ecma402 #sec-Intl.Segmenter.prototype.segment */
\
CPP(SegmenterPrototypeSegment) \
CPP(SegmenterPrototypeSegment)
\
/* ecma402 #sec-Intl.Segmenter.supportedLocalesOf */
\
/* ecma402 #sec-Intl.Segmenter.supportedLocalesOf */
\
CPP(SegmenterSupportedLocalesOf) \
CPP(SegmenterSupportedLocalesOf)
\
/* ecma402 #sec-segment-iterator-prototype-next */
\
/* ecma402 #sec-segment-iterator-prototype-next */
\
CPP(SegmentIteratorPrototypeNext) \
CPP(SegmentIteratorPrototypeNext)
\
/* ecma402 #sec-%segmentsprototype%.containing */
\
/* ecma402 #sec-%segmentsprototype%.containing */
\
CPP(SegmentsPrototypeContaining) \
CPP(SegmentsPrototypeContaining)
\
/* ecma402 #sec-%segmentsprototype%-@@iterator */
\
/* ecma402 #sec-%segmentsprototype%-@@iterator */
\
CPP(SegmentsPrototypeIterator) \
CPP(SegmentsPrototypeIterator)
\
/* ES #sec-string.prototype.normalize */
\
/* ES #sec-string.prototype.normalize */
\
CPP(StringPrototypeNormalizeIntl) \
CPP(StringPrototypeNormalizeIntl)
\
/* ecma402 #sup-string.prototype.tolocalelowercase */
\
/* ecma402 #sup-string.prototype.tolocalelowercase */
\
CPP(StringPrototypeToLocaleLowerCase) \
CPP(StringPrototypeToLocaleLowerCase)
\
/* ecma402 #sup-string.prototype.tolocaleuppercase */
\
/* ecma402 #sup-string.prototype.tolocaleuppercase */
\
CPP(StringPrototypeToLocaleUpperCase) \
CPP(StringPrototypeToLocaleUpperCase)
\
/* ES #sec-string.prototype.tolowercase */
\
/* ES #sec-string.prototype.tolowercase */
\
TFJ(StringPrototypeToLowerCaseIntl, kJSArgcReceiverSlots, kReceiver) \
TFJ(StringPrototypeToLowerCaseIntl, kJSArgcReceiverSlots, kReceiver)
\
/* ES #sec-string.prototype.touppercase */
\
/* ES #sec-string.prototype.touppercase */
\
CPP(StringPrototypeToUpperCaseIntl) \
CPP(StringPrototypeToUpperCaseIntl)
\
TFS(StringToLowerCaseIntl, kString) \
TFS(StringToLowerCaseIntl, kString)
\
\
\
/* Temporal */
\
/* Temporal */
\
/* Temporal #sec-temporal.calendar.prototype.era */
\
/* Temporal #sec-temporal.calendar.prototype.era */
\
CPP(TemporalCalendarPrototypeEra) \
CPP(TemporalCalendarPrototypeEra)
\
/* Temporal #sec-temporal.calendar.prototype.erayear */
\
/* Temporal #sec-temporal.calendar.prototype.erayear */
\
CPP(TemporalCalendarPrototypeEraYear) \
CPP(TemporalCalendarPrototypeEraYear)
\
/* Temporal #sec-get-temporal.plaindate.prototype.era */
\
/* Temporal #sec-get-temporal.plaindate.prototype.era */
\
CPP(TemporalPlainDatePrototypeEra) \
CPP(TemporalPlainDatePrototypeEra)
\
/* Temporal #sec-get-temporal.plaindate.prototype.erayear */
\
/* Temporal #sec-get-temporal.plaindate.prototype.erayear */
\
CPP(TemporalPlainDatePrototypeEraYear) \
CPP(TemporalPlainDatePrototypeEraYear)
\
/* Temporal #sec-get-temporal.plaindatetime.prototype.era */
\
/* Temporal #sec-get-temporal.plaindatetime.prototype.era */
\
CPP(TemporalPlainDateTimePrototypeEra) \
CPP(TemporalPlainDateTimePrototypeEra)
\
/* Temporal #sec-get-temporal.plaindatetime.prototype.erayear */
\
/* Temporal #sec-get-temporal.plaindatetime.prototype.erayear */
\
CPP(TemporalPlainDateTimePrototypeEraYear) \
CPP(TemporalPlainDateTimePrototypeEraYear)
\
/* Temporal #sec-get-temporal.plainyearmonth.prototype.era */
\
/* Temporal #sec-get-temporal.plainyearmonth.prototype.era */
\
CPP(TemporalPlainYearMonthPrototypeEra) \
CPP(TemporalPlainYearMonthPrototypeEra)
\
/* Temporal #sec-get-temporal.plainyearmonth.prototype.erayear */
\
/* Temporal #sec-get-temporal.plainyearmonth.prototype.erayear */
\
CPP(TemporalPlainYearMonthPrototypeEraYear) \
CPP(TemporalPlainYearMonthPrototypeEraYear)
\
/* Temporal #sec-get-temporal.zoneddatetime.prototype.era */
\
/* Temporal #sec-get-temporal.zoneddatetime.prototype.era */
\
CPP(TemporalZonedDateTimePrototypeEra) \
CPP(TemporalZonedDateTimePrototypeEra)
\
/* Temporal #sec-get-temporal.zoneddatetime.prototype.erayear */
\
/* Temporal #sec-get-temporal.zoneddatetime.prototype.erayear */
\
CPP(TemporalZonedDateTimePrototypeEraYear) \
CPP(TemporalZonedDateTimePrototypeEraYear)
\
\
\
CPP(V8BreakIteratorConstructor) \
CPP(V8BreakIteratorConstructor)
\
CPP(V8BreakIteratorInternalAdoptText) \
CPP(V8BreakIteratorInternalAdoptText)
\
CPP(V8BreakIteratorInternalBreakType) \
CPP(V8BreakIteratorInternalBreakType)
\
CPP(V8BreakIteratorInternalCurrent) \
CPP(V8BreakIteratorInternalCurrent)
\
CPP(V8BreakIteratorInternalFirst) \
CPP(V8BreakIteratorInternalFirst)
\
CPP(V8BreakIteratorInternalNext) \
CPP(V8BreakIteratorInternalNext)
\
CPP(V8BreakIteratorPrototypeAdoptText) \
CPP(V8BreakIteratorPrototypeAdoptText)
\
CPP(V8BreakIteratorPrototypeBreakType) \
CPP(V8BreakIteratorPrototypeBreakType)
\
CPP(V8BreakIteratorPrototypeCurrent) \
CPP(V8BreakIteratorPrototypeCurrent)
\
CPP(V8BreakIteratorPrototypeFirst) \
CPP(V8BreakIteratorPrototypeFirst)
\
CPP(V8BreakIteratorPrototypeNext) \
CPP(V8BreakIteratorPrototypeNext)
\
CPP(V8BreakIteratorPrototypeResolvedOptions) \
CPP(V8BreakIteratorPrototypeResolvedOptions)
\
CPP(V8BreakIteratorSupportedLocalesOf)
CPP(V8BreakIteratorSupportedLocalesOf)
#else
#else
#define BUILTIN_LIST_INTL(CPP, TFJ, TFS) \
#define BUILTIN_LIST_INTL(CPP, TFJ, TFS) \
...
...
src/builtins/builtins-encoder.cc
0 → 100644
View file @
f3ea8f46
#include <stdio.h>
#include "src/builtins/builtins.h"
#include "src/builtins/builtins-utils-inl.h"
namespace
v8
{
namespace
internal
{
BUILTIN
(
Encode
)
{
HandleScope
scope
(
isolate
);
printf
(
"Encoding...
\n
"
);
return
*
isolate
->
factory
()
->
ToBoolean
(
true
);
}
}
// internal
}
// v8
src/init/bootstrapper.cc
View file @
f3ea8f46
...
@@ -2786,6 +2786,15 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
...
@@ -2786,6 +2786,15 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
InstallToStringTag
(
isolate_
,
json_object
,
"JSON"
);
InstallToStringTag
(
isolate_
,
json_object
,
"JSON"
);
}
}
{
Handle
<
JSObject
>
encoder
=
factory
->
NewJSObject
(
isolate_
->
object_function
(),
AllocationType
::
kOld
);
JSObject
::
AddProperty
(
isolate_
,
global
,
"ENCODER"
,
encoder
,
DONT_ENUM
);
SimpleInstallFunction
(
isolate_
,
encoder
,
"encode"
,
Builtin
::
kEncode
,
0
,
true
);
InstallToStringTag
(
isolate_
,
encoder
,
"ENCODER"
);
}
{
// -- M a t h
{
// -- M a t h
Handle
<
JSObject
>
math
=
Handle
<
JSObject
>
math
=
factory
->
NewJSObject
(
isolate_
->
object_function
(),
AllocationType
::
kOld
);
factory
->
NewJSObject
(
isolate_
->
object_function
(),
AllocationType
::
kOld
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment