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

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

Issue 657077: Allow snapshots built without -DANDROID to work on Android.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 10 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/arm/fast-codegen-arm.cc ('k') | src/assembler.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // offset of the word in the remembered set. We divide by kBitsPerInt (32, 214 // offset of the word in the remembered set. We divide by kBitsPerInt (32,
215 // shift right 5) and then multiply by kIntSize (4, shift left 2). 215 // shift right 5) and then multiply by kIntSize (4, shift left 2).
216 const int kRSetWordShift = 3; 216 const int kRSetWordShift = 3;
217 217
218 Label fast, done; 218 Label fast, done;
219 219
220 // First, test that the object is not in the new space. We cannot set 220 // First, test that the object is not in the new space. We cannot set
221 // remembered set bits in the new space. 221 // remembered set bits in the new space.
222 // object: heap object pointer (with tag) 222 // object: heap object pointer (with tag)
223 // offset: offset to store location from the object 223 // offset: offset to store location from the object
224 and_(scratch, object, Operand(Heap::NewSpaceMask())); 224 and_(scratch, object, Operand(ExternalReference::new_space_mask()));
225 cmp(scratch, Operand(ExternalReference::new_space_start())); 225 cmp(scratch, Operand(ExternalReference::new_space_start()));
226 b(eq, &done); 226 b(eq, &done);
227 227
228 // Compute the bit offset in the remembered set. 228 // Compute the bit offset in the remembered set.
229 // object: heap object pointer (with tag) 229 // object: heap object pointer (with tag)
230 // offset: offset to store location from the object 230 // offset: offset to store location from the object
231 mov(ip, Operand(Page::kPageAlignmentMask)); // load mask only once 231 mov(ip, Operand(Page::kPageAlignmentMask)); // load mask only once
232 and_(scratch, object, Operand(ip)); // offset into page of the object 232 and_(scratch, object, Operand(ip)); // offset into page of the object
233 add(offset, scratch, Operand(offset)); // add offset into the object 233 add(offset, scratch, Operand(offset)); // add offset into the object
234 mov(offset, Operand(offset, LSR, kObjectAlignmentBits)); 234 mov(offset, Operand(offset, LSR, kObjectAlignmentBits));
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 } 1468 }
1469 1469
1470 1470
1471 void CodePatcher::Emit(Address addr) { 1471 void CodePatcher::Emit(Address addr) {
1472 masm()->emit(reinterpret_cast<Instr>(addr)); 1472 masm()->emit(reinterpret_cast<Instr>(addr));
1473 } 1473 }
1474 #endif // ENABLE_DEBUGGER_SUPPORT 1474 #endif // ENABLE_DEBUGGER_SUPPORT
1475 1475
1476 1476
1477 } } // namespace v8::internal 1477 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698