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

Issue 1480003002: [runtime] Replace global object link with native context link in all contexts. (Closed)

Created:
5 years ago by Benedikt Meurer
Modified:
5 years ago
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Replace global object link with native context link in all contexts. Previously all contexts had a link to the global object, but what is required in most cases (except for the global load, store and delete case) is the native context. This also removes the second dummy global object that was still linked to every native context. We will add a different mechanism to ensure that builtins do not pollute the actual global object during bootstrapping. Drive-by-fix: Unify some MacroAssembler magic and drop obsolete stuff. CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_nosnap_rel R=yangguo@chromium.org,mstarzinger@chromium.org Committed: https://crrev.com/d290f204938295bfecc5c8e645ccfcff6e80ddb8 Cr-Commit-Position: refs/heads/master@{#32375} Committed: https://crrev.com/47502a238b8185a864bfe6a8d5508b4e67cad40e Cr-Commit-Position: refs/heads/master@{#32381}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add TODOs for Yang. #

Patch Set 3 : Drop comment. #

Patch Set 4 : Add patch from Orion for interpreter cementation test. Disable obsolete/invalid tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -991 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 4 chunks +7 lines, -23 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 8 chunks +13 lines, -18 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 4 chunks +12 lines, -12 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 5 chunks +8 lines, -50 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 chunks +5 lines, -15 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 6 chunks +10 lines, -19 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 4 chunks +11 lines, -12 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 6 chunks +7 lines, -45 lines 0 comments Download
M src/bootstrapper.cc View 1 6 chunks +3 lines, -43 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M src/compiler.h View 1 chunk +7 lines, -8 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M src/compiler/bytecode-graph-builder.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 chunk +3 lines, -10 lines 0 comments Download
M src/compiler/js-call-reducer.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 3 chunks +18 lines, -17 lines 0 comments Download
M src/compiler/js-operator.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/compiler/js-operator.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-typed-lowering.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-typed-lowering.cc View 11 chunks +40 lines, -71 lines 0 comments Download
M src/compiler/opcodes.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/typer.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/contexts.h View 4 chunks +9 lines, -9 lines 0 comments Download
M src/contexts.cc View 4 chunks +14 lines, -18 lines 0 comments Download
M src/contexts-inl.h View 2 chunks +8 lines, -8 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 7 chunks +12 lines, -30 lines 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/factory.cc View 1 2 3 6 chunks +6 lines, -5 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 15 chunks +21 lines, -29 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 7 chunks +7 lines, -19 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 7 chunks +14 lines, -12 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 15 chunks +21 lines, -29 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 15 chunks +21 lines, -29 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 7 chunks +8 lines, -14 lines 0 comments Download
M src/gdb-jit.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 3 chunks +6 lines, -10 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 5 chunks +8 lines, -16 lines 0 comments Download
M src/ic/arm/handler-compiler-arm.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/ic/arm64/handler-compiler-arm64.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/ic/ia32/handler-compiler-ia32.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/ic/mips/handler-compiler-mips.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/ic/mips64/handler-compiler-mips64.cc View 1 chunk +1 line, -5 lines 0 comments Download
M src/ic/x64/handler-compiler-x64.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M src/isolate-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 3 chunks +4 lines, -19 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 8 chunks +13 lines, -18 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 4 chunks +12 lines, -12 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 5 chunks +7 lines, -46 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 3 chunks +4 lines, -19 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 8 chunks +13 lines, -18 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 4 chunks +12 lines, -12 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 5 chunks +7 lines, -46 lines 0 comments Download
M src/profiler/heap-snapshot-generator.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/snapshot/serialize.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/snapshot/snapshot-common.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 6 chunks +10 lines, -14 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 4 chunks +12 lines, -8 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 4 chunks +7 lines, -35 lines 0 comments Download
M test/cctest/compiler/test-js-context-specialization.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 3 chunks +30 lines, -33 lines 0 comments Download
M test/cctest/test-heap.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M test/unittests/compiler/js-typed-lowering-unittest.cc View 2 chunks +6 lines, -11 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
Benedikt Meurer
5 years ago (2015-11-27 12:07:38 UTC) #1
Benedikt Meurer
Hey Yang, It's done. Mostly surprisingly straight forward. I'll leave the bootstrapper.cc cleanup to you. ...
5 years ago (2015-11-27 12:08:18 UTC) #2
Michael Starzinger
LGTM on the "compiler" part, didn't look at the rest. https://codereview.chromium.org/1480003002/diff/1/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (left): https://codereview.chromium.org/1480003002/diff/1/src/compiler/js-typed-lowering.cc#oldcode1299 ...
5 years ago (2015-11-27 12:19:27 UTC) #4
Benedikt Meurer
https://codereview.chromium.org/1480003002/diff/1/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (left): https://codereview.chromium.org/1480003002/diff/1/src/compiler/js-typed-lowering.cc#oldcode1299 src/compiler/js-typed-lowering.cc:1299: AccessBuilder::ForJSGlobalObjectGlobalProxy()), Nah, the property is still there, so no ...
5 years ago (2015-11-27 12:20:45 UTC) #5
Yang
LGTM with comment (haven't checked all ports) https://codereview.chromium.org/1480003002/diff/1/src/snapshot/snapshot-common.cc File src/snapshot/snapshot-common.cc (right): https://codereview.chromium.org/1480003002/diff/1/src/snapshot/snapshot-common.cc#newcode87 src/snapshot/snapshot-common.cc:87: // script ...
5 years ago (2015-11-27 12:28:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480003002/40001
5 years ago (2015-11-27 12:40:07 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-11-27 13:31:46 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d290f204938295bfecc5c8e645ccfcff6e80ddb8 Cr-Commit-Position: refs/heads/master@{#32375}
5 years ago (2015-11-27 13:32:27 UTC) #12
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1478303002/ by machenbach@chromium.org. ...
5 years ago (2015-11-27 14:29:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480003002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480003002/60001
5 years ago (2015-11-27 16:27:36 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-11-27 16:59:34 UTC) #20
commit-bot: I haz the power
5 years ago (2015-11-27 17:00:21 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/47502a238b8185a864bfe6a8d5508b4e67cad40e
Cr-Commit-Position: refs/heads/master@{#32381}

Powered by Google App Engine
This is Rietveld 408576698