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

Issue 2338463003: Improve compile time constant evaluation (Closed)

Created:
4 years, 3 months ago by hausner
Modified:
4 years, 3 months ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improve compile time constant evaluation Eliminate the need to invoke an execute-once function to compute type literals and implicit closures. This reduces the number of execute-once invocations from 6000 to 60 when compiling all of the greentea sources, about 1MB of generated code. Sadly, no significant runtime gain was observed. Also simplify the caching of computed compile-time constants. Reinstate the compiler stat counter for number of constants cached. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/3829c00e109c622e883e031c7f7757ee5703eb54

Patch Set 1 #

Total comments: 3

Patch Set 2 : Merge branch 'master' into ponly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -36 lines) Patch
M runtime/vm/compiler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/compiler_stats.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/compiler_stats.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 9 chunks +30 lines, -35 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
hausner
4 years, 3 months ago (2016-09-12 22:03:33 UTC) #3
rmacnak
LGTM https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc#newcode14470 runtime/vm/parser.cc:14470: Instance& closure = Instance::ZoneHandle(Z, func.ImplicitStaticClosure()); I think you ...
4 years, 3 months ago (2016-09-12 22:33:25 UTC) #4
hausner
https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc#newcode14470 runtime/vm/parser.cc:14470: Instance& closure = Instance::ZoneHandle(Z, func.ImplicitStaticClosure()); On 2016/09/12 22:33:25, rmacnak ...
4 years, 3 months ago (2016-09-12 23:00:54 UTC) #5
hausner
https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/2338463003/diff/1/runtime/vm/parser.cc#newcode14470 runtime/vm/parser.cc:14470: Instance& closure = Instance::ZoneHandle(Z, func.ImplicitStaticClosure()); On 2016/09/12 23:00:54, hausner ...
4 years, 3 months ago (2016-09-12 23:02:40 UTC) #6
hausner
4 years, 3 months ago (2016-09-12 23:23:07 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
3829c00e109c622e883e031c7f7757ee5703eb54.

Powered by Google App Engine
This is Rietveld 408576698