| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 3 // All Rights Reserved. | 3 // All Rights Reserved. |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
| 10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 Operand::Operand(const ExternalReference& f) { | 59 Operand::Operand(const ExternalReference& f) { |
| 60 rm_ = no_reg; | 60 rm_ = no_reg; |
| 61 imm32_ = reinterpret_cast<int32_t>(f.address()); | 61 imm32_ = reinterpret_cast<int32_t>(f.address()); |
| 62 rmode_ = RelocInfo::EXTERNAL_REFERENCE; | 62 rmode_ = RelocInfo::EXTERNAL_REFERENCE; |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 Operand::Operand(Smi* value) { | 66 Operand::Operand(Smi* value) { |
| 67 rm_ = no_reg; | 67 rm_ = no_reg; |
| 68 imm32_ = reinterpret_cast<intptr_t>(value); | 68 imm32_ = reinterpret_cast<intptr_t>(value); |
| 69 rmode_ = RelocInfo::NONE; | 69 rmode_ = RelocInfo::NONE32; |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 Operand::Operand(Register rm) { | 73 Operand::Operand(Register rm) { |
| 74 rm_ = rm; | 74 rm_ = rm; |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 bool Operand::is_reg() const { | 78 bool Operand::is_reg() const { |
| 79 return rm_.is_valid(); | 79 return rm_.is_valid(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 389 } |
| 390 *reinterpret_cast<Instr*>(pc_) = x; | 390 *reinterpret_cast<Instr*>(pc_) = x; |
| 391 pc_ += kInstrSize; | 391 pc_ += kInstrSize; |
| 392 CheckTrampolinePoolQuick(); | 392 CheckTrampolinePoolQuick(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 | 395 |
| 396 } } // namespace v8::internal | 396 } } // namespace v8::internal |
| 397 | 397 |
| 398 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 398 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |