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

Side by Side Diff: src/builtins/builtins.h

Issue 2263533002: [builtins] Migrate DatePrototype_GetField to TurboFan builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix C call return type Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins-date.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_BUILTINS_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_BUILTINS_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 CPP(DataViewPrototypeSetUint32) \ 263 CPP(DataViewPrototypeSetUint32) \
264 CPP(DataViewPrototypeGetFloat32) \ 264 CPP(DataViewPrototypeGetFloat32) \
265 CPP(DataViewPrototypeSetFloat32) \ 265 CPP(DataViewPrototypeSetFloat32) \
266 CPP(DataViewPrototypeGetFloat64) \ 266 CPP(DataViewPrototypeGetFloat64) \
267 CPP(DataViewPrototypeSetFloat64) \ 267 CPP(DataViewPrototypeSetFloat64) \
268 \ 268 \
269 /* Date */ \ 269 /* Date */ \
270 CPP(DateConstructor) \ 270 CPP(DateConstructor) \
271 CPP(DateConstructor_ConstructStub) \ 271 CPP(DateConstructor_ConstructStub) \
272 /* ES6 section 20.3.4.2 Date.prototype.getDate ( ) */ \ 272 /* ES6 section 20.3.4.2 Date.prototype.getDate ( ) */ \
273 ASM(DatePrototypeGetDate) \ 273 TFJ(DatePrototypeGetDate, 1) \
274 /* ES6 section 20.3.4.3 Date.prototype.getDay ( ) */ \ 274 /* ES6 section 20.3.4.3 Date.prototype.getDay ( ) */ \
275 ASM(DatePrototypeGetDay) \ 275 TFJ(DatePrototypeGetDay, 1) \
276 /* ES6 section 20.3.4.4 Date.prototype.getFullYear ( ) */ \ 276 /* ES6 section 20.3.4.4 Date.prototype.getFullYear ( ) */ \
277 ASM(DatePrototypeGetFullYear) \ 277 TFJ(DatePrototypeGetFullYear, 1) \
278 /* ES6 section 20.3.4.5 Date.prototype.getHours ( ) */ \ 278 /* ES6 section 20.3.4.5 Date.prototype.getHours ( ) */ \
279 ASM(DatePrototypeGetHours) \ 279 TFJ(DatePrototypeGetHours, 1) \
280 /* ES6 section 20.3.4.6 Date.prototype.getMilliseconds ( ) */ \ 280 /* ES6 section 20.3.4.6 Date.prototype.getMilliseconds ( ) */ \
281 ASM(DatePrototypeGetMilliseconds) \ 281 TFJ(DatePrototypeGetMilliseconds, 1) \
282 /* ES6 section 20.3.4.7 Date.prototype.getMinutes ( ) */ \ 282 /* ES6 section 20.3.4.7 Date.prototype.getMinutes ( ) */ \
283 ASM(DatePrototypeGetMinutes) \ 283 TFJ(DatePrototypeGetMinutes, 1) \
284 /* ES6 section 20.3.4.8 Date.prototype.getMonth */ \ 284 /* ES6 section 20.3.4.8 Date.prototype.getMonth */ \
285 ASM(DatePrototypeGetMonth) \ 285 TFJ(DatePrototypeGetMonth, 1) \
286 /* ES6 section 20.3.4.9 Date.prototype.getSeconds ( ) */ \ 286 /* ES6 section 20.3.4.9 Date.prototype.getSeconds ( ) */ \
287 ASM(DatePrototypeGetSeconds) \ 287 TFJ(DatePrototypeGetSeconds, 1) \
288 /* ES6 section 20.3.4.10 Date.prototype.getTime ( ) */ \ 288 /* ES6 section 20.3.4.10 Date.prototype.getTime ( ) */ \
289 ASM(DatePrototypeGetTime) \ 289 TFJ(DatePrototypeGetTime, 1) \
290 /* ES6 section 20.3.4.11 Date.prototype.getTimezoneOffset ( ) */ \ 290 /* ES6 section 20.3.4.11 Date.prototype.getTimezoneOffset ( ) */ \
291 ASM(DatePrototypeGetTimezoneOffset) \ 291 TFJ(DatePrototypeGetTimezoneOffset, 1) \
292 /* ES6 section 20.3.4.12 Date.prototype.getUTCDate ( ) */ \ 292 /* ES6 section 20.3.4.12 Date.prototype.getUTCDate ( ) */ \
293 ASM(DatePrototypeGetUTCDate) \ 293 TFJ(DatePrototypeGetUTCDate, 1) \
294 /* ES6 section 20.3.4.13 Date.prototype.getUTCDay ( ) */ \ 294 /* ES6 section 20.3.4.13 Date.prototype.getUTCDay ( ) */ \
295 ASM(DatePrototypeGetUTCDay) \ 295 TFJ(DatePrototypeGetUTCDay, 1) \
296 /* ES6 section 20.3.4.14 Date.prototype.getUTCFullYear ( ) */ \ 296 /* ES6 section 20.3.4.14 Date.prototype.getUTCFullYear ( ) */ \
297 ASM(DatePrototypeGetUTCFullYear) \ 297 TFJ(DatePrototypeGetUTCFullYear, 1) \
298 /* ES6 section 20.3.4.15 Date.prototype.getUTCHours ( ) */ \ 298 /* ES6 section 20.3.4.15 Date.prototype.getUTCHours ( ) */ \
299 ASM(DatePrototypeGetUTCHours) \ 299 TFJ(DatePrototypeGetUTCHours, 1) \
300 /* ES6 section 20.3.4.16 Date.prototype.getUTCMilliseconds ( ) */ \ 300 /* ES6 section 20.3.4.16 Date.prototype.getUTCMilliseconds ( ) */ \
301 ASM(DatePrototypeGetUTCMilliseconds) \ 301 TFJ(DatePrototypeGetUTCMilliseconds, 1) \
302 /* ES6 section 20.3.4.17 Date.prototype.getUTCMinutes ( ) */ \ 302 /* ES6 section 20.3.4.17 Date.prototype.getUTCMinutes ( ) */ \
303 ASM(DatePrototypeGetUTCMinutes) \ 303 TFJ(DatePrototypeGetUTCMinutes, 1) \
304 /* ES6 section 20.3.4.18 Date.prototype.getUTCMonth ( ) */ \ 304 /* ES6 section 20.3.4.18 Date.prototype.getUTCMonth ( ) */ \
305 ASM(DatePrototypeGetUTCMonth) \ 305 TFJ(DatePrototypeGetUTCMonth, 1) \
306 /* ES6 section 20.3.4.19 Date.prototype.getUTCSeconds ( ) */ \ 306 /* ES6 section 20.3.4.19 Date.prototype.getUTCSeconds ( ) */ \
307 ASM(DatePrototypeGetUTCSeconds) \ 307 TFJ(DatePrototypeGetUTCSeconds, 1) \
308 CPP(DatePrototypeGetYear) \ 308 CPP(DatePrototypeGetYear) \
309 CPP(DatePrototypeSetYear) \ 309 CPP(DatePrototypeSetYear) \
310 CPP(DateNow) \ 310 CPP(DateNow) \
311 CPP(DateParse) \ 311 CPP(DateParse) \
312 CPP(DatePrototypeSetDate) \ 312 CPP(DatePrototypeSetDate) \
313 CPP(DatePrototypeSetFullYear) \ 313 CPP(DatePrototypeSetFullYear) \
314 CPP(DatePrototypeSetHours) \ 314 CPP(DatePrototypeSetHours) \
315 CPP(DatePrototypeSetMilliseconds) \ 315 CPP(DatePrototypeSetMilliseconds) \
316 CPP(DatePrototypeSetMinutes) \ 316 CPP(DatePrototypeSetMinutes) \
317 CPP(DatePrototypeSetMonth) \ 317 CPP(DatePrototypeSetMonth) \
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode, 675 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode,
676 TailCallMode tail_call_mode); 676 TailCallMode tail_call_mode);
677 677
678 static void Generate_InterpreterPushArgsAndCallImpl( 678 static void Generate_InterpreterPushArgsAndCallImpl(
679 MacroAssembler* masm, TailCallMode tail_call_mode, 679 MacroAssembler* masm, TailCallMode tail_call_mode,
680 CallableType function_type); 680 CallableType function_type);
681 681
682 static void Generate_InterpreterPushArgsAndConstructImpl( 682 static void Generate_InterpreterPushArgsAndConstructImpl(
683 MacroAssembler* masm, CallableType function_type); 683 MacroAssembler* masm, CallableType function_type);
684 684
685 static void Generate_DatePrototype_GetField(MacroAssembler* masm, 685 static void Generate_DatePrototype_GetField(CodeStubAssembler* masm,
686 int field_index); 686 int field_index);
687 687
688 enum class MathMaxMinKind { kMax, kMin }; 688 enum class MathMaxMinKind { kMax, kMin };
689 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); 689 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind);
690 690
691 #define DECLARE_ASM(Name, ...) \ 691 #define DECLARE_ASM(Name, ...) \
692 static void Generate_##Name(MacroAssembler* masm); 692 static void Generate_##Name(MacroAssembler* masm);
693 #define DECLARE_TF(Name, ...) \ 693 #define DECLARE_TF(Name, ...) \
694 static void Generate_##Name(CodeStubAssembler* csasm); 694 static void Generate_##Name(CodeStubAssembler* csasm);
695 695
(...skipping 11 matching lines...) Expand all
707 707
708 friend class Isolate; 708 friend class Isolate;
709 709
710 DISALLOW_COPY_AND_ASSIGN(Builtins); 710 DISALLOW_COPY_AND_ASSIGN(Builtins);
711 }; 711 };
712 712
713 } // namespace internal 713 } // namespace internal
714 } // namespace v8 714 } // namespace v8
715 715
716 #endif // V8_BUILTINS_BUILTINS_H_ 716 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins-date.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698