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

Issue 8872060: Reland 10216 - Optimize the equality check case of ICCompare stubs. (Closed)

Created:
9 years ago by Rico
Modified:
9 years ago
CC:
v8-dev
Visibility:
Public.

Description

Reland 10216 - Optimize the equality check case of ICCompare stubs. Now with arm and x64 support. Additionally, added default unreachable case to switch statement in CompareIC::TargetState to make win and mac compilers happy. Reviewer guide: This is an exact copy of 10216 except: src/arm/* src/x64/* src/ic.cc (added default case to swith in CompareIC::TargetState) Committed: http://code.google.com/p/v8/source/detail?r=10219

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -70 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +20 lines, -0 lines 2 comments Download
M src/arm/ic-arm.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/code-stubs.h View 3 chunks +19 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 4 chunks +50 lines, -11 lines 0 comments Download
M src/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +21 lines, -8 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +28 lines, -16 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ic.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ic.cc View 2 chunks +34 lines, -13 lines 2 comments Download
M src/mark-compact.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M src/type-info.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/type-info.cc View 3 chunks +15 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +31 lines, -18 lines 0 comments Download
M src/x64/ic-x64.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Rico
9 years ago (2011-12-09 08:35:53 UTC) #1
Kevin Millikin (Chromium)
LGTM with a couple of small comments. http://codereview.chromium.org/8872060/diff/1/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/8872060/diff/1/src/arm/code-stubs-arm.cc#newcode6740 src/arm/code-stubs-arm.cc:6740: __ Push(r1, ...
9 years ago (2011-12-09 09:10:31 UTC) #2
Rico
9 years ago (2011-12-09 09:28:31 UTC) #3
http://codereview.chromium.org/8872060/diff/1/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/8872060/diff/1/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:6740: __ Push(r1, r0);
On 2011/12/09 09:10:31, Kevin Millikin wrote:
> You could move this (and the corresponding pops) to use the internal frame
> instead of using the caller's frame.

Done.

http://codereview.chromium.org/8872060/diff/1/src/ic.cc
File src/ic.cc (right):

http://codereview.chromium.org/8872060/diff/1/src/ic.cc#newcode2369
src/ic.cc:2369: UNREACHABLE();
On 2011/12/09 09:10:31, Kevin Millikin wrote:
> I'd rather have this outside the switch:
> 
> switch (state) {
>   case ...  // Cases for all enum values.
> }
> UNREACHABLE();
> return NULL;

Done.

Powered by Google App Engine
This is Rietveld 408576698