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

Issue 6069012: Add constraints verification to LAllocator::MarkAsCall(). (Closed)

Created:
9 years, 11 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add constraints verification to LAllocator::MarkAsCall(). Committed: http://code.google.com/p/v8/source/detail?r=6149

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M src/ia32/lithium-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/lithium-allocator.cc View 1 chunk +19 lines, -1 line 2 comments Download

Messages

Total messages: 2 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 11 months ago (2011-01-04 10:26:53 UTC) #1
Kevin Millikin (Chromium)
9 years, 11 months ago (2011-01-04 11:21:23 UTC) #2
LGTM with small comments below.

http://codereview.chromium.org/6069012/diff/1/src/lithium-allocator.cc
File src/lithium-allocator.cc (right):

http://codereview.chromium.org/6069012/diff/1/src/lithium-allocator.cc#newcod...
src/lithium-allocator.cc:1596:
LUnallocated::cast(summary->Output())->HasFixedPolicy() ||
You could define a predicate on LUnallocated:

bool HasFlexibleRegisterPolicy() {
  return HasRegisterPolicy() && !HasFixedPolicy();
}

And use it (negated) in three places here.

http://codereview.chromium.org/6069012/diff/1/src/lithium-allocator.cc#newcod...
src/lithium-allocator.cc:1599:
ASSERT(LUnallocated::cast(summary->InputAt(i))->HasFixedPolicy() ||
I'd prefer to have the for loops wrapped in #ifdef DEBUG so there's clearly no
code in release builds.

Powered by Google App Engine
This is Rietveld 408576698