Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: src/mips/assembler-mips.cc

Issue 24108002: MIPS: remove most uses of Isolate::Current in arch specific files. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Patch the code at the current address with a call to the target. 231 // Patch the code at the current address with a call to the target.
232 UNIMPLEMENTED_MIPS(); 232 UNIMPLEMENTED_MIPS();
233 } 233 }
234 234
235 235
236 // ----------------------------------------------------------------------------- 236 // -----------------------------------------------------------------------------
237 // Implementation of Operand and MemOperand. 237 // Implementation of Operand and MemOperand.
238 // See assembler-mips-inl.h for inlined constructors. 238 // See assembler-mips-inl.h for inlined constructors.
239 239
240 Operand::Operand(Handle<Object> handle) { 240 Operand::Operand(Handle<Object> handle) {
241 #ifdef DEBUG
242 Isolate* isolate = Isolate::Current();
243 #endif
244 AllowDeferredHandleDereference using_raw_address; 241 AllowDeferredHandleDereference using_raw_address;
245 rm_ = no_reg; 242 rm_ = no_reg;
246 // Verify all Objects referred by code are NOT in new space. 243 // Verify all Objects referred by code are NOT in new space.
247 Object* obj = *handle; 244 Object* obj = *handle;
248 ASSERT(!isolate->heap()->InNewSpace(obj));
249 if (obj->IsHeapObject()) { 245 if (obj->IsHeapObject()) {
246 ASSERT(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj));
250 imm32_ = reinterpret_cast<intptr_t>(handle.location()); 247 imm32_ = reinterpret_cast<intptr_t>(handle.location());
251 rmode_ = RelocInfo::EMBEDDED_OBJECT; 248 rmode_ = RelocInfo::EMBEDDED_OBJECT;
252 } else { 249 } else {
253 // No relocation needed. 250 // No relocation needed.
254 imm32_ = reinterpret_cast<intptr_t>(obj); 251 imm32_ = reinterpret_cast<intptr_t>(obj);
255 rmode_ = RelocInfo::NONE32; 252 rmode_ = RelocInfo::NONE32;
256 } 253 }
257 } 254 }
258 255
259 256
(...skipping 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 } 2292 }
2296 2293
2297 if (patched) { 2294 if (patched) {
2298 CPU::FlushICache(pc+2, sizeof(Address)); 2295 CPU::FlushICache(pc+2, sizeof(Address));
2299 } 2296 }
2300 } 2297 }
2301 2298
2302 } } // namespace v8::internal 2299 } } // namespace v8::internal
2303 2300
2304 #endif // V8_TARGET_ARCH_MIPS 2301 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698