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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 kNoExtraICState) \ | 223 kNoExtraICState) \ |
224 V(TailCall_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 224 V(TailCall_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
225 kNoExtraICState) \ | 225 kNoExtraICState) \ |
226 V(TailCall_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 226 V(TailCall_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
227 \ | 227 \ |
228 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 228 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
229 V(ConstructBoundFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 229 V(ConstructBoundFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
230 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 230 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
231 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 231 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
232 \ | 232 \ |
| 233 V(StringToNumber, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 234 \ |
233 V(Apply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 235 V(Apply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
234 \ | 236 \ |
235 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 237 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
236 \ | 238 \ |
237 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 239 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
238 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 240 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
239 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 241 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
240 V(JSBuiltinsConstructStubForDerived, BUILTIN, UNINITIALIZED, \ | 242 V(JSBuiltinsConstructStubForDerived, BUILTIN, UNINITIALIZED, \ |
241 kNoExtraICState) \ | 243 kNoExtraICState) \ |
242 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 244 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 static void Generate_JSConstructStubApi(MacroAssembler* masm); | 486 static void Generate_JSConstructStubApi(MacroAssembler* masm); |
485 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 487 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
486 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 488 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
487 static void Generate_ResumeGeneratorTrampoline(MacroAssembler* masm); | 489 static void Generate_ResumeGeneratorTrampoline(MacroAssembler* masm); |
488 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 490 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
489 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); | 491 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); |
490 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 492 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
491 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 493 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
492 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); | 494 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); |
493 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 495 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
| 496 static void Generate_StringToNumber(MacroAssembler* masm); |
494 | 497 |
495 static void Generate_Apply(MacroAssembler* masm); | 498 static void Generate_Apply(MacroAssembler* masm); |
496 | 499 |
497 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) | 500 // ES6 section 9.2.1 [[Call]] ( thisArgument, argumentsList) |
498 static void Generate_CallFunction(MacroAssembler* masm, | 501 static void Generate_CallFunction(MacroAssembler* masm, |
499 ConvertReceiverMode mode, | 502 ConvertReceiverMode mode, |
500 TailCallMode tail_call_mode); | 503 TailCallMode tail_call_mode); |
501 static void Generate_CallFunction_ReceiverIsNullOrUndefined( | 504 static void Generate_CallFunction_ReceiverIsNullOrUndefined( |
502 MacroAssembler* masm) { | 505 MacroAssembler* masm) { |
503 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined, | 506 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined, |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 friend class BuiltinFunctionTable; | 731 friend class BuiltinFunctionTable; |
729 friend class Isolate; | 732 friend class Isolate; |
730 | 733 |
731 DISALLOW_COPY_AND_ASSIGN(Builtins); | 734 DISALLOW_COPY_AND_ASSIGN(Builtins); |
732 }; | 735 }; |
733 | 736 |
734 } // namespace internal | 737 } // namespace internal |
735 } // namespace v8 | 738 } // namespace v8 |
736 | 739 |
737 #endif // V8_BUILTINS_H_ | 740 #endif // V8_BUILTINS_H_ |
OLD | NEW |