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

Issue 2722753002: Remove HRuntimeType implementation (Closed)

Created:
3 years, 9 months ago by sra1
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove HRuntimeType implementation Use the legacy RTI format, which should be replaced with something that lets types and tests be cached and amortized. R=johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/1ae1ec7df4b22238fd61e9e529ad62a498b3199e

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -892 lines) Patch
M pkg/compiler/lib/src/js_backend/backend_helpers.dart View 2 chunks +3 lines, -39 lines 1 comment Download
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 1 chunk +1 line, -1 line 1 comment Download
M pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart View 4 chunks +20 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/namer.dart View 1 chunk +0 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/code_emitter_task.dart View 2 chunks +0 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/model.dart View 4 chunks +0 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart View 3 chunks +0 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart View 1 chunk +0 lines, -44 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart View 2 chunks +0 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 2 chunks +10 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder_kernel.dart View 2 chunks +11 lines, -14 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 3 chunks +1 line, -136 lines 0 comments Download
M pkg/compiler/lib/src/ssa/graph_builder.dart View 2 chunks +0 lines, -110 lines 0 comments Download
M pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 5 chunks +2 lines, -122 lines 0 comments Download
M pkg/compiler/lib/src/ssa/ssa_tracer.dart View 2 chunks +1 line, -27 lines 0 comments Download
M pkg/compiler/lib/src/ssa/type_builder.dart View 1 chunk +6 lines, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/js_helper.dart View 2 chunks +53 lines, -332 lines 1 comment Download
M sdk/lib/_internal/js_runtime/lib/js_rti.dart View 1 chunk +15 lines, -17 lines 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mock_libraries.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
sra1
About 60% of this is reviewed by Emily at https://chromiumcodereview.appspot.com/2711783006/ This is mostly deleting the ...
3 years, 9 months ago (2017-02-28 06:41:26 UTC) #2
Johnni Winther
lgtm
3 years, 9 months ago (2017-02-28 14:31:19 UTC) #3
sra1
Committed patchset #1 (id:1) manually as 1ae1ec7df4b22238fd61e9e529ad62a498b3199e (presubmit successful).
3 years, 9 months ago (2017-02-28 17:33:44 UTC) #5
Emily Fortuna
lgtm
3 years, 9 months ago (2017-02-28 18:31:10 UTC) #6
floitsch
3 years, 9 months ago (2017-03-02 13:43:39 UTC) #8
Message was sent while issue was closed.
DBC.

https://codereview.chromium.org/2722753002/diff/1/pkg/compiler/lib/src/js_bac...
File pkg/compiler/lib/src/js_backend/backend_helpers.dart (right):

https://codereview.chromium.org/2722753002/diff/1/pkg/compiler/lib/src/js_bac...
pkg/compiler/lib/src/js_backend/backend_helpers.dart:615: FunctionEntity get
functionTypeTest =>
It feels fishy that the helper is in no impact.
It turns out that others (like `functionTypeCheck`) will call this function
anyway, but that's not immediately obvious.

https://codereview.chromium.org/2722753002/diff/1/pkg/compiler/lib/src/js_bac...
File pkg/compiler/lib/src/js_backend/backend_impact.dart (right):

https://codereview.chromium.org/2722753002/diff/1/pkg/compiler/lib/src/js_bac...
pkg/compiler/lib/src/js_backend/backend_impact.dart:506: new
BackendImpact(staticUses: [/*helpers.functionTypeTestMetaHelper*/]);
Please add a comment explaining why the dead code is not removed.

https://codereview.chromium.org/2722753002/diff/1/sdk/lib/_internal/js_runtim...
File sdk/lib/_internal/js_runtime/lib/js_helper.dart (right):

https://codereview.chromium.org/2722753002/diff/1/sdk/lib/_internal/js_runtim...
sdk/lib/_internal/js_runtime/lib/js_helper.dart:3375: return functionTypeObject
== null
return functionTypeObject != null && isFunctionSubType(...)

Unfortunately, dart2js doesn't do this for you.

Powered by Google App Engine
This is Rietveld 408576698