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

Issue 10387116: Fix issue 825 (LiveEdit vs. function with no locals) for x64. (Closed)

Created:
8 years, 7 months ago by Peter Rybin
Modified:
8 years, 7 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Fix issue 825 (LiveEdit vs. function with no locals) for x64. Committed: https://code.google.com/p/v8/source/detail?r=11587

Patch Set 1 #

Patch Set 2 : style #

Total comments: 2

Patch Set 3 : follow codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M src/ia32/debug-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/debug-x64.cc View 1 2 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Rybin
Hi Yang I'm covering x64 here. I'm a bit sceptic about the quality of my ...
8 years, 7 months ago (2012-05-14 21:08:04 UTC) #1
Yang
LGTM with comments addressed. http://codereview.chromium.org/10387116/diff/2001/src/x64/debug-x64.cc File src/x64/debug-x64.cc (right): http://codereview.chromium.org/10387116/diff/2001/src/x64/debug-x64.cc#newcode117 src/x64/debug-x64.cc:117: __ Integer32ToSmi(kScratchRegister, kScratchRegister); You can ...
8 years, 7 months ago (2012-05-16 09:59:01 UTC) #2
Peter Rybin
8 years, 7 months ago (2012-05-16 21:14:57 UTC) #3
http://codereview.chromium.org/10387116/diff/2001/src/x64/debug-x64.cc
File src/x64/debug-x64.cc (right):

http://codereview.chromium.org/10387116/diff/2001/src/x64/debug-x64.cc#newcod...
src/x64/debug-x64.cc:117: __ Integer32ToSmi(kScratchRegister, kScratchRegister);
On 2012/05/16 09:59:01, Yang wrote:
> You can convert those values to smi using
>     Smi* value = Smi::FromInt(123);
> and then use MacroAssembler::Push(Smi*) to push them onto the stack. This way
> you avoid smi conversions at runtime.

And this is 2-6 times shorter in terms of generated code size!
Done

Powered by Google App Engine
This is Rietveld 408576698