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

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

Issue 2087463004: Revert of [heap] Avoid the use of cells to point from code to new-space objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/arm/assembler-arm-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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // ----------------------------------------------------------------------------- 268 // -----------------------------------------------------------------------------
269 // Implementation of Operand and MemOperand 269 // Implementation of Operand and MemOperand
270 // See assembler-arm-inl.h for inlined constructors 270 // See assembler-arm-inl.h for inlined constructors
271 271
272 Operand::Operand(Handle<Object> handle) { 272 Operand::Operand(Handle<Object> handle) {
273 AllowDeferredHandleDereference using_raw_address; 273 AllowDeferredHandleDereference using_raw_address;
274 rm_ = no_reg; 274 rm_ = no_reg;
275 // Verify all Objects referred by code are NOT in new space. 275 // Verify all Objects referred by code are NOT in new space.
276 Object* obj = *handle; 276 Object* obj = *handle;
277 if (obj->IsHeapObject()) { 277 if (obj->IsHeapObject()) {
278 DCHECK(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj));
278 imm32_ = reinterpret_cast<intptr_t>(handle.location()); 279 imm32_ = reinterpret_cast<intptr_t>(handle.location());
279 rmode_ = RelocInfo::EMBEDDED_OBJECT; 280 rmode_ = RelocInfo::EMBEDDED_OBJECT;
280 } else { 281 } else {
281 // no relocation needed 282 // no relocation needed
282 imm32_ = reinterpret_cast<intptr_t>(obj); 283 imm32_ = reinterpret_cast<intptr_t>(obj);
283 rmode_ = RelocInfo::NONE32; 284 rmode_ = RelocInfo::NONE32;
284 } 285 }
285 } 286 }
286 287
287 288
(...skipping 3965 matching lines...) Expand 10 before | Expand all | Expand 10 after
4253 DCHECK(is_uint12(offset)); 4254 DCHECK(is_uint12(offset));
4254 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 4255 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
4255 } 4256 }
4256 } 4257 }
4257 4258
4258 4259
4259 } // namespace internal 4260 } // namespace internal
4260 } // namespace v8 4261 } // namespace v8
4261 4262
4262 #endif // V8_TARGET_ARCH_ARM 4263 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698