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/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 109 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
110 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 110 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
111 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 111 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
112 kNoExtraICState) \ | 112 kNoExtraICState) \ |
113 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 113 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
114 \ | 114 \ |
115 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 115 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
116 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 116 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
117 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 117 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
118 \ | 118 \ |
| 119 V(Apply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 120 \ |
119 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 121 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
120 \ | 122 \ |
121 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 123 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
122 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 124 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
123 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 125 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
124 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 126 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
125 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 127 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
126 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 128 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
127 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 129 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
128 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 130 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 static void Generate_JSConstructStubApi(MacroAssembler* masm); | 310 static void Generate_JSConstructStubApi(MacroAssembler* masm); |
309 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 311 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
310 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 312 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
311 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 313 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
312 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); | 314 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); |
313 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 315 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
314 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 316 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
315 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); | 317 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); |
316 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 318 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
317 | 319 |
| 320 static void Generate_Apply(MacroAssembler* masm); |
| 321 |
318 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) | 322 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) |
319 static void Generate_CallFunction(MacroAssembler* masm, | 323 static void Generate_CallFunction(MacroAssembler* masm, |
320 ConvertReceiverMode mode); | 324 ConvertReceiverMode mode); |
321 static void Generate_CallFunction_ReceiverIsNullOrUndefined( | 325 static void Generate_CallFunction_ReceiverIsNullOrUndefined( |
322 MacroAssembler* masm) { | 326 MacroAssembler* masm) { |
323 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined); | 327 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined); |
324 } | 328 } |
325 static void Generate_CallFunction_ReceiverIsNotNullOrUndefined( | 329 static void Generate_CallFunction_ReceiverIsNotNullOrUndefined( |
326 MacroAssembler* masm) { | 330 MacroAssembler* masm) { |
327 Generate_CallFunction(masm, ConvertReceiverMode::kNotNullOrUndefined); | 331 Generate_CallFunction(masm, ConvertReceiverMode::kNotNullOrUndefined); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 friend class BuiltinFunctionTable; | 393 friend class BuiltinFunctionTable; |
390 friend class Isolate; | 394 friend class Isolate; |
391 | 395 |
392 DISALLOW_COPY_AND_ASSIGN(Builtins); | 396 DISALLOW_COPY_AND_ASSIGN(Builtins); |
393 }; | 397 }; |
394 | 398 |
395 } // namespace internal | 399 } // namespace internal |
396 } // namespace v8 | 400 } // namespace v8 |
397 | 401 |
398 #endif // V8_BUILTINS_H_ | 402 #endif // V8_BUILTINS_H_ |
OLD | NEW |