Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: src/builtins.h

Issue 1567353002: [date] Migrate Date field accessors to native builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar work. ports. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.h
diff --git a/src/builtins.h b/src/builtins.h
index cfd496d4cbd2234a22acdc79f2e2abd1a0503ea3..db8bebce860bc666954f852286a15cd96fbcce53 100644
--- a/src/builtins.h
+++ b/src/builtins.h
@@ -196,8 +196,28 @@ inline bool operator&(BuiltinExtraArguments lhs, BuiltinExtraArguments rhs) {
V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \
StoreICState::kStrictModeState) \
\
+ V(DatePrototypeGetDate, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetDay, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetFullYear, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetHours, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetMilliseconds, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetMinutes, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetMonth, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetSeconds, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetTime, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetTimezoneOffset, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCDate, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCDay, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCFullYear, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCHours, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCMilliseconds, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCMinutes, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCMonth, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(DatePrototypeGetUTCSeconds, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ \
V(FunctionPrototypeApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
V(FunctionPrototypeCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ \
V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
\
@@ -389,8 +409,48 @@ class Builtins {
static void Generate_HandleFastApiCall(MacroAssembler* masm);
+ static void Generate_DatePrototype_GetField(MacroAssembler* masm,
+ int field_index);
+ // ES6 section 20.3.4.2 Date.prototype.getDate ( )
+ static void Generate_DatePrototypeGetDate(MacroAssembler* masm);
+ // ES6 section 20.3.4.3 Date.prototype.getDay ( )
+ static void Generate_DatePrototypeGetDay(MacroAssembler* masm);
+ // ES6 section 20.3.4.4 Date.prototype.getFullYear ( )
+ static void Generate_DatePrototypeGetFullYear(MacroAssembler* masm);
+ // ES6 section 20.3.4.5 Date.prototype.getHours ( )
+ static void Generate_DatePrototypeGetHours(MacroAssembler* masm);
+ // ES6 section 20.3.4.6 Date.prototype.getMilliseconds ( )
+ static void Generate_DatePrototypeGetMilliseconds(MacroAssembler* masm);
+ // ES6 section 20.3.4.7 Date.prototype.getMinutes ( )
+ static void Generate_DatePrototypeGetMinutes(MacroAssembler* masm);
+ // ES6 section 20.3.4.8 Date.prototype.getMonth ( )
+ static void Generate_DatePrototypeGetMonth(MacroAssembler* masm);
+ // ES6 section 20.3.4.9 Date.prototype.getSeconds ( )
+ static void Generate_DatePrototypeGetSeconds(MacroAssembler* masm);
+ // ES6 section 20.3.4.10 Date.prototype.getTime ( )
+ static void Generate_DatePrototypeGetTime(MacroAssembler* masm);
+ // ES6 section 20.3.4.11 Date.prototype.getTimezoneOffset ( )
+ static void Generate_DatePrototypeGetTimezoneOffset(MacroAssembler* masm);
+ // ES6 section 20.3.4.12 Date.prototype.getUTCDate ( )
+ static void Generate_DatePrototypeGetUTCDate(MacroAssembler* masm);
+ // ES6 section 20.3.4.13 Date.prototype.getUTCDay ( )
+ static void Generate_DatePrototypeGetUTCDay(MacroAssembler* masm);
+ // ES6 section 20.3.4.14 Date.prototype.getUTCFullYear ( )
+ static void Generate_DatePrototypeGetUTCFullYear(MacroAssembler* masm);
+ // ES6 section 20.3.4.15 Date.prototype.getUTCHours ( )
+ static void Generate_DatePrototypeGetUTCHours(MacroAssembler* masm);
+ // ES6 section 20.3.4.16 Date.prototype.getUTCMilliseconds ( )
+ static void Generate_DatePrototypeGetUTCMilliseconds(MacroAssembler* masm);
+ // ES6 section 20.3.4.17 Date.prototype.getUTCMinutes ( )
+ static void Generate_DatePrototypeGetUTCMinutes(MacroAssembler* masm);
+ // ES6 section 20.3.4.18 Date.prototype.getUTCMonth ( )
+ static void Generate_DatePrototypeGetUTCMonth(MacroAssembler* masm);
+ // ES6 section 20.3.4.19 Date.prototype.getUTCSeconds ( )
+ static void Generate_DatePrototypeGetUTCSeconds(MacroAssembler* masm);
+
static void Generate_FunctionPrototypeApply(MacroAssembler* masm);
static void Generate_FunctionPrototypeCall(MacroAssembler* masm);
+
static void Generate_ReflectApply(MacroAssembler* masm);
static void Generate_ReflectConstruct(MacroAssembler* masm);
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698