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_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 // TFS: Builtin in Turbofan, with CodeStub linkage. | 42 // TFS: Builtin in Turbofan, with CodeStub linkage. |
43 // Args: name, code kind, extra IC state, interface descriptor | 43 // Args: name, code kind, extra IC state, interface descriptor |
44 // ASM: Builtin in platform-dependent assembly. | 44 // ASM: Builtin in platform-dependent assembly. |
45 // Args: name | 45 // Args: name |
46 // ASH: Handlers implemented in platform-dependent assembly. | 46 // ASH: Handlers implemented in platform-dependent assembly. |
47 // Args: name, code kind, extra IC state | 47 // Args: name, code kind, extra IC state |
48 // DBG: Builtin in platform-dependent assembly, used by the debugger. | 48 // DBG: Builtin in platform-dependent assembly, used by the debugger. |
49 // Args: name | 49 // Args: name |
50 #define BUILTIN_LIST(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ | 50 #define BUILTIN_LIST(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
51 /* Handlers */ \ | 51 /* Handlers */ \ |
52 ASM(Abort) \ | |
titzer
2016/07/18 08:26:40
Move comment one line down.
ahaas
2016/07/18 08:32:11
Done.
| |
52 ASM(KeyedLoadIC_Miss) \ | 53 ASM(KeyedLoadIC_Miss) \ |
53 ASM(KeyedStoreIC_Miss) \ | 54 ASM(KeyedStoreIC_Miss) \ |
54 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ | 55 ASH(LoadIC_Getter_ForDeopt, LOAD_IC, kNoExtraICState) \ |
55 ASH(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState) \ | 56 ASH(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, kNoExtraICState) \ |
56 ASH(StoreIC_Setter_ForDeopt, STORE_IC, StoreICState::kStrictModeState) \ | 57 ASH(StoreIC_Setter_ForDeopt, STORE_IC, StoreICState::kStrictModeState) \ |
57 ASH(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState) \ | 58 ASH(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, kNoExtraICState) \ |
58 ASH(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, \ | 59 ASH(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, \ |
59 StoreICState::kStrictModeState) \ | 60 StoreICState::kStrictModeState) \ |
60 ASH(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC) \ | 61 ASH(KeyedLoadIC_Slow, HANDLER, Code::KEYED_LOAD_IC) \ |
61 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \ | 62 ASH(KeyedStoreIC_Slow, HANDLER, Code::KEYED_STORE_IC) \ |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
509 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 510 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
510 static void Generate_ResumeGeneratorTrampoline(MacroAssembler* masm); | 511 static void Generate_ResumeGeneratorTrampoline(MacroAssembler* masm); |
511 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 512 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
512 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); | 513 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); |
513 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 514 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
514 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 515 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
515 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); | 516 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); |
516 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 517 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
517 static void Generate_StringToNumber(MacroAssembler* masm); | 518 static void Generate_StringToNumber(MacroAssembler* masm); |
518 static void Generate_ToNumber(MacroAssembler* masm); | 519 static void Generate_ToNumber(MacroAssembler* masm); |
520 static void Generate_Abort(MacroAssembler* masm); | |
519 | 521 |
520 static void Generate_Apply(MacroAssembler* masm); | 522 static void Generate_Apply(MacroAssembler* masm); |
521 | 523 |
522 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) | 524 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) |
523 static void Generate_CallFunction(MacroAssembler* masm, | 525 static void Generate_CallFunction(MacroAssembler* masm, |
524 ConvertReceiverMode mode, | 526 ConvertReceiverMode mode, |
525 TailCallMode tail_call_mode); | 527 TailCallMode tail_call_mode); |
526 static void Generate_CallFunction_ReceiverIsNullOrUndefined( | 528 static void Generate_CallFunction_ReceiverIsNullOrUndefined( |
527 MacroAssembler* masm) { | 529 MacroAssembler* masm) { |
528 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined, | 530 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined, |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
830 friend class BuiltinFunctionTable; | 832 friend class BuiltinFunctionTable; |
831 friend class Isolate; | 833 friend class Isolate; |
832 | 834 |
833 DISALLOW_COPY_AND_ASSIGN(Builtins); | 835 DISALLOW_COPY_AND_ASSIGN(Builtins); |
834 }; | 836 }; |
835 | 837 |
836 } // namespace internal | 838 } // namespace internal |
837 } // namespace v8 | 839 } // namespace v8 |
838 | 840 |
839 #endif // V8_BUILTINS_BUILTINS_H_ | 841 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |