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

Issue 594009: Always load the JavaScript builtins code entry from the JavaScript... (Closed)

Created:
10 years, 10 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Always load the JavaScript builtins code entry from the JavaScript function instead of baking in the address of the first one that we see in code. This removes the need for fixups processing and makes the stubs safe when there is no natives cache and therefore multiple versions of the builtin functions. Committed: http://code.google.com/p/v8/source/detail?r=3832

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -365 lines) Patch
M src/arm/macro-assembler-arm.h View 2 chunks +0 lines, -20 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 2 chunks +13 lines, -43 lines 3 comments Download
M src/bootstrapper.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/bootstrapper.cc View 6 chunks +22 lines, -121 lines 0 comments Download
M src/builtins.cc View 2 chunks +0 lines, -25 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M src/codegen.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 3 chunks +0 lines, -20 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 3 chunks +11 lines, -47 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 3 chunks +0 lines, -20 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 3 chunks +20 lines, -60 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
10 years, 10 months ago (2010-02-09 16:01:56 UTC) #1
Erik Corry
LGTM! (Got to love a change that removes so much code!) http://codereview.chromium.org/594009/diff/1/12 File src/arm/macro-assembler-arm.cc (right): ...
10 years, 10 months ago (2010-02-10 17:22:48 UTC) #2
Mads Ager (chromium)
10 years, 10 months ago (2010-02-11 07:58:30 UTC) #3
http://codereview.chromium.org/594009/diff/1/12
File src/arm/macro-assembler-arm.cc (right):

http://codereview.chromium.org/594009/diff/1/12#newcode1254
src/arm/macro-assembler-arm.cc:1254: ldr(r1, FieldMemOperand(target,
builtins_offset));
On 2010/02/10 17:22:49, Erik Corry wrote:
> Seems like you might as well just use r1 throughout instead of having a hidden
> scratch register here.

Yes, done on all platforms.

Powered by Google App Engine
This is Rietveld 408576698