OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 rm_ = no_reg; | 214 rm_ = no_reg; |
215 // Verify all Objects referred by code are NOT in new space. | 215 // Verify all Objects referred by code are NOT in new space. |
216 Object* obj = *handle; | 216 Object* obj = *handle; |
217 ASSERT(!HEAP->InNewSpace(obj)); | 217 ASSERT(!HEAP->InNewSpace(obj)); |
218 if (obj->IsHeapObject()) { | 218 if (obj->IsHeapObject()) { |
219 imm32_ = reinterpret_cast<intptr_t>(handle.location()); | 219 imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
220 rmode_ = RelocInfo::EMBEDDED_OBJECT; | 220 rmode_ = RelocInfo::EMBEDDED_OBJECT; |
221 } else { | 221 } else { |
222 // No relocation needed. | 222 // No relocation needed. |
223 imm32_ = reinterpret_cast<intptr_t>(obj); | 223 imm32_ = reinterpret_cast<intptr_t>(obj); |
224 rmode_ = RelocInfo::NONE; | 224 rmode_ = RelocInfo::NONE32; |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 | 228 |
229 MemOperand::MemOperand(Register rm, int32_t offset) : Operand(rm) { | 229 MemOperand::MemOperand(Register rm, int32_t offset) : Operand(rm) { |
230 offset_ = offset; | 230 offset_ = offset; |
231 } | 231 } |
232 | 232 |
233 | 233 |
234 // ----------------------------------------------------------------------------- | 234 // ----------------------------------------------------------------------------- |
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2240 } | 2240 } |
2241 | 2241 |
2242 if (patched) { | 2242 if (patched) { |
2243 CPU::FlushICache(pc+2, sizeof(Address)); | 2243 CPU::FlushICache(pc+2, sizeof(Address)); |
2244 } | 2244 } |
2245 } | 2245 } |
2246 | 2246 |
2247 } } // namespace v8::internal | 2247 } } // namespace v8::internal |
2248 | 2248 |
2249 #endif // V8_TARGET_ARCH_MIPS | 2249 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |