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