| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 ASM(NumberConstructor) \ | 395 ASM(NumberConstructor) \ |
| 396 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ | 396 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ |
| 397 ASM(NumberConstructor_ConstructStub) \ | 397 ASM(NumberConstructor_ConstructStub) \ |
| 398 CPP(NumberPrototypeToExponential) \ | 398 CPP(NumberPrototypeToExponential) \ |
| 399 CPP(NumberPrototypeToFixed) \ | 399 CPP(NumberPrototypeToFixed) \ |
| 400 CPP(NumberPrototypeToLocaleString) \ | 400 CPP(NumberPrototypeToLocaleString) \ |
| 401 CPP(NumberPrototypeToPrecision) \ | 401 CPP(NumberPrototypeToPrecision) \ |
| 402 CPP(NumberPrototypeToString) \ | 402 CPP(NumberPrototypeToString) \ |
| 403 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ | 403 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ |
| 404 TFJ(NumberPrototypeValueOf, 1) \ | 404 TFJ(NumberPrototypeValueOf, 1) \ |
| 405 \ |
| 405 /* Object */ \ | 406 /* Object */ \ |
| 406 CPP(ObjectAssign) \ | 407 CPP(ObjectAssign) \ |
| 407 CPP(ObjectCreate) \ | 408 CPP(ObjectCreate) \ |
| 408 CPP(ObjectDefineGetter) \ | 409 CPP(ObjectDefineGetter) \ |
| 409 CPP(ObjectDefineProperties) \ | 410 CPP(ObjectDefineProperties) \ |
| 410 CPP(ObjectDefineProperty) \ | 411 CPP(ObjectDefineProperty) \ |
| 411 CPP(ObjectDefineSetter) \ | 412 CPP(ObjectDefineSetter) \ |
| 412 CPP(ObjectEntries) \ | 413 CPP(ObjectEntries) \ |
| 413 CPP(ObjectFreeze) \ | 414 CPP(ObjectFreeze) \ |
| 414 CPP(ObjectGetOwnPropertyDescriptor) \ | 415 CPP(ObjectGetOwnPropertyDescriptor) \ |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 570 |
| 570 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 571 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 571 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, | 572 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, |
| 572 int argc, Handle<Object> args[]); | 573 int argc, Handle<Object> args[]); |
| 573 | 574 |
| 574 enum ExitFrameType { EXIT, BUILTIN_EXIT }; | 575 enum ExitFrameType { EXIT, BUILTIN_EXIT }; |
| 575 | 576 |
| 576 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, | 577 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, |
| 577 ExitFrameType exit_frame_type); | 578 ExitFrameType exit_frame_type); |
| 578 | 579 |
| 580 static MaybeHandle<JSFunction> CompileString(Handle<Context> context, |
| 581 Handle<String> source, |
| 582 ParseRestriction restriction); |
| 583 |
| 579 private: | 584 private: |
| 580 Builtins(); | 585 Builtins(); |
| 581 | 586 |
| 582 static void Generate_CallFunction(MacroAssembler* masm, | 587 static void Generate_CallFunction(MacroAssembler* masm, |
| 583 ConvertReceiverMode mode, | 588 ConvertReceiverMode mode, |
| 584 TailCallMode tail_call_mode); | 589 TailCallMode tail_call_mode); |
| 585 | 590 |
| 586 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, | 591 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, |
| 587 TailCallMode tail_call_mode); | 592 TailCallMode tail_call_mode); |
| 588 | 593 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 618 | 623 |
| 619 friend class Isolate; | 624 friend class Isolate; |
| 620 | 625 |
| 621 DISALLOW_COPY_AND_ASSIGN(Builtins); | 626 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 622 }; | 627 }; |
| 623 | 628 |
| 624 } // namespace internal | 629 } // namespace internal |
| 625 } // namespace v8 | 630 } // namespace v8 |
| 626 | 631 |
| 627 #endif // V8_BUILTINS_BUILTINS_H_ | 632 #endif // V8_BUILTINS_BUILTINS_H_ |
| OLD | NEW |