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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 190 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
191 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 191 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
192 \ | 192 \ |
193 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 193 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
194 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 194 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
195 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 195 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
196 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 196 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
197 V(InterpreterNotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 197 V(InterpreterNotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
198 V(InterpreterNotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 198 V(InterpreterNotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
199 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 199 V(InterpreterNotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 200 V(InterpreterEnterExceptionHandler, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
200 \ | 201 \ |
201 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 202 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
202 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 203 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
203 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 204 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
204 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 205 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
205 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 206 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
206 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 207 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
207 \ | 208 \ |
208 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ | 209 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ |
209 LoadICState::kStrongModeState) \ | 210 LoadICState::kStrongModeState) \ |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 static void Generate_InterruptCheck(MacroAssembler* masm); | 501 static void Generate_InterruptCheck(MacroAssembler* masm); |
501 static void Generate_StackCheck(MacroAssembler* masm); | 502 static void Generate_StackCheck(MacroAssembler* masm); |
502 | 503 |
503 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 504 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
504 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 505 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
505 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); | 506 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); |
506 static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm); | 507 static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm); |
507 static void Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm); | 508 static void Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm); |
508 static void Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm); | 509 static void Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm); |
509 static void Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm); | 510 static void Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm); |
| 511 static void Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm); |
510 | 512 |
511 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 513 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
512 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 514 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
513 MacroAssembler* masm); \ | 515 MacroAssembler* masm); \ |
514 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 516 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
515 MacroAssembler* masm); | 517 MacroAssembler* masm); |
516 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 518 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
517 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 519 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
518 | 520 |
519 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 521 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
520 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 522 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
521 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 523 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
522 | 524 |
523 static void InitBuiltinFunctionTable(); | 525 static void InitBuiltinFunctionTable(); |
524 | 526 |
525 bool initialized_; | 527 bool initialized_; |
526 | 528 |
527 friend class BuiltinFunctionTable; | 529 friend class BuiltinFunctionTable; |
528 friend class Isolate; | 530 friend class Isolate; |
529 | 531 |
530 DISALLOW_COPY_AND_ASSIGN(Builtins); | 532 DISALLOW_COPY_AND_ASSIGN(Builtins); |
531 }; | 533 }; |
532 | 534 |
533 } // namespace internal | 535 } // namespace internal |
534 } // namespace v8 | 536 } // namespace v8 |
535 | 537 |
536 #endif // V8_BUILTINS_H_ | 538 #endif // V8_BUILTINS_H_ |
OLD | NEW |