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

Unified Diff: src/spaces.cc

Issue 3186: Refactor the enum RelocMode changing the naming scheme from lower case to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scopes.cc ('k') | src/stub-cache-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
===================================================================
--- src/spaces.cc (revision 352)
+++ src/spaces.cc (working copy)
@@ -1706,7 +1706,7 @@
// with ']'. RelocIterator 'it' must point to a comment reloc info.
static void CollectCommentStatistics(RelocIterator* it) {
ASSERT(!it->done());
- ASSERT(it->rinfo()->rmode() == comment);
+ ASSERT(it->rinfo()->rmode() == RelocInfo::COMMENT);
const char* tmp = reinterpret_cast<const char*>(it->rinfo()->data());
if (tmp[0] != '[') {
// Not a nested comment; skip
@@ -1723,7 +1723,7 @@
// All nested comments must be terminated properly, and therefore exit
// from loop.
ASSERT(!it->done());
- if (it->rinfo()->rmode() == comment) {
+ if (it->rinfo()->rmode() == RelocInfo::COMMENT) {
const char* const txt =
reinterpret_cast<const char*>(it->rinfo()->data());
flat_delta += it->rinfo()->pc() - prev_pc;
@@ -1753,7 +1753,7 @@
int delta = 0;
const byte* prev_pc = code->instruction_start();
while (!it.done()) {
- if (it.rinfo()->rmode() == comment) {
+ if (it.rinfo()->rmode() == RelocInfo::COMMENT) {
delta += it.rinfo()->pc() - prev_pc;
CollectCommentStatistics(&it);
prev_pc = it.rinfo()->pc();
« no previous file with comments | « src/scopes.cc ('k') | src/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698