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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 595 |
596 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 596 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
597 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, | 597 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, |
598 int argc, Handle<Object> args[]); | 598 int argc, Handle<Object> args[]); |
599 | 599 |
600 enum ExitFrameType { EXIT, BUILTIN_EXIT }; | 600 enum ExitFrameType { EXIT, BUILTIN_EXIT }; |
601 | 601 |
602 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, | 602 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, |
603 ExitFrameType exit_frame_type); | 603 ExitFrameType exit_frame_type); |
604 | 604 |
| 605 static bool AllowDynamicFunction(Isolate* isolate, Handle<JSFunction> target, |
| 606 Handle<JSObject> target_global_proxy); |
| 607 |
605 private: | 608 private: |
606 Builtins(); | 609 Builtins(); |
607 | 610 |
608 static void Generate_CallFunction(MacroAssembler* masm, | 611 static void Generate_CallFunction(MacroAssembler* masm, |
609 ConvertReceiverMode mode, | 612 ConvertReceiverMode mode, |
610 TailCallMode tail_call_mode); | 613 TailCallMode tail_call_mode); |
611 | 614 |
612 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, | 615 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, |
613 TailCallMode tail_call_mode); | 616 TailCallMode tail_call_mode); |
614 | 617 |
(...skipping 29 matching lines...) Expand all Loading... |
644 | 647 |
645 friend class Isolate; | 648 friend class Isolate; |
646 | 649 |
647 DISALLOW_COPY_AND_ASSIGN(Builtins); | 650 DISALLOW_COPY_AND_ASSIGN(Builtins); |
648 }; | 651 }; |
649 | 652 |
650 } // namespace internal | 653 } // namespace internal |
651 } // namespace v8 | 654 } // namespace v8 |
652 | 655 |
653 #endif // V8_BUILTINS_BUILTINS_H_ | 656 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |