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

Issue 6717018: Introduce accessors on builtins instance (Closed)

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

Description

Introduce accessors on builtins instance and use them to avoid TLS access when getting builtins. R=vitalyr@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=7327

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use macros to create accessors on builtins instance #

Patch Set 3 : Removing Handle suffix and renaming enum entries #

Total comments: 4

Patch Set 4 : Fix tests and lint. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -522 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 7 chunks +16 lines, -16 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 2 3 7 chunks +10 lines, -9 lines 0 comments Download
M src/arm/deoptimizer-arm.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 2 3 18 chunks +36 lines, -44 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 5 chunks +9 lines, -12 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 1 2 3 19 chunks +24 lines, -33 lines 0 comments Download
M src/arm/virtual-frame-arm.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M src/ast.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 20 chunks +28 lines, -27 lines 0 comments Download
M src/builtins.h View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 3 2 chunks +20 lines, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M src/debug.cc View 1 2 5 chunks +13 lines, -20 lines 0 comments Download
M src/factory.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M src/frames.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 9 chunks +18 lines, -19 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 17 chunks +38 lines, -45 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 5 chunks +9 lines, -11 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 2 3 15 chunks +22 lines, -26 lines 0 comments Download
M src/ia32/virtual-frame-ia32.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M src/ic.h View 1 2 4 chunks +21 lines, -21 lines 0 comments Download
M src/ic.cc View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M src/liveedit.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M src/log.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/mark-compact.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M src/objects.cc View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download
M src/objects-inl.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/runtime.cc View 1 2 3 2 chunks +8 lines, -9 lines 0 comments Download
M src/runtime-profiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/serialize.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/stub-cache.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M src/type-info.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 8 chunks +16 lines, -18 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 4 chunks +5 lines, -8 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 17 chunks +36 lines, -44 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 1 2 3 11 chunks +16 lines, -21 lines 0 comments Download
M src/x64/virtual-frame-x64.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M test/cctest/test-alloc.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-disasm-ia32.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
9 years, 9 months ago (2011-03-22 13:28:32 UTC) #1
Vitaly Repeshko
http://codereview.chromium.org/6717018/diff/1/src/builtins.cc File src/builtins.cc (right): http://codereview.chromium.org/6717018/diff/1/src/builtins.cc#newcode1689 src/builtins.cc:1689: return Handle<Code>(isolate->builtins()->builtin(name), isolate); I think we can reuse builtin ...
9 years, 9 months ago (2011-03-22 14:46:20 UTC) #2
Mads Ager (chromium)
On 2011/03/22 14:46:20, Vitaly Repeshko wrote: > http://codereview.chromium.org/6717018/diff/1/src/builtins.cc > File src/builtins.cc (right): > > http://codereview.chromium.org/6717018/diff/1/src/builtins.cc#newcode1689 ...
9 years, 9 months ago (2011-03-22 18:21:45 UTC) #3
Vitaly Repeshko
LGTM! http://codereview.chromium.org/6717018/diff/5001/src/builtins.cc File src/builtins.cc (right): http://codereview.chromium.org/6717018/diff/5001/src/builtins.cc#newcode1689 src/builtins.cc:1689: Handle<Code> Builtins::name() { \ This shouldn't be indented, ...
9 years, 9 months ago (2011-03-23 12:13:41 UTC) #4
Mads Ager (chromium)
9 years, 9 months ago (2011-03-23 12:28:06 UTC) #5
http://codereview.chromium.org/6717018/diff/5001/src/builtins.cc
File src/builtins.cc (right):

http://codereview.chromium.org/6717018/diff/5001/src/builtins.cc#newcode1689
src/builtins.cc:1689: Handle<Code> Builtins::name() {                           
   \
On 2011/03/23 12:13:41, Vitaly Repeshko wrote:
> This shouldn't be indented, I think.

Done.

http://codereview.chromium.org/6717018/diff/5001/src/builtins.cc#newcode1695
src/builtins.cc:1695: Handle<Code> Builtins::name() {                           
\
On 2011/03/23 12:13:41, Vitaly Repeshko wrote:
> Ditto.

Done.

Powered by Google App Engine
This is Rietveld 408576698