OLD | NEW |
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 ldr(scratch, MemOperand(object)); | 273 ldr(scratch, MemOperand(object)); |
274 mov(ip, Operand(1)); | 274 mov(ip, Operand(1)); |
275 orr(scratch, scratch, Operand(ip, LSL, offset)); | 275 orr(scratch, scratch, Operand(ip, LSL, offset)); |
276 str(scratch, MemOperand(object)); | 276 str(scratch, MemOperand(object)); |
277 | 277 |
278 bind(&done); | 278 bind(&done); |
279 | 279 |
280 // Clobber all input registers when running with the debug-code flag | 280 // Clobber all input registers when running with the debug-code flag |
281 // turned on to provoke errors. | 281 // turned on to provoke errors. |
282 if (FLAG_debug_code) { | 282 if (FLAG_debug_code) { |
283 mov(object, Operand(bit_cast<int32_t>(kZapValue))); | 283 mov(object, Operand(BitCast<int32_t>(kZapValue))); |
284 mov(offset, Operand(bit_cast<int32_t>(kZapValue))); | 284 mov(offset, Operand(BitCast<int32_t>(kZapValue))); |
285 mov(scratch, Operand(bit_cast<int32_t>(kZapValue))); | 285 mov(scratch, Operand(BitCast<int32_t>(kZapValue))); |
286 } | 286 } |
287 } | 287 } |
288 | 288 |
289 | 289 |
290 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 290 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
291 // r0-r3: preserved | 291 // r0-r3: preserved |
292 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); | 292 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); |
293 mov(ip, Operand(Smi::FromInt(type))); | 293 mov(ip, Operand(Smi::FromInt(type))); |
294 push(ip); | 294 push(ip); |
295 mov(ip, Operand(CodeObject())); | 295 mov(ip, Operand(CodeObject())); |
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 } | 1501 } |
1502 | 1502 |
1503 | 1503 |
1504 void CodePatcher::Emit(Address addr) { | 1504 void CodePatcher::Emit(Address addr) { |
1505 masm()->emit(reinterpret_cast<Instr>(addr)); | 1505 masm()->emit(reinterpret_cast<Instr>(addr)); |
1506 } | 1506 } |
1507 #endif // ENABLE_DEBUGGER_SUPPORT | 1507 #endif // ENABLE_DEBUGGER_SUPPORT |
1508 | 1508 |
1509 | 1509 |
1510 } } // namespace v8::internal | 1510 } } // namespace v8::internal |
OLD | NEW |