| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 Register scratch2, | 218 Register scratch2, |
| 219 SaveFPRegsMode save_fp); | 219 SaveFPRegsMode save_fp); |
| 220 | 220 |
| 221 #ifdef ENABLE_DEBUGGER_SUPPORT | 221 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 222 // --------------------------------------------------------------------------- | 222 // --------------------------------------------------------------------------- |
| 223 // Debugger Support | 223 // Debugger Support |
| 224 | 224 |
| 225 void DebugBreak(); | 225 void DebugBreak(); |
| 226 #endif | 226 #endif |
| 227 | 227 |
| 228 // Generates function and stub prologue code. |
| 229 void Prologue(PrologueFrameMode frame_mode); |
| 230 |
| 228 // Enter specific kind of exit frame. Expects the number of | 231 // Enter specific kind of exit frame. Expects the number of |
| 229 // arguments in register eax and sets up the number of arguments in | 232 // arguments in register eax and sets up the number of arguments in |
| 230 // register edi and the pointer to the first argument in register | 233 // register edi and the pointer to the first argument in register |
| 231 // esi. | 234 // esi. |
| 232 void EnterExitFrame(bool save_doubles); | 235 void EnterExitFrame(bool save_doubles); |
| 233 | 236 |
| 234 void EnterApiExitFrame(int argc); | 237 void EnterApiExitFrame(int argc); |
| 235 | 238 |
| 236 // Leave the current exit frame. Expects the return value in | 239 // Leave the current exit frame. Expects the return value in |
| 237 // register eax:edx (untouched) and the pointer to the first | 240 // register eax:edx (untouched) and the pointer to the first |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 | 953 |
| 951 // Expects object in eax and returns map with validated enum cache | 954 // Expects object in eax and returns map with validated enum cache |
| 952 // in eax. Assumes that any other register can be used as a scratch. | 955 // in eax. Assumes that any other register can be used as a scratch. |
| 953 void CheckEnumCache(Label* call_runtime); | 956 void CheckEnumCache(Label* call_runtime); |
| 954 | 957 |
| 955 // AllocationMemento support. Arrays may have an associated | 958 // AllocationMemento support. Arrays may have an associated |
| 956 // AllocationMemento object that can be checked for in order to pretransition | 959 // AllocationMemento object that can be checked for in order to pretransition |
| 957 // to another type. | 960 // to another type. |
| 958 // On entry, receiver_reg should point to the array object. | 961 // On entry, receiver_reg should point to the array object. |
| 959 // scratch_reg gets clobbered. | 962 // scratch_reg gets clobbered. |
| 960 // If allocation info is present, conditional code is set to equal | 963 // If allocation info is present, conditional code is set to equal. |
| 961 void TestJSArrayForAllocationMemento(Register receiver_reg, | 964 void TestJSArrayForAllocationMemento(Register receiver_reg, |
| 962 Register scratch_reg); | 965 Register scratch_reg, |
| 966 Label* no_memento_found); |
| 967 |
| 968 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, |
| 969 Register scratch_reg, |
| 970 Label* memento_found) { |
| 971 Label no_memento_found; |
| 972 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, |
| 973 &no_memento_found); |
| 974 j(equal, memento_found); |
| 975 bind(&no_memento_found); |
| 976 } |
| 963 | 977 |
| 964 private: | 978 private: |
| 965 bool generating_stub_; | 979 bool generating_stub_; |
| 966 bool allow_stub_calls_; | 980 bool allow_stub_calls_; |
| 967 bool has_frame_; | 981 bool has_frame_; |
| 968 // This handle will be patched with the code object on installation. | 982 // This handle will be patched with the code object on installation. |
| 969 Handle<Object> code_object_; | 983 Handle<Object> code_object_; |
| 970 | 984 |
| 971 // Helper functions for generating invokes. | 985 // Helper functions for generating invokes. |
| 972 void InvokePrologue(const ParameterCount& expected, | 986 void InvokePrologue(const ParameterCount& expected, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 } \ | 1114 } \ |
| 1101 masm-> | 1115 masm-> |
| 1102 #else | 1116 #else |
| 1103 #define ACCESS_MASM(masm) masm-> | 1117 #define ACCESS_MASM(masm) masm-> |
| 1104 #endif | 1118 #endif |
| 1105 | 1119 |
| 1106 | 1120 |
| 1107 } } // namespace v8::internal | 1121 } } // namespace v8::internal |
| 1108 | 1122 |
| 1109 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |