OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 Operand::Operand(const ExternalReference& f) { | 282 Operand::Operand(const ExternalReference& f) { |
283 rm_ = no_reg; | 283 rm_ = no_reg; |
284 imm32_ = reinterpret_cast<int32_t>(f.address()); | 284 imm32_ = reinterpret_cast<int32_t>(f.address()); |
285 rmode_ = RelocInfo::EXTERNAL_REFERENCE; | 285 rmode_ = RelocInfo::EXTERNAL_REFERENCE; |
286 } | 286 } |
287 | 287 |
288 | 288 |
289 Operand::Operand(Smi* value) { | 289 Operand::Operand(Smi* value) { |
290 rm_ = no_reg; | 290 rm_ = no_reg; |
291 imm32_ = reinterpret_cast<intptr_t>(value); | 291 imm32_ = reinterpret_cast<intptr_t>(value); |
292 rmode_ = RelocInfo::NONE; | 292 rmode_ = RelocInfo::NONE32; |
293 } | 293 } |
294 | 294 |
295 | 295 |
296 Operand::Operand(Register rm) { | 296 Operand::Operand(Register rm) { |
297 rm_ = rm; | 297 rm_ = rm; |
298 rs_ = no_reg; | 298 rs_ = no_reg; |
299 shift_op_ = LSL; | 299 shift_op_ = LSL; |
300 shift_imm_ = 0; | 300 shift_imm_ = 0; |
301 } | 301 } |
302 | 302 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // CPU::FlushICache(pc, sizeof(target)); | 380 // CPU::FlushICache(pc, sizeof(target)); |
381 // However, on ARM, no instruction was actually patched by the assignment | 381 // However, on ARM, no instruction was actually patched by the assignment |
382 // above; the target address is not part of an instruction, it is patched in | 382 // above; the target address is not part of an instruction, it is patched in |
383 // the constant pool and is read via a data access; the instruction accessing | 383 // the constant pool and is read via a data access; the instruction accessing |
384 // this address in the constant pool remains unchanged. | 384 // this address in the constant pool remains unchanged. |
385 } | 385 } |
386 | 386 |
387 } } // namespace v8::internal | 387 } } // namespace v8::internal |
388 | 388 |
389 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 389 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
OLD | NEW |