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