OLD | NEW |
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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 V(MathMin, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 285 V(MathMin, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
286 \ | 286 \ |
287 V(NumberConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 287 V(NumberConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
288 V(NumberConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 288 V(NumberConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
289 \ | 289 \ |
290 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 290 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
291 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 291 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
292 \ | 292 \ |
293 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 293 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
294 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 294 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
295 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | |
296 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 295 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
297 \ | 296 \ |
298 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 297 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
299 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 298 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
300 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 299 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
301 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 300 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
302 | 301 |
303 // Define list of builtin handlers implemented in assembly. | 302 // Define list of builtin handlers implemented in assembly. |
304 #define BUILTIN_LIST_H(V) \ | 303 #define BUILTIN_LIST_H(V) \ |
305 V(LoadIC_Slow, LOAD_IC) \ | 304 V(LoadIC_Slow, LOAD_IC) \ |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 } | 575 } |
577 | 576 |
578 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. | 577 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. |
579 static void Generate_NumberConstructor(MacroAssembler* masm); | 578 static void Generate_NumberConstructor(MacroAssembler* masm); |
580 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. | 579 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. |
581 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); | 580 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); |
582 | 581 |
583 static void Generate_StringConstructor(MacroAssembler* masm); | 582 static void Generate_StringConstructor(MacroAssembler* masm); |
584 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 583 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
585 static void Generate_OnStackReplacement(MacroAssembler* masm); | 584 static void Generate_OnStackReplacement(MacroAssembler* masm); |
586 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); | |
587 static void Generate_InterruptCheck(MacroAssembler* masm); | 585 static void Generate_InterruptCheck(MacroAssembler* masm); |
588 static void Generate_StackCheck(MacroAssembler* masm); | 586 static void Generate_StackCheck(MacroAssembler* masm); |
589 | 587 |
590 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 588 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
591 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 589 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
592 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { | 590 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { |
593 return Generate_InterpreterPushArgsAndCallImpl(masm, | 591 return Generate_InterpreterPushArgsAndCallImpl(masm, |
594 TailCallMode::kDisallow); | 592 TailCallMode::kDisallow); |
595 } | 593 } |
596 static void Generate_InterpreterPushArgsAndTailCall(MacroAssembler* masm) { | 594 static void Generate_InterpreterPushArgsAndTailCall(MacroAssembler* masm) { |
(...skipping 26 matching lines...) Expand all Loading... |
623 friend class BuiltinFunctionTable; | 621 friend class BuiltinFunctionTable; |
624 friend class Isolate; | 622 friend class Isolate; |
625 | 623 |
626 DISALLOW_COPY_AND_ASSIGN(Builtins); | 624 DISALLOW_COPY_AND_ASSIGN(Builtins); |
627 }; | 625 }; |
628 | 626 |
629 } // namespace internal | 627 } // namespace internal |
630 } // namespace v8 | 628 } // namespace v8 |
631 | 629 |
632 #endif // V8_BUILTINS_H_ | 630 #endif // V8_BUILTINS_H_ |
OLD | NEW |