| 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 are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } else if (RelocInfo::IsConstPool(rmode) || RelocInfo::IsVeneerPool(rmode)) { | 475 } else if (RelocInfo::IsConstPool(rmode) || RelocInfo::IsVeneerPool(rmode)) { |
| 476 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag); | 476 WriteExtraTaggedPC(pc_delta, kPCJumpExtraTag); |
| 477 WriteExtraTaggedPoolData(static_cast<int>(rinfo->data()), | 477 WriteExtraTaggedPoolData(static_cast<int>(rinfo->data()), |
| 478 RelocInfo::IsConstPool(rmode) ? kConstPoolTag | 478 RelocInfo::IsConstPool(rmode) ? kConstPoolTag |
| 479 : kVeneerPoolTag); | 479 : kVeneerPoolTag); |
| 480 } else { | 480 } else { |
| 481 DCHECK(rmode > RelocInfo::LAST_COMPACT_ENUM); | 481 DCHECK(rmode > RelocInfo::LAST_COMPACT_ENUM); |
| 482 int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM; | 482 int saved_mode = rmode - RelocInfo::LAST_COMPACT_ENUM; |
| 483 // For all other modes we simply use the mode as the extra tag. | 483 // For all other modes we simply use the mode as the extra tag. |
| 484 // None of these modes need a data component. | 484 // None of these modes need a data component. |
| 485 DCHECK(saved_mode < kPCJumpExtraTag && saved_mode < kDataJumpExtraTag); | 485 DCHECK(saved_mode < kPoolExtraTag); |
| 486 WriteExtraTaggedPC(pc_delta, saved_mode); | 486 WriteExtraTaggedPC(pc_delta, saved_mode); |
| 487 } | 487 } |
| 488 last_pc_ = rinfo->pc(); | 488 last_pc_ = rinfo->pc(); |
| 489 #ifdef DEBUG | 489 #ifdef DEBUG |
| 490 DCHECK(begin_pos - pos_ <= kMaxSize); | 490 DCHECK(begin_pos - pos_ <= kMaxSize); |
| 491 #endif | 491 #endif |
| 492 } | 492 } |
| 493 | 493 |
| 494 | 494 |
| 495 inline int RelocIterator::AdvanceGetTag() { | 495 inline int RelocIterator::AdvanceGetTag() { |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1613 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1614 state_.written_position = state_.current_position; | 1614 state_.written_position = state_.current_position; |
| 1615 written = true; | 1615 written = true; |
| 1616 } | 1616 } |
| 1617 | 1617 |
| 1618 // Return whether something was written. | 1618 // Return whether something was written. |
| 1619 return written; | 1619 return written; |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
| OLD | NEW |