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

Issue 1318453003: dart2js CPS: simple inlining of static invocations. (Closed)

Created:
5 years, 4 months ago by Kevin Millikin (Google)
Modified:
5 years, 4 months ago
Reviewers:
asgerf, karlklose, sra1
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js CPS: simple inlining of static invocations. Inline static functions whose bodies are a single Dart expression that just calls a foreign (native) function. This eliminates a lot of overhead from the code in the JavaScript runtime library. R=asgerf@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/90039f64aee9db5ec30a781547659ec2e7fbceea

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -10 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 7 chunks +79 lines, -8 lines 5 comments Download

Messages

Total messages: 7 (2 generated)
Kevin Millikin (Google)
5 years, 4 months ago (2015-08-25 10:50:58 UTC) #1
asgerf
LGTM
5 years, 4 months ago (2015-08-25 10:57:58 UTC) #2
Kevin Millikin (Google)
Committed patchset #1 (id:1) manually as 90039f64aee9db5ec30a781547659ec2e7fbceea (presubmit successful).
5 years, 4 months ago (2015-08-25 11:38:17 UTC) #3
karlklose
DBC: https://codereview.chromium.org/1318453003/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right): https://codereview.chromium.org/1318453003/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode1664 pkg/compiler/lib/src/cps_ir/type_propagation.dart:1664: // The target might not have an AST, ...
5 years, 4 months ago (2015-08-25 11:57:13 UTC) #5
sra1
5 years, 4 months ago (2015-08-25 20:42:04 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1318453003/diff/1/pkg/compiler/lib/src/cps_ir...
File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right):

https://codereview.chromium.org/1318453003/diff/1/pkg/compiler/lib/src/cps_ir...
pkg/compiler/lib/src/cps_ir/type_propagation.dart:1687: // with the same name.
We should add a @NoInline() annotation on definition in js_library.

Please also honor the @NoInline() annotation on makeDispatchRecord() at
interceptors.dart line 95.

Powered by Google App Engine
This is Rietveld 408576698