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

Issue 10542137: Fix r11780 to avoid bugs where near branches are used to labels that are out of range. (Closed)

Created:
8 years, 6 months ago by Erik Corry
Modified:
8 years, 6 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Fix r11780 to avoid bugs where near branches are used to labels that are out of range. Committed: http://code.google.com/p/v8/source/detail?r=11792

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -22 lines) Patch
M src/ia32/lithium-codegen-ia32.cc View 1 3 chunks +19 lines, -11 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 3 chunks +19 lines, -11 lines 0 comments Download
A test/mjsunit/regress/regress-deep-proto.js View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Erik Corry
8 years, 6 months ago (2012-06-13 09:41:38 UTC) #1
Michael Starzinger
8 years, 6 months ago (2012-06-13 09:49:57 UTC) #2
LGTM.

http://codereview.chromium.org/10542137/diff/1/src/x64/lithium-codegen-x64.cc
File src/x64/lithium-codegen-x64.cc (right):

http://codereview.chromium.org/10542137/diff/1/src/x64/lithium-codegen-x64.cc...
src/x64/lithium-codegen-x64.cc:2281: CompactEmit(instr->hydrogen()->types(),
name, i, isolate());
This basically means we need to do three lookups (instead of two) for each type
in the polymorphic dispatch. If that overhead is acceptable I am fine with this
implementation, because it's clean.

Powered by Google App Engine
This is Rietveld 408576698