| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 93 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 94 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 94 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 95 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 95 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
| 96 kNoExtraICState) \ | 96 kNoExtraICState) \ |
| 97 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 97 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 98 \ | 98 \ |
| 99 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 99 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 100 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 100 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 101 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 101 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 102 \ | 102 \ |
| 103 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 104 \ |
| 103 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 105 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 104 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 106 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 105 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 107 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 106 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 108 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 107 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 109 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 108 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 110 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 109 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 111 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 110 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 112 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 111 V(CompileOptimizedConcurrent, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 113 V(CompileOptimizedConcurrent, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 112 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 114 V(NotifyDeoptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 Generate_Call(masm, ConvertReceiverMode::kAny); | 325 Generate_Call(masm, ConvertReceiverMode::kAny); |
| 324 } | 326 } |
| 325 | 327 |
| 326 // ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) | 328 // ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) |
| 327 static void Generate_ConstructFunction(MacroAssembler* masm); | 329 static void Generate_ConstructFunction(MacroAssembler* masm); |
| 328 // ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) | 330 // ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) |
| 329 static void Generate_ConstructProxy(MacroAssembler* masm); | 331 static void Generate_ConstructProxy(MacroAssembler* masm); |
| 330 // ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) | 332 // ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) |
| 331 static void Generate_Construct(MacroAssembler* masm); | 333 static void Generate_Construct(MacroAssembler* masm); |
| 332 | 334 |
| 335 static void Generate_HandleFastApiCall(MacroAssembler* masm); |
| 336 |
| 333 static void Generate_FunctionCall(MacroAssembler* masm); | 337 static void Generate_FunctionCall(MacroAssembler* masm); |
| 334 static void Generate_FunctionApply(MacroAssembler* masm); | 338 static void Generate_FunctionApply(MacroAssembler* masm); |
| 335 static void Generate_ReflectApply(MacroAssembler* masm); | 339 static void Generate_ReflectApply(MacroAssembler* masm); |
| 336 static void Generate_ReflectConstruct(MacroAssembler* masm); | 340 static void Generate_ReflectConstruct(MacroAssembler* masm); |
| 337 | 341 |
| 338 static void Generate_InternalArrayCode(MacroAssembler* masm); | 342 static void Generate_InternalArrayCode(MacroAssembler* masm); |
| 339 static void Generate_ArrayCode(MacroAssembler* masm); | 343 static void Generate_ArrayCode(MacroAssembler* masm); |
| 340 | 344 |
| 341 static void Generate_StringConstructor(MacroAssembler* masm); | 345 static void Generate_StringConstructor(MacroAssembler* masm); |
| 342 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 346 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 369 friend class BuiltinFunctionTable; | 373 friend class BuiltinFunctionTable; |
| 370 friend class Isolate; | 374 friend class Isolate; |
| 371 | 375 |
| 372 DISALLOW_COPY_AND_ASSIGN(Builtins); | 376 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 373 }; | 377 }; |
| 374 | 378 |
| 375 } // namespace internal | 379 } // namespace internal |
| 376 } // namespace v8 | 380 } // namespace v8 |
| 377 | 381 |
| 378 #endif // V8_BUILTINS_H_ | 382 #endif // V8_BUILTINS_H_ |
| OLD | NEW |