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

Side by Side Diff: src/builtins.h

Issue 1573243009: [builtins] Migrate Number constructor similar to String constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
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_H_ 5 #ifndef V8_BUILTINS_H_
6 #define V8_BUILTINS_H_ 6 #define V8_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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 \ 239 \
240 V(FunctionPrototypeApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 240 V(FunctionPrototypeApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
241 V(FunctionPrototypeCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 241 V(FunctionPrototypeCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
242 \ 242 \
243 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 243 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
244 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 244 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
245 \ 245 \
246 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 246 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \
247 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 247 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \
248 \ 248 \
249 V(NumberConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \
250 V(NumberConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \
251 \
249 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 252 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \
250 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 253 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \
251 \ 254 \
252 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 255 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \
253 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 256 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
254 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 257 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
255 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 258 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \
256 \ 259 \
257 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 260 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
258 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 261 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 475
473 static void Generate_FunctionPrototypeApply(MacroAssembler* masm); 476 static void Generate_FunctionPrototypeApply(MacroAssembler* masm);
474 static void Generate_FunctionPrototypeCall(MacroAssembler* masm); 477 static void Generate_FunctionPrototypeCall(MacroAssembler* masm);
475 478
476 static void Generate_ReflectApply(MacroAssembler* masm); 479 static void Generate_ReflectApply(MacroAssembler* masm);
477 static void Generate_ReflectConstruct(MacroAssembler* masm); 480 static void Generate_ReflectConstruct(MacroAssembler* masm);
478 481
479 static void Generate_InternalArrayCode(MacroAssembler* masm); 482 static void Generate_InternalArrayCode(MacroAssembler* masm);
480 static void Generate_ArrayCode(MacroAssembler* masm); 483 static void Generate_ArrayCode(MacroAssembler* masm);
481 484
485 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case.
486 static void Generate_NumberConstructor(MacroAssembler* masm);
487 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case.
488 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm);
489
482 static void Generate_StringConstructor(MacroAssembler* masm); 490 static void Generate_StringConstructor(MacroAssembler* masm);
483 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); 491 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm);
484 static void Generate_OnStackReplacement(MacroAssembler* masm); 492 static void Generate_OnStackReplacement(MacroAssembler* masm);
485 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); 493 static void Generate_OsrAfterStackCheck(MacroAssembler* masm);
486 static void Generate_InterruptCheck(MacroAssembler* masm); 494 static void Generate_InterruptCheck(MacroAssembler* masm);
487 static void Generate_StackCheck(MacroAssembler* masm); 495 static void Generate_StackCheck(MacroAssembler* masm);
488 496
489 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); 497 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm);
490 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); 498 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm);
491 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); 499 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm);
(...skipping 21 matching lines...) Expand all
513 friend class BuiltinFunctionTable; 521 friend class BuiltinFunctionTable;
514 friend class Isolate; 522 friend class Isolate;
515 523
516 DISALLOW_COPY_AND_ASSIGN(Builtins); 524 DISALLOW_COPY_AND_ASSIGN(Builtins);
517 }; 525 };
518 526
519 } // namespace internal 527 } // namespace internal
520 } // namespace v8 528 } // namespace v8
521 529
522 #endif // V8_BUILTINS_H_ 530 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | src/x64/builtins-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698