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

Issue 125049: X64: Call runtime function from JS stack frame. (Closed)

Created:
11 years, 6 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

X64: Call runtime function from JS stack frame.

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -32 lines) Patch
M src/x64/codegen-x64.cc View 3 chunks +15 lines, -14 lines 12 comments Download
M src/x64/frames-x64.h View 1 chunk +7 lines, -7 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 6 chunks +19 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
Medium size review.
11 years, 6 months ago (2009-06-12 12:27:18 UTC) #1
William Hesse
LGTM. http://codereview.chromium.org/125049/diff/1/2 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/125049/diff/1/2#newcode432 Line 432: // rax: result parameter for PerformGC, if ...
11 years, 6 months ago (2009-06-12 12:45:04 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/125049/diff/1/2 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/125049/diff/1/2#newcode432 Line 432: // rax: result parameter for PerformGC, if any. ...
11 years, 6 months ago (2009-06-12 13:09:13 UTC) #3
William Hesse
11 years, 6 months ago (2009-06-12 14:56:50 UTC) #4
http://codereview.chromium.org/125049/diff/1/2
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/125049/diff/1/2#newcode432
Line 432: // rax: result parameter for PerformGC, if any.
On 2009/06/12 13:09:13, Lasse Reichstein wrote:
> After the code of GenerateCore, the following code is run only if a failure
> happened. In that case, rax holds the resulting failure value. If GenerateCore
> is given a true value as do_gc argument, it is used as the parameter to
> Runtime::PerformGC.
> It is unset until after the first GenerateCore (unless GLAG_gc_greedy is set).
> So it's both a result of the C-call and parameter to PerformGC.

I would comment it as:
// rax: result of the previous call to the function.  Pass it to PerformGC if a
GC is needed.

http://codereview.chromium.org/125049/diff/1/2#newcode450
Line 450: __ movq(kScratchRegister, scope_depth);
On 2009/06/12 13:09:13, Lasse Reichstein wrote:
> If that's the only two places, I'm not too keen on doing extra functions for
it.
> But it is an idea.

Well, they are also the only places incl and decl are used.

Powered by Google App Engine
This is Rietveld 408576698