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

Issue 1294113004: VM: Link native calls lazily. (Closed)

Created:
5 years, 4 months ago by Florian Schneider
Modified:
5 years, 4 months ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Link native calls lazily. The first invocation of a native functions goes into LinkNativeCall which determines the final entry point and patches the object pool entry. When running precompiled code, this makes deserializing the object pool entries for native functions easy, they all initially point to a single entry (LinkNativeCall). BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/c05f1f944851560c9acbdc0ca9d3ee92b408f038

Patch Set 1 #

Patch Set 2 : added flag #

Total comments: 6

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -53 lines) Patch
M runtime/vm/ast.h View 3 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher.h View 2 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/code_patcher_arm.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_arm64.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_ia32.cc View 1 2 3 chunks +46 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_mips.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_x64.cc View 1 2 4 chunks +52 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/instructions_arm.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M runtime/vm/instructions_arm.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M runtime/vm/instructions_arm64.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M runtime/vm/instructions_arm64.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M runtime/vm/instructions_mips.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M runtime/vm/instructions_mips.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 1 chunk +21 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 1 chunk +20 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 1 chunk +12 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 1 chunk +20 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 1 chunk +13 lines, -6 lines 0 comments Download
M runtime/vm/native_entry.h View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/native_entry.cc View 1 2 3 chunks +151 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Florian Schneider
5 years, 4 months ago (2015-08-19 13:56:33 UTC) #2
rmacnak
lgtm I did see one flake locally, but I don't see anything in your change ...
5 years, 4 months ago (2015-08-20 23:48:07 UTC) #3
Florian Schneider
https://codereview.chromium.org/1294113004/diff/20001/runtime/vm/native_entry.cc File runtime/vm/native_entry.cc (right): https://codereview.chromium.org/1294113004/diff/20001/runtime/vm/native_entry.cc#newcode185 runtime/vm/native_entry.cc:185: bool is_native_auto_setup_scope = false; On 2015/08/20 23:48:06, rmacnak wrote: ...
5 years, 4 months ago (2015-08-21 07:58:18 UTC) #4
Florian Schneider
On 2015/08/20 23:48:07, rmacnak wrote: > lgtm > > I did see one flake locally, ...
5 years, 4 months ago (2015-08-21 07:59:03 UTC) #5
Florian Schneider
5 years, 4 months ago (2015-08-21 09:37:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
c05f1f944851560c9acbdc0ca9d3ee92b408f038.

Powered by Google App Engine
This is Rietveld 408576698