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

Issue 246643014: CodeStubs contain their corresponding Isolate* now. (part 1) (Closed)

Created:
6 years, 8 months ago by Sven Panne
Modified:
6 years, 8 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

CodeStubs contain their corresponding Isolate* now. (part 1) This is a purely mechanical change, adding an Isolate* to the CodeStub constructor and a corresponding field plus a getter. A few methods in CodeStub and its subclasses can be simplified now, but this is done in a separate CL. The underlying reason apart from simplicity is that deep down in the call chain we need to detect if the serializer is active or not. This information will be part of the Isolate, not a global variable with funky synchronization primitives around it (which is fundamentally wrong and the underlying cause for race conditions and a catch-22 during initialization). BUG=359977 LOG=y R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20919

Patch Set 1 #

Total comments: 10

Patch Set 2 : Feedback. Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+949 lines, -817 lines) Patch
M src/arm/builtins-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/code-stubs-arm.h View 7 chunks +15 lines, -10 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 61 chunks +87 lines, -91 lines 0 comments Download
M src/arm/debug-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/full-codegen-arm.cc View 27 chunks +30 lines, -26 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 14 chunks +24 lines, -20 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 9 chunks +11 lines, -9 lines 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/stub-cache-arm.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/code-stubs-arm64.h View 8 chunks +15 lines, -12 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 59 chunks +83 lines, -95 lines 0 comments Download
M src/arm64/debug-arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/full-codegen-arm64.cc View 27 chunks +32 lines, -26 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 14 chunks +24 lines, -20 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 8 chunks +12 lines, -9 lines 0 comments Download
M src/arm64/regexp-macro-assembler-arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/stub-cache-arm64.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M src/code-stubs.h View 65 chunks +170 lines, -99 lines 0 comments Download
M src/code-stubs.cc View 8 chunks +27 lines, -23 lines 0 comments Download
M src/deoptimizer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/frames.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.h View 5 chunks +12 lines, -8 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 72 chunks +102 lines, -113 lines 0 comments Download
M src/ia32/debug-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 27 chunks +32 lines, -26 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 14 chunks +24 lines, -20 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 8 chunks +13 lines, -9 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M src/ic.cc View 11 chunks +16 lines, -14 lines 0 comments Download
M src/stub-cache.cc View 5 chunks +13 lines, -5 lines 0 comments Download
M src/type-info.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/code-stubs-x64.h View 5 chunks +15 lines, -8 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 51 chunks +76 lines, -79 lines 0 comments Download
M src/x64/debug-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 27 chunks +31 lines, -26 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 14 chunks +24 lines, -20 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M test/cctest/test-code-stubs-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-code-stubs-arm64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-code-stubs-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-code-stubs-x64.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
Long and boring, but mechanical... :-)
6 years, 8 months ago (2014-04-23 13:16:00 UTC) #1
Michael Starzinger
LGTM, just nits. https://codereview.chromium.org/246643014/diff/1/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (left): https://codereview.chromium.org/246643014/diff/1/src/arm/code-stubs-arm.cc#oldcode3787 src/arm/code-stubs-arm.cc:3787: nit: Can we get the empty ...
6 years, 8 months ago (2014-04-23 13:58:21 UTC) #2
Sven Panne
Addressed comments, landing... https://codereview.chromium.org/246643014/diff/1/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (left): https://codereview.chromium.org/246643014/diff/1/src/arm/code-stubs-arm.cc#oldcode3787 src/arm/code-stubs-arm.cc:3787: On 2014/04/23 13:58:21, Michael Starzinger wrote: ...
6 years, 8 months ago (2014-04-24 06:05:34 UTC) #3
Sven Panne
6 years, 8 months ago (2014-04-24 06:26:12 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r20919 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698