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

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

Issue 569008: Remember to update the write barrier when storing into... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // object: address of remembered set word 270 // object: address of remembered set word
271 // offset: bit offset of store position 271 // offset: bit offset of store position
272 and_(offset, offset, Operand(kBitsPerInt - 1)); 272 and_(offset, offset, Operand(kBitsPerInt - 1));
273 273
274 ldr(scratch, MemOperand(object)); 274 ldr(scratch, MemOperand(object));
275 mov(ip, Operand(1)); 275 mov(ip, Operand(1));
276 orr(scratch, scratch, Operand(ip, LSL, offset)); 276 orr(scratch, scratch, Operand(ip, LSL, offset));
277 str(scratch, MemOperand(object)); 277 str(scratch, MemOperand(object));
278 278
279 bind(&done); 279 bind(&done);
280
281 // Clobber all input registers when running with the debug-code flag
282 // turned on to provoke errors.
283 if (FLAG_debug_code) {
284 mov(object, Operand(bit_cast<int32_t>(kZapValue)));
285 mov(offset, Operand(bit_cast<int32_t>(kZapValue)));
286 mov(scratch, Operand(bit_cast<int32_t>(kZapValue)));
287 }
280 } 288 }
281 289
282 290
283 void MacroAssembler::EnterFrame(StackFrame::Type type) { 291 void MacroAssembler::EnterFrame(StackFrame::Type type) {
284 // r0-r3: preserved 292 // r0-r3: preserved
285 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); 293 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit());
286 mov(ip, Operand(Smi::FromInt(type))); 294 mov(ip, Operand(Smi::FromInt(type)));
287 push(ip); 295 push(ip);
288 mov(ip, Operand(CodeObject())); 296 mov(ip, Operand(CodeObject()));
289 push(ip); 297 push(ip);
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 } 1307 }
1300 1308
1301 1309
1302 void CodePatcher::Emit(Address addr) { 1310 void CodePatcher::Emit(Address addr) {
1303 masm()->emit(reinterpret_cast<Instr>(addr)); 1311 masm()->emit(reinterpret_cast<Instr>(addr));
1304 } 1312 }
1305 #endif // ENABLE_DEBUGGER_SUPPORT 1313 #endif // ENABLE_DEBUGGER_SUPPORT
1306 1314
1307 1315
1308 } } // namespace v8::internal 1316 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698