OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 bind(&done); | 388 bind(&done); |
389 } else { | 389 } else { |
390 usat(dst, satpos, src, cond); | 390 usat(dst, satpos, src, cond); |
391 } | 391 } |
392 } | 392 } |
393 | 393 |
394 | 394 |
395 void MacroAssembler::LoadRoot(Register destination, | 395 void MacroAssembler::LoadRoot(Register destination, |
396 Heap::RootListIndex index, | 396 Heap::RootListIndex index, |
397 Condition cond) { | 397 Condition cond) { |
398 ldr(destination, MemOperand(roots, index << kPointerSizeLog2), cond); | 398 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
399 } | 399 } |
400 | 400 |
401 | 401 |
402 void MacroAssembler::StoreRoot(Register source, | 402 void MacroAssembler::StoreRoot(Register source, |
403 Heap::RootListIndex index, | 403 Heap::RootListIndex index, |
404 Condition cond) { | 404 Condition cond) { |
405 str(source, MemOperand(roots, index << kPointerSizeLog2), cond); | 405 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
406 } | 406 } |
407 | 407 |
408 | 408 |
409 void MacroAssembler::RecordWriteHelper(Register object, | 409 void MacroAssembler::RecordWriteHelper(Register object, |
410 Register address, | 410 Register address, |
411 Register scratch) { | 411 Register scratch) { |
412 if (emit_debug_code()) { | 412 if (emit_debug_code()) { |
413 // Check that the object is not in new space. | 413 // Check that the object is not in new space. |
414 Label not_in_new_space; | 414 Label not_in_new_space; |
415 InNewSpace(object, scratch, ne, ¬_in_new_space); | 415 InNewSpace(object, scratch, ne, ¬_in_new_space); |
(...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3269 void CodePatcher::EmitCondition(Condition cond) { | 3269 void CodePatcher::EmitCondition(Condition cond) { |
3270 Instr instr = Assembler::instr_at(masm_.pc_); | 3270 Instr instr = Assembler::instr_at(masm_.pc_); |
3271 instr = (instr & ~kCondMask) | cond; | 3271 instr = (instr & ~kCondMask) | cond; |
3272 masm_.emit(instr); | 3272 masm_.emit(instr); |
3273 } | 3273 } |
3274 | 3274 |
3275 | 3275 |
3276 } } // namespace v8::internal | 3276 } } // namespace v8::internal |
3277 | 3277 |
3278 #endif // V8_TARGET_ARCH_ARM | 3278 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |