| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 569 |
| 570 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 570 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 571 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, | 571 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, |
| 572 int argc, Handle<Object> args[]); | 572 int argc, Handle<Object> args[]); |
| 573 | 573 |
| 574 enum ExitFrameType { EXIT, BUILTIN_EXIT }; | 574 enum ExitFrameType { EXIT, BUILTIN_EXIT }; |
| 575 | 575 |
| 576 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, | 576 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, |
| 577 ExitFrameType exit_frame_type); | 577 ExitFrameType exit_frame_type); |
| 578 | 578 |
| 579 static MaybeHandle<JSFunction> CompileString(Handle<Context> context, | |
| 580 Handle<String> source, | |
| 581 ParseRestriction restriction); | |
| 582 | |
| 583 private: | 579 private: |
| 584 Builtins(); | 580 Builtins(); |
| 585 | 581 |
| 586 static void Generate_CallFunction(MacroAssembler* masm, | 582 static void Generate_CallFunction(MacroAssembler* masm, |
| 587 ConvertReceiverMode mode, | 583 ConvertReceiverMode mode, |
| 588 TailCallMode tail_call_mode); | 584 TailCallMode tail_call_mode); |
| 589 | 585 |
| 590 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, | 586 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, |
| 591 TailCallMode tail_call_mode); | 587 TailCallMode tail_call_mode); |
| 592 | 588 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 622 | 618 |
| 623 friend class Isolate; | 619 friend class Isolate; |
| 624 | 620 |
| 625 DISALLOW_COPY_AND_ASSIGN(Builtins); | 621 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 626 }; | 622 }; |
| 627 | 623 |
| 628 } // namespace internal | 624 } // namespace internal |
| 629 } // namespace v8 | 625 } // namespace v8 |
| 630 | 626 |
| 631 #endif // V8_BUILTINS_BUILTINS_H_ | 627 #endif // V8_BUILTINS_BUILTINS_H_ |
| OLD | NEW |