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

Issue 6392027: Change OSR stack check patching to use the stack check table. (Closed)

Created:
9 years, 10 months ago by Karl Klose
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change OSR stack check patching to use the stack check table. Change OSR stack check patching to use the stack check table to iterate over the calls to stack guards platform independent. Introduce Deoptimizer::PatchStackCheckAt for each platform to perform the platform specific patch at a given pc. BUG=none TEST=none

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -48 lines) Patch
M src/arm/deoptimizer-arm.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/deoptimizer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/deoptimizer.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 1 chunk +29 lines, -42 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Karl Klose
9 years, 10 months ago (2011-02-01 10:11:04 UTC) #1
Mads Ager (chromium)
9 years, 10 months ago (2011-02-01 10:24:04 UTC) #2
LGTM with a couple of fomatting nits.

http://codereview.chromium.org/6392027/diff/1/src/ia32/deoptimizer-ia32.cc
File src/ia32/deoptimizer-ia32.cc (right):

http://codereview.chromium.org/6392027/diff/1/src/ia32/deoptimizer-ia32.cc#ne...
src/ia32/deoptimizer-ia32.cc:112: Address call_target_address = pc_after -
kIntSize;
This is really kPointerSize.

http://codereview.chromium.org/6392027/diff/1/src/ia32/deoptimizer-ia32.cc#ne...
src/ia32/deoptimizer-ia32.cc:113: ASSERT(check_code->entry() ==
Assembler::target_address_at(
I would format this differently:

ASSERT(check_code->entry() ==
       Assembler::target_address_at(call_target_address));

http://codereview.chromium.org/6392027/diff/1/src/ia32/deoptimizer-ia32.cc#ne...
src/ia32/deoptimizer-ia32.cc:137: replacement_code->entry());
Align with the other argument please.

Assembler::set_target_address(arg0,
                              arg1);

Powered by Google App Engine
This is Rietveld 408576698