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