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

Issue 10830334: Fix bug in compare IC. BUG=2291 (Closed)

Created:
8 years, 4 months ago by Erik Corry
Modified:
8 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix bug in compare IC. BUG=2291 Committed: https://code.google.com/p/v8/source/detail?r=12313

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -3 lines) Patch
M src/code-stubs.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M src/heap.h View 1 chunk +2 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-2291.js View 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Erik Corry
8 years, 4 months ago (2012-08-15 14:21:52 UTC) #1
Vyacheslav Egorov (Google)
8 years, 4 months ago (2012-08-15 14:24:30 UTC) #2
lgtm with comments

https://chromiumcodereview.appspot.com/10830334/diff/1/src/code-stubs.cc
File src/code-stubs.cc (right):

https://chromiumcodereview.appspot.com/10830334/diff/1/src/code-stubs.cc#newc...
src/code-stubs.cc:183: Isolate* isolate = known_map_->GetIsolate();
I would add an assertion here and in AddToSpecialCache that verifies that
operator is either === or ==

https://chromiumcodereview.appspot.com/10830334/diff/1/src/code-stubs.cc#newc...
src/code-stubs.cc:195: *code_out = Code::cast(*probe);
I wonder if we can fetch some information from the code object here and assert
that they match expected values? (e.g. operator, map?)

Powered by Google App Engine
This is Rietveld 408576698