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

Issue 1130813002: dart2js cps: Handle error cases. (Closed)

Created:
5 years, 7 months ago by asgerf
Modified:
5 years, 7 months ago
CC:
reviews_dartlang.org, Johnni Winther
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

dart2js cps: Handle error cases. A new IR node CreateInvocationMirror has been introduced, which is needed for creating calls to noSuchMethod. The main reason for this node is that the JS constructor for Invocation objects require the internal (minified) name of the target, which the builder does not know. I don't think the IR pipeline should depend on the Namer, so the IR node is preserved all the way to codegen. R=floitsch@google.com, kmillikin@google.com Committed: https://code.google.com/p/dart/source/detail?r=45678

Patch Set 1 #

Patch Set 2 : Rebase, fixes due to rebase, and update status files #

Total comments: 14

Patch Set 3 : Comments from floitch #

Total comments: 1

Patch Set 4 : Fix this access when building type variable access in field initializers #

Patch Set 5 : Whitelist unused API due to semantic visitor being WIP #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1644 lines, -1017 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart View 1 2 3 6 chunks +30 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 3 18 chunks +918 lines, -187 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 3 chunks +18 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 chunk +14 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/glue.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/js_tree_builder.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/resolution/semantic_visitor.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart View 3 chunks +8 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 5 chunks +26 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart View 2 chunks +7 lines, -11 lines 0 comments Download
M pkg/pkg.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 157 chunks +498 lines, -641 lines 0 comments Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 46 chunks +76 lines, -172 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
asgerf
5 years, 7 months ago (2015-05-06 16:00:51 UTC) #2
asgerf
We seem to have a shortage of reviewers today. Adding karl and floitch.
5 years, 7 months ago (2015-05-07 14:46:11 UTC) #4
floitsch
LGTM. https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart (right): https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart#newcode1872 pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart:1872: // If it was th setter, we must ...
5 years, 7 months ago (2015-05-08 03:03:41 UTC) #5
asgerf
https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart (right): https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart#newcode1872 pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart:1872: // If it was th setter, we must evaluate ...
5 years, 7 months ago (2015-05-08 08:17:59 UTC) #6
Kevin Millikin (Google)
LGTMT (LGTM too). https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart (right): https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart#newcode1122 pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart:1122: CallStructure callStructure, _) { I liked ...
5 years, 7 months ago (2015-05-08 08:30:07 UTC) #7
asgerf
https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart (right): https://codereview.chromium.org/1130813002/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart#newcode1122 pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart:1122: CallStructure callStructure, _) { On 2015/05/08 08:30:06, Kevin Millikin ...
5 years, 7 months ago (2015-05-08 09:38:57 UTC) #8
asgerf
Fixed a bug that was caught by the new assertion in buildThis. https://codereview.chromium.org/1130813002/diff/40001/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart ...
5 years, 7 months ago (2015-05-08 11:14:43 UTC) #9
asgerf
5 years, 7 months ago (2015-05-11 09:06:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:70001) manually as 45678 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698