OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 // Verify restrictions about code generated in stubs. | 705 // Verify restrictions about code generated in stubs. |
706 void set_generating_stub(bool value) { generating_stub_ = value; } | 706 void set_generating_stub(bool value) { generating_stub_ = value; } |
707 bool generating_stub() { return generating_stub_; } | 707 bool generating_stub() { return generating_stub_; } |
708 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 708 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
709 bool allow_stub_calls() { return allow_stub_calls_; } | 709 bool allow_stub_calls() { return allow_stub_calls_; } |
710 | 710 |
711 private: | 711 private: |
712 List<Unresolved> unresolved_; | 712 List<Unresolved> unresolved_; |
713 bool generating_stub_; | 713 bool generating_stub_; |
714 bool allow_stub_calls_; | 714 bool allow_stub_calls_; |
715 Handle<Object> code_object_; // This handle will be patched with the code | 715 // This handle will be patched with the code object on installation. |
716 // object on installation. | 716 Handle<Object> code_object_; |
717 | 717 |
718 // Helper functions for generating invokes. | 718 // Helper functions for generating invokes. |
719 void InvokePrologue(const ParameterCount& expected, | 719 void InvokePrologue(const ParameterCount& expected, |
720 const ParameterCount& actual, | 720 const ParameterCount& actual, |
721 Handle<Code> code_constant, | 721 Handle<Code> code_constant, |
722 Register code_register, | 722 Register code_register, |
723 Label* done, | 723 Label* done, |
724 InvokeFlag flag); | 724 InvokeFlag flag); |
725 | 725 |
726 // Prepares for a call or jump to a builtin by doing two things: | 726 // Prepares for a call or jump to a builtin by doing two things: |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 } \ | 804 } \ |
805 masm-> | 805 masm-> |
806 #else | 806 #else |
807 #define ACCESS_MASM(masm) masm-> | 807 #define ACCESS_MASM(masm) masm-> |
808 #endif | 808 #endif |
809 | 809 |
810 | 810 |
811 } } // namespace v8::internal | 811 } } // namespace v8::internal |
812 | 812 |
813 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 813 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |