| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 898 |
| 899 // Print a message to stdout and abort execution. | 899 // Print a message to stdout and abort execution. |
| 900 void Abort(BailoutReason reason); | 900 void Abort(BailoutReason reason); |
| 901 | 901 |
| 902 // Check that the stack is aligned. | 902 // Check that the stack is aligned. |
| 903 void CheckStackAlignment(); | 903 void CheckStackAlignment(); |
| 904 | 904 |
| 905 // Verify restrictions about code generated in stubs. | 905 // Verify restrictions about code generated in stubs. |
| 906 void set_generating_stub(bool value) { generating_stub_ = value; } | 906 void set_generating_stub(bool value) { generating_stub_ = value; } |
| 907 bool generating_stub() { return generating_stub_; } | 907 bool generating_stub() { return generating_stub_; } |
| 908 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | |
| 909 bool allow_stub_calls() { return allow_stub_calls_; } | |
| 910 void set_has_frame(bool value) { has_frame_ = value; } | 908 void set_has_frame(bool value) { has_frame_ = value; } |
| 911 bool has_frame() { return has_frame_; } | 909 bool has_frame() { return has_frame_; } |
| 912 inline bool AllowThisStubCall(CodeStub* stub); | 910 inline bool AllowThisStubCall(CodeStub* stub); |
| 913 | 911 |
| 914 // --------------------------------------------------------------------------- | 912 // --------------------------------------------------------------------------- |
| 915 // String utilities. | 913 // String utilities. |
| 916 | 914 |
| 917 // Generate code to do a lookup in the number string cache. If the number in | 915 // Generate code to do a lookup in the number string cache. If the number in |
| 918 // the register object is found in the cache the generated code falls through | 916 // the register object is found in the cache the generated code falls through |
| 919 // with the result in the result register. The object and the result register | 917 // with the result in the result register. The object and the result register |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 j(equal, memento_found); | 983 j(equal, memento_found); |
| 986 bind(&no_memento_found); | 984 bind(&no_memento_found); |
| 987 } | 985 } |
| 988 | 986 |
| 989 // Jumps to found label if a prototype map has dictionary elements. | 987 // Jumps to found label if a prototype map has dictionary elements. |
| 990 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 988 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
| 991 Register scratch1, Label* found); | 989 Register scratch1, Label* found); |
| 992 | 990 |
| 993 private: | 991 private: |
| 994 bool generating_stub_; | 992 bool generating_stub_; |
| 995 bool allow_stub_calls_; | |
| 996 bool has_frame_; | 993 bool has_frame_; |
| 997 // This handle will be patched with the code object on installation. | 994 // This handle will be patched with the code object on installation. |
| 998 Handle<Object> code_object_; | 995 Handle<Object> code_object_; |
| 999 | 996 |
| 1000 // Helper functions for generating invokes. | 997 // Helper functions for generating invokes. |
| 1001 void InvokePrologue(const ParameterCount& expected, | 998 void InvokePrologue(const ParameterCount& expected, |
| 1002 const ParameterCount& actual, | 999 const ParameterCount& actual, |
| 1003 Handle<Code> code_constant, | 1000 Handle<Code> code_constant, |
| 1004 const Operand& code_operand, | 1001 const Operand& code_operand, |
| 1005 Label* done, | 1002 Label* done, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 } \ | 1126 } \ |
| 1130 masm-> | 1127 masm-> |
| 1131 #else | 1128 #else |
| 1132 #define ACCESS_MASM(masm) masm-> | 1129 #define ACCESS_MASM(masm) masm-> |
| 1133 #endif | 1130 #endif |
| 1134 | 1131 |
| 1135 | 1132 |
| 1136 } } // namespace v8::internal | 1133 } } // namespace v8::internal |
| 1137 | 1134 |
| 1138 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1135 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |