OLD | NEW |
1 | 1 |
2 // Copyright 2011 the V8 project authors. All rights reserved. | 2 // Copyright 2011 the V8 project authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #ifndef V8_BUILTINS_H_ | 6 #ifndef V8_BUILTINS_H_ |
7 #define V8_BUILTINS_H_ | 7 #define V8_BUILTINS_H_ |
8 | 8 |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 V(HandleFastApiCall, BUILTIN, kNoExtraICState) \ | 218 V(HandleFastApiCall, BUILTIN, kNoExtraICState) \ |
219 \ | 219 \ |
220 V(InOptimizationQueue, BUILTIN, kNoExtraICState) \ | 220 V(InOptimizationQueue, BUILTIN, kNoExtraICState) \ |
221 V(JSConstructStubGeneric, BUILTIN, kNoExtraICState) \ | 221 V(JSConstructStubGeneric, BUILTIN, kNoExtraICState) \ |
222 V(JSBuiltinsConstructStub, BUILTIN, kNoExtraICState) \ | 222 V(JSBuiltinsConstructStub, BUILTIN, kNoExtraICState) \ |
223 V(JSBuiltinsConstructStubForDerived, BUILTIN, kNoExtraICState) \ | 223 V(JSBuiltinsConstructStubForDerived, BUILTIN, kNoExtraICState) \ |
224 V(JSConstructStubApi, BUILTIN, kNoExtraICState) \ | 224 V(JSConstructStubApi, BUILTIN, kNoExtraICState) \ |
225 V(JSEntryTrampoline, BUILTIN, kNoExtraICState) \ | 225 V(JSEntryTrampoline, BUILTIN, kNoExtraICState) \ |
226 V(JSConstructEntryTrampoline, BUILTIN, kNoExtraICState) \ | 226 V(JSConstructEntryTrampoline, BUILTIN, kNoExtraICState) \ |
227 V(ResumeGeneratorTrampoline, BUILTIN, kNoExtraICState) \ | 227 V(ResumeGeneratorTrampoline, BUILTIN, kNoExtraICState) \ |
| 228 V(InstantiateAsmJs, BUILTIN, kNoExtraICState) \ |
228 V(CompileLazy, BUILTIN, kNoExtraICState) \ | 229 V(CompileLazy, BUILTIN, kNoExtraICState) \ |
229 V(CompileBaseline, BUILTIN, kNoExtraICState) \ | 230 V(CompileBaseline, BUILTIN, kNoExtraICState) \ |
230 V(CompileOptimized, BUILTIN, kNoExtraICState) \ | 231 V(CompileOptimized, BUILTIN, kNoExtraICState) \ |
231 V(CompileOptimizedConcurrent, BUILTIN, kNoExtraICState) \ | 232 V(CompileOptimizedConcurrent, BUILTIN, kNoExtraICState) \ |
232 V(NotifyDeoptimized, BUILTIN, kNoExtraICState) \ | 233 V(NotifyDeoptimized, BUILTIN, kNoExtraICState) \ |
233 V(NotifySoftDeoptimized, BUILTIN, kNoExtraICState) \ | 234 V(NotifySoftDeoptimized, BUILTIN, kNoExtraICState) \ |
234 V(NotifyLazyDeoptimized, BUILTIN, kNoExtraICState) \ | 235 V(NotifyLazyDeoptimized, BUILTIN, kNoExtraICState) \ |
235 V(NotifyStubFailure, BUILTIN, kNoExtraICState) \ | 236 V(NotifyStubFailure, BUILTIN, kNoExtraICState) \ |
236 V(NotifyStubFailureSaveDoubles, BUILTIN, kNoExtraICState) \ | 237 V(NotifyStubFailureSaveDoubles, BUILTIN, kNoExtraICState) \ |
237 \ | 238 \ |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 // IterateBuiltins() above which assumes Object**'s for the callback | 474 // IterateBuiltins() above which assumes Object**'s for the callback |
474 // function f, we use an Object* array here. | 475 // function f, we use an Object* array here. |
475 Object* builtins_[builtin_count]; | 476 Object* builtins_[builtin_count]; |
476 const char* names_[builtin_count]; | 477 const char* names_[builtin_count]; |
477 | 478 |
478 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id, | 479 static void Generate_Adaptor(MacroAssembler* masm, CFunctionId id, |
479 ExitFrameType exit_frame_type); | 480 ExitFrameType exit_frame_type); |
480 static void Generate_AllocateInNewSpace(MacroAssembler* masm); | 481 static void Generate_AllocateInNewSpace(MacroAssembler* masm); |
481 static void Generate_AllocateInOldSpace(MacroAssembler* masm); | 482 static void Generate_AllocateInOldSpace(MacroAssembler* masm); |
482 static void Generate_ConstructedNonConstructable(MacroAssembler* masm); | 483 static void Generate_ConstructedNonConstructable(MacroAssembler* masm); |
| 484 static void Generate_InstantiateAsmJs(MacroAssembler* masm); |
483 static void Generate_CompileLazy(MacroAssembler* masm); | 485 static void Generate_CompileLazy(MacroAssembler* masm); |
484 static void Generate_CompileBaseline(MacroAssembler* masm); | 486 static void Generate_CompileBaseline(MacroAssembler* masm); |
485 static void Generate_InOptimizationQueue(MacroAssembler* masm); | 487 static void Generate_InOptimizationQueue(MacroAssembler* masm); |
486 static void Generate_CompileOptimized(MacroAssembler* masm); | 488 static void Generate_CompileOptimized(MacroAssembler* masm); |
487 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); | 489 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); |
488 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); | 490 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); |
489 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); | 491 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); |
490 static void Generate_JSBuiltinsConstructStubForDerived(MacroAssembler* masm); | 492 static void Generate_JSBuiltinsConstructStubForDerived(MacroAssembler* masm); |
491 static void Generate_JSConstructStubApi(MacroAssembler* masm); | 493 static void Generate_JSConstructStubApi(MacroAssembler* masm); |
492 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 494 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 friend class BuiltinFunctionTable; | 774 friend class BuiltinFunctionTable; |
773 friend class Isolate; | 775 friend class Isolate; |
774 | 776 |
775 DISALLOW_COPY_AND_ASSIGN(Builtins); | 777 DISALLOW_COPY_AND_ASSIGN(Builtins); |
776 }; | 778 }; |
777 | 779 |
778 } // namespace internal | 780 } // namespace internal |
779 } // namespace v8 | 781 } // namespace v8 |
780 | 782 |
781 #endif // V8_BUILTINS_H_ | 783 #endif // V8_BUILTINS_H_ |
OLD | NEW |