| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 IsPatchedDebugBreakSlotSequence()) { | 337 IsPatchedDebugBreakSlotSequence()) { |
| 338 StaticVisitor::VisitDebugTarget(heap, this); | 338 StaticVisitor::VisitDebugTarget(heap, this); |
| 339 } else if (IsRuntimeEntry(mode)) { | 339 } else if (IsRuntimeEntry(mode)) { |
| 340 StaticVisitor::VisitRuntimeEntry(this); | 340 StaticVisitor::VisitRuntimeEntry(this); |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 // Operand constructors | 344 // Operand constructors |
| 345 Operand::Operand(intptr_t immediate, RelocInfo::Mode rmode) { | 345 Operand::Operand(intptr_t immediate, RelocInfo::Mode rmode) { |
| 346 rm_ = no_reg; | 346 rm_ = no_reg; |
| 347 imm_ = immediate; | 347 value_.immediate = immediate; |
| 348 rmode_ = rmode; | 348 rmode_ = rmode; |
| 349 } | 349 } |
| 350 | 350 |
| 351 Operand::Operand(const ExternalReference& f) { | 351 Operand::Operand(const ExternalReference& f) { |
| 352 rm_ = no_reg; | 352 rm_ = no_reg; |
| 353 imm_ = reinterpret_cast<intptr_t>(f.address()); | 353 value_.immediate = reinterpret_cast<intptr_t>(f.address()); |
| 354 rmode_ = RelocInfo::EXTERNAL_REFERENCE; | 354 rmode_ = RelocInfo::EXTERNAL_REFERENCE; |
| 355 } | 355 } |
| 356 | 356 |
| 357 Operand::Operand(Smi* value) { | 357 Operand::Operand(Smi* value) { |
| 358 rm_ = no_reg; | 358 rm_ = no_reg; |
| 359 imm_ = reinterpret_cast<intptr_t>(value); | 359 value_.immediate = reinterpret_cast<intptr_t>(value); |
| 360 rmode_ = kRelocInfo_NONEPTR; | 360 rmode_ = kRelocInfo_NONEPTR; |
| 361 } | 361 } |
| 362 | 362 |
| 363 Operand::Operand(Register rm) { | 363 Operand::Operand(Register rm) { |
| 364 rm_ = rm; | 364 rm_ = rm; |
| 365 rmode_ = kRelocInfo_NONEPTR; // S390 -why doesn't ARM do this? | 365 rmode_ = kRelocInfo_NONEPTR; // S390 -why doesn't ARM do this? |
| 366 } | 366 } |
| 367 | 367 |
| 368 void Assembler::CheckBuffer() { | 368 void Assembler::CheckBuffer() { |
| 369 if (buffer_space() <= kGap) { | 369 if (buffer_space() <= kGap) { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 } | 570 } |
| 571 #endif | 571 #endif |
| 572 } | 572 } |
| 573 if (!patched) UNREACHABLE(); | 573 if (!patched) UNREACHABLE(); |
| 574 } | 574 } |
| 575 | 575 |
| 576 } // namespace internal | 576 } // namespace internal |
| 577 } // namespace v8 | 577 } // namespace v8 |
| 578 | 578 |
| 579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ | 579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ |
| OLD | NEW |