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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 23708030: Get rid of most uses of 'Temporary macro' HEAP (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 movq(kScratchRegister, ExternalReference::new_space_mask(isolate())); 278 movq(kScratchRegister, ExternalReference::new_space_mask(isolate()));
279 and_(scratch, kScratchRegister); 279 and_(scratch, kScratchRegister);
280 } else { 280 } else {
281 movq(scratch, ExternalReference::new_space_mask(isolate())); 281 movq(scratch, ExternalReference::new_space_mask(isolate()));
282 and_(scratch, object); 282 and_(scratch, object);
283 } 283 }
284 movq(kScratchRegister, ExternalReference::new_space_start(isolate())); 284 movq(kScratchRegister, ExternalReference::new_space_start(isolate()));
285 cmpq(scratch, kScratchRegister); 285 cmpq(scratch, kScratchRegister);
286 j(cc, branch, distance); 286 j(cc, branch, distance);
287 } else { 287 } else {
288 ASSERT(is_int32(static_cast<int64_t>(HEAP->NewSpaceMask()))); 288 ASSERT(is_int32(static_cast<int64_t>(isolate()->heap()->NewSpaceMask())));
289 intptr_t new_space_start = 289 intptr_t new_space_start =
290 reinterpret_cast<intptr_t>(HEAP->NewSpaceStart()); 290 reinterpret_cast<intptr_t>(isolate()->heap()->NewSpaceStart());
291 movq(kScratchRegister, -new_space_start, RelocInfo::NONE64); 291 movq(kScratchRegister, -new_space_start, RelocInfo::NONE64);
292 if (scratch.is(object)) { 292 if (scratch.is(object)) {
293 addq(scratch, kScratchRegister); 293 addq(scratch, kScratchRegister);
294 } else { 294 } else {
295 lea(scratch, Operand(object, kScratchRegister, times_1, 0)); 295 lea(scratch, Operand(object, kScratchRegister, times_1, 0));
296 } 296 }
297 and_(scratch, Immediate(static_cast<int32_t>(HEAP->NewSpaceMask()))); 297 and_(scratch,
298 Immediate(static_cast<int32_t>(isolate()->heap()->NewSpaceMask())));
298 j(cc, branch, distance); 299 j(cc, branch, distance);
299 } 300 }
300 } 301 }
301 302
302 303
303 void MacroAssembler::RecordWriteField( 304 void MacroAssembler::RecordWriteField(
304 Register object, 305 Register object,
305 int offset, 306 int offset,
306 Register value, 307 Register value,
307 Register dst, 308 Register dst,
(...skipping 4498 matching lines...) Expand 10 before | Expand all | Expand 10 after
4806 j(greater, &no_memento_available); 4807 j(greater, &no_memento_available);
4807 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), 4808 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize),
4808 Heap::kAllocationMementoMapRootIndex); 4809 Heap::kAllocationMementoMapRootIndex);
4809 bind(&no_memento_available); 4810 bind(&no_memento_available);
4810 } 4811 }
4811 4812
4812 4813
4813 } } // namespace v8::internal 4814 } } // namespace v8::internal
4814 4815
4815 #endif // V8_TARGET_ARCH_X64 4816 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698