| 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/handles.h" | 8 #include "src/handles.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 V(CompileOptimizedConcurrent, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 97 V(CompileOptimizedConcurrent, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 98 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 98 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 99 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 99 V(NotifySoftDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 100 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 100 V(NotifyLazyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 101 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 101 V(NotifyStubFailure, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 102 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 102 V(NotifyStubFailureSaveDoubles, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 103 \ | 103 \ |
| 104 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 104 V(InterpreterEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 105 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 105 V(InterpreterExitTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 106 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 106 V(InterpreterPushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 107 V(InterpreterPushArgsAndConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | |
| 108 \ | 107 \ |
| 109 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 108 V(LoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 110 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 109 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 111 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 110 V(StoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 112 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 111 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 113 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ | 112 V(LoadIC_Getter_ForDeopt, LOAD_IC, MONOMORPHIC, kNoExtraICState) \ |
| 114 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ | 113 V(KeyedLoadIC_Megamorphic, KEYED_LOAD_IC, MEGAMORPHIC, kNoExtraICState) \ |
| 115 \ | 114 \ |
| 116 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ | 115 V(KeyedLoadIC_Megamorphic_Strong, KEYED_LOAD_IC, MEGAMORPHIC, \ |
| 117 LoadICState::kStrongModeState) \ | 116 LoadICState::kStrongModeState) \ |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 static void Generate_StringConstructor(MacroAssembler* masm); | 301 static void Generate_StringConstructor(MacroAssembler* masm); |
| 303 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 302 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
| 304 static void Generate_OnStackReplacement(MacroAssembler* masm); | 303 static void Generate_OnStackReplacement(MacroAssembler* masm); |
| 305 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); | 304 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); |
| 306 static void Generate_InterruptCheck(MacroAssembler* masm); | 305 static void Generate_InterruptCheck(MacroAssembler* masm); |
| 307 static void Generate_StackCheck(MacroAssembler* masm); | 306 static void Generate_StackCheck(MacroAssembler* masm); |
| 308 | 307 |
| 309 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 308 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
| 310 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 309 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
| 311 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); | 310 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm); |
| 312 static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm); | |
| 313 | 311 |
| 314 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 312 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 315 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ | 313 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ |
| 316 MacroAssembler* masm); \ | 314 MacroAssembler* masm); \ |
| 317 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 315 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 318 MacroAssembler* masm); | 316 MacroAssembler* masm); |
| 319 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 317 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
| 320 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 318 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
| 321 | 319 |
| 322 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 320 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
| 323 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 321 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
| 324 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 322 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
| 325 | 323 |
| 326 static void InitBuiltinFunctionTable(); | 324 static void InitBuiltinFunctionTable(); |
| 327 | 325 |
| 328 bool initialized_; | 326 bool initialized_; |
| 329 | 327 |
| 330 friend class BuiltinFunctionTable; | 328 friend class BuiltinFunctionTable; |
| 331 friend class Isolate; | 329 friend class Isolate; |
| 332 | 330 |
| 333 DISALLOW_COPY_AND_ASSIGN(Builtins); | 331 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 334 }; | 332 }; |
| 335 | 333 |
| 336 } // namespace internal | 334 } // namespace internal |
| 337 } // namespace v8 | 335 } // namespace v8 |
| 338 | 336 |
| 339 #endif // V8_BUILTINS_H_ | 337 #endif // V8_BUILTINS_H_ |
| OLD | NEW |