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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 202 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
203 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 203 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
204 \ | 204 \ |
205 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 205 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
206 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 206 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
207 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 207 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
208 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 208 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
209 V(InterpreterNotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 209 V(InterpreterNotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
210 V(InterpreterNotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 210 V(InterpreterNotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
211 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 211 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
212 V(InterpreterEnterExceptionHandler, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 212 V(InterpreterEnterBytecodeDispatch, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
213 \ | 213 \ |
214 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 214 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
215 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 215 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
216 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 216 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
217 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 217 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
218 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 218 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
219 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 219 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
220 \ | 220 \ |
221 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ | 221 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ |
222 LoadICState::kStrongModeState) \ | 222 LoadICState::kStrongModeState) \ |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 static void Generate_InterruptCheck(MacroAssembler* masm); | 558 static void Generate_InterruptCheck(MacroAssembler* masm); |
559 static void Generate_StackCheck(MacroAssembler* masm); | 559 static void Generate_StackCheck(MacroAssembler* masm); |
560 | 560 |
561 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 561 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
562 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 562 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
563 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); | 563 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); |
564 static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm); | 564 static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm); |
565 static void Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm); | 565 static void Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm); |
566 static void Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm); | 566 static void Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm); |
567 static void Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm); | 567 static void Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm); |
568 static void Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm); | 568 static void Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm); |
569 | 569 |
570 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 570 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
571 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 571 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
572 MacroAssembler* masm); \ | 572 MacroAssembler* masm); \ |
573 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 573 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
574 MacroAssembler* masm); | 574 MacroAssembler* masm); |
575 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 575 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
576 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 576 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
577 | 577 |
578 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 578 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
579 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 579 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
580 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 580 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
581 | 581 |
582 static void InitBuiltinFunctionTable(); | 582 static void InitBuiltinFunctionTable(); |
583 | 583 |
584 bool initialized_; | 584 bool initialized_; |
585 | 585 |
586 friend class BuiltinFunctionTable; | 586 friend class BuiltinFunctionTable; |
587 friend class Isolate; | 587 friend class Isolate; |
588 | 588 |
589 DISALLOW_COPY_AND_ASSIGN(Builtins); | 589 DISALLOW_COPY_AND_ASSIGN(Builtins); |
590 }; | 590 }; |
591 | 591 |
592 } // namespace internal | 592 } // namespace internal |
593 } // namespace v8 | 593 } // namespace v8 |
594 | 594 |
595 #endif // V8_BUILTINS_H_ | 595 #endif // V8_BUILTINS_H_ |
OLD | NEW |