Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Side by Side Diff: src/assembler.cc

Issue 902863004: Move DEOPT_REASON enum value out of long encoding modes range. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698