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_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
396 ASM(NumberConstructor) \ | 396 ASM(NumberConstructor) \ |
397 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ | 397 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ |
398 ASM(NumberConstructor_ConstructStub) \ | 398 ASM(NumberConstructor_ConstructStub) \ |
399 CPP(NumberPrototypeToExponential) \ | 399 CPP(NumberPrototypeToExponential) \ |
400 CPP(NumberPrototypeToFixed) \ | 400 CPP(NumberPrototypeToFixed) \ |
401 CPP(NumberPrototypeToLocaleString) \ | 401 CPP(NumberPrototypeToLocaleString) \ |
402 CPP(NumberPrototypeToPrecision) \ | 402 CPP(NumberPrototypeToPrecision) \ |
403 CPP(NumberPrototypeToString) \ | 403 CPP(NumberPrototypeToString) \ |
404 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ | 404 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ |
405 TFJ(NumberPrototypeValueOf, 1) \ | 405 TFJ(NumberPrototypeValueOf, 1) \ |
406 \ | |
406 /* Object */ \ | 407 /* Object */ \ |
407 CPP(ObjectAssign) \ | 408 CPP(ObjectAssign) \ |
408 CPP(ObjectCreate) \ | 409 CPP(ObjectCreate) \ |
409 CPP(ObjectDefineGetter) \ | 410 CPP(ObjectDefineGetter) \ |
410 CPP(ObjectDefineProperties) \ | 411 CPP(ObjectDefineProperties) \ |
411 CPP(ObjectDefineProperty) \ | 412 CPP(ObjectDefineProperty) \ |
412 CPP(ObjectDefineSetter) \ | 413 CPP(ObjectDefineSetter) \ |
413 CPP(ObjectEntries) \ | 414 CPP(ObjectEntries) \ |
414 CPP(ObjectFreeze) \ | 415 CPP(ObjectFreeze) \ |
415 CPP(ObjectGetOwnPropertyDescriptor) \ | 416 CPP(ObjectGetOwnPropertyDescriptor) \ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
571 | 572 |
572 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 573 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
573 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, | 574 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, |
574 int argc, Handle<Object> args[]); | 575 int argc, Handle<Object> args[]); |
575 | 576 |
576 enum ExitFrameType { EXIT, BUILTIN_EXIT }; | 577 enum ExitFrameType { EXIT, BUILTIN_EXIT }; |
577 | 578 |
578 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, | 579 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, |
579 ExitFrameType exit_frame_type); | 580 ExitFrameType exit_frame_type); |
580 | 581 |
582 static MaybeHandle<JSFunction> CompileString(Handle<Context> context, | |
Yang
2016/07/19 15:00:11
Let's move this to compiler.cc after this CL.
| |
583 Handle<String> source, | |
584 ParseRestriction restriction); | |
585 | |
581 private: | 586 private: |
582 Builtins(); | 587 Builtins(); |
583 | 588 |
584 static void Generate_CallFunction(MacroAssembler* masm, | 589 static void Generate_CallFunction(MacroAssembler* masm, |
585 ConvertReceiverMode mode, | 590 ConvertReceiverMode mode, |
586 TailCallMode tail_call_mode); | 591 TailCallMode tail_call_mode); |
587 | 592 |
588 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, | 593 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, |
589 TailCallMode tail_call_mode); | 594 TailCallMode tail_call_mode); |
590 | 595 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
623 | 628 |
624 friend class Isolate; | 629 friend class Isolate; |
625 | 630 |
626 DISALLOW_COPY_AND_ASSIGN(Builtins); | 631 DISALLOW_COPY_AND_ASSIGN(Builtins); |
627 }; | 632 }; |
628 | 633 |
629 } // namespace internal | 634 } // namespace internal |
630 } // namespace v8 | 635 } // namespace v8 |
631 | 636 |
632 #endif // V8_BUILTINS_BUILTINS_H_ | 637 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |