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

Issue 1412633007: Save the native name on the function instead of finding it in the token stream for lazily-linked na… (Closed)

Created:
5 years, 1 month ago by rmacnak
Modified:
5 years, 1 month ago
Reviewers:
srdjan, siva
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

Save the native name on the function instead of finding it in the token stream to resolve lazily-linked natives. Drop token streams from precompiled snapshots. dart2js ARM -7.0% size Before VMIsolate(CodeSize): 4663679 Isolate(CodeSize): 11970519 Instructions(CodeSize): 12904384 Total(CodeSize): 29538582 After VMIsolate(CodeSize): 2611555 Isolate(CodeSize): 11965825 Instructions(CodeSize): 12906464 Total(CodeSize): 27483844 BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/8be0d4aca16feed4edded4d03b95723f7daa879f

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -36 lines) Patch
M runtime/vm/compiler.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/native_entry.cc View 1 2 3 4 1 chunk +2 lines, -18 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 9 chunks +73 lines, -9 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 9 chunks +13 lines, -3 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
rmacnak
5 years, 1 month ago (2015-11-09 22:41:29 UTC) #2
srdjan
DBC https://codereview.chromium.org/1412633007/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1412633007/diff/40001/runtime/vm/compiler.cc#newcode1141 runtime/vm/compiler.cc:1141: ASSERT(!optimized || Compiler::always_optimize()); Maybe add comment: precompilation can ...
5 years, 1 month ago (2015-11-09 23:17:32 UTC) #4
rmacnak
https://codereview.chromium.org/1412633007/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1412633007/diff/40001/runtime/vm/compiler.cc#newcode1141 runtime/vm/compiler.cc:1141: ASSERT(!optimized || Compiler::always_optimize()); On 2015/11/09 23:17:32, srdjan wrote: > ...
5 years, 1 month ago (2015-11-10 02:19:40 UTC) #5
siva
lgtm https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/native_entry.cc File runtime/vm/native_entry.cc (right): https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/native_entry.cc#newcode141 runtime/vm/native_entry.cc:141: const String& native_name = String::Handle(func.native_name()); You have the ...
5 years, 1 month ago (2015-11-12 18:04:11 UTC) #6
rmacnak
https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/native_entry.cc File runtime/vm/native_entry.cc (right): https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/native_entry.cc#newcode141 runtime/vm/native_entry.cc:141: const String& native_name = String::Handle(func.native_name()); On 2015/11/12 18:04:11, siva ...
5 years, 1 month ago (2015-11-12 23:51:15 UTC) #7
srdjan
https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/object.cc#newcode5594 runtime/vm/object.cc:5594: return reinterpret_cast<RawFunction*>(Array::Cast(obj).At(1)); On 2015/11/12 23:51:15, rmacnak wrote: > On ...
5 years, 1 month ago (2015-11-13 00:15:13 UTC) #8
rmacnak
https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1412633007/diff/60001/runtime/vm/object.cc#newcode5594 runtime/vm/object.cc:5594: return reinterpret_cast<RawFunction*>(Array::Cast(obj).At(1)); On 2015/11/13 00:15:13, srdjan wrote: > On ...
5 years, 1 month ago (2015-11-13 01:24:15 UTC) #9
rmacnak
5 years, 1 month ago (2015-11-13 01:24:47 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
8be0d4aca16feed4edded4d03b95723f7daa879f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698