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

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed)

Created:
5 years, 4 months ago by Yang
Modified:
5 years, 3 months ago
CC:
v8-dev, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Call JS functions via native context instead of js builtins object. We look up %-functions in the context if not found in the runtime. R=bmeurer@chromium.org, mstarzinger@chromium.org Committed: https://crrev.com/299f775cf4a936c82e0eead5342defe85d312507 Cr-Commit-Position: refs/heads/master@{#30379}

Patch Set 1 #

Total comments: 2

Patch Set 2 : separated context slot lookup #

Total comments: 20

Patch Set 3 : addressed comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -587 lines) Patch
M src/array-iterator.js View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/assembler.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M src/ast.h View 1 2 3 2 chunks +34 lines, -31 lines 0 comments Download
M src/ast-value-factory.h View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M src/bootstrapper.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/bootstrapper.cc View 2 chunks +4 lines, -69 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/collection.js View 1 1 chunk +11 lines, -11 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 2 chunks +10 lines, -12 lines 0 comments Download
M src/contexts.h View 1 2 3 6 chunks +27 lines, -11 lines 0 comments Download
M src/contexts.cc View 1 2 chunks +18 lines, -1 line 0 comments Download
M src/date.js View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 1 chunk +6 lines, -11 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 1 chunk +5 lines, -9 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 1 chunk +6 lines, -10 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 1 chunk +4 lines, -8 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 1 chunk +5 lines, -9 lines 0 comments Download
M src/harmony-reflect.js View 1 chunk +3 lines, -0 lines 0 comments Download
M src/harmony-spread.js View 1 2 chunks +7 lines, -5 lines 0 comments Download
M src/hydrogen.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 17 chunks +12 lines, -27 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 2 chunks +5 lines, -10 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/json.js View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/messages.js View 1 2 3 1 chunk +19 lines, -17 lines 0 comments Download
M src/object-observe.js View 1 1 chunk +9 lines, -10 lines 0 comments Download
M src/parser.cc View 1 2 3 15 chunks +49 lines, -68 lines 0 comments Download
M src/pattern-rewriter.cc View 1 2 3 4 chunks +10 lines, -12 lines 0 comments Download
M src/prettyprinter.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M src/prologue.js View 5 chunks +1 line, -23 lines 0 comments Download
M src/promise.js View 1 1 chunk +9 lines, -10 lines 0 comments Download
M src/proxy.js View 1 1 chunk +6 lines, -6 lines 0 comments Download
M src/regexp.js View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.js View 1 2 3 33 chunks +96 lines, -89 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M src/runtime/runtime.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 1 chunk +18 lines, -13 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M src/templates.js View 1 3 chunks +6 lines, -3 lines 0 comments Download
M src/v8natives.js View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M test/cctest/compiler/test-run-jscalls.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
M test/mjsunit/compiler/jsnatives.js View 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (4 generated)
Yang
I'd like some comments on the ia32 port.
5 years, 4 months ago (2015-08-25 13:56:20 UTC) #1
Michael Starzinger
Essentially one high-level comment/suggestion. Happy to discuss in person and/or be convinced otherwise. Would also ...
5 years, 4 months ago (2015-08-25 18:12:09 UTC) #2
Yang
On 2015/08/25 18:12:09, Michael Starzinger wrote: > Essentially one high-level comment/suggestion. Happy to discuss in ...
5 years, 4 months ago (2015-08-25 18:30:01 UTC) #3
Yang
On 2015/08/25 18:30:01, Yang wrote: > On 2015/08/25 18:12:09, Michael Starzinger wrote: > > Essentially ...
5 years, 3 months ago (2015-08-26 08:58:19 UTC) #4
Michael Starzinger
LGTM if all comments are addressed from my end. Please also wait on Benedikt's sign-off. ...
5 years, 3 months ago (2015-08-26 09:43:22 UTC) #5
Yang
Addressed comments. https://codereview.chromium.org/1306993003/diff/20001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1306993003/diff/20001/src/bootstrapper.cc#newcode1847 src/bootstrapper.cc:1847: native_context()->set_reflect_construct(*construct); On 2015/08/26 09:43:21, Michael Starzinger wrote: ...
5 years, 3 months ago (2015-08-26 10:27:30 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306993003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306993003/40001
5 years, 3 months ago (2015-08-26 10:28:14 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3689) v8_linux_arm64_rel on ...
5 years, 3 months ago (2015-08-26 10:29:16 UTC) #10
Benedikt Meurer
LGTM.
5 years, 3 months ago (2015-08-26 10:38:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306993003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306993003/60001
5 years, 3 months ago (2015-08-26 10:47:35 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-08-26 11:16:49 UTC) #15
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 11:17:08 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/299f775cf4a936c82e0eead5342defe85d312507
Cr-Commit-Position: refs/heads/master@{#30379}

Powered by Google App Engine
This is Rietveld 408576698