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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2982783003: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:js_runtime/shared/embedded_names.dart'; 7 import 'package:js_runtime/shared/embedded_names.dart';
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 5313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5324 // The parts are iterated in visitStringInterpolation. 5324 // The parts are iterated in visitStringInterpolation.
5325 reporter.internalError( 5325 reporter.internalError(
5326 node, 'SsaBuilder.visitStringInterpolation should not be called.'); 5326 node, 'SsaBuilder.visitStringInterpolation should not be called.');
5327 } 5327 }
5328 5328
5329 visitEmptyStatement(ast.EmptyStatement node) { 5329 visitEmptyStatement(ast.EmptyStatement node) {
5330 // Do nothing, empty statement. 5330 // Do nothing, empty statement.
5331 } 5331 }
5332 5332
5333 visitModifiers(ast.Modifiers node) { 5333 visitModifiers(ast.Modifiers node) {
5334 throw new SpannableAssertionFailure( 5334 failedAt(node, 'SsaFromAstMixin.visitModifiers not implemented.');
5335 node, 'SsaFromAstMixin.visitModifiers not implemented.');
5336 } 5335 }
5337 5336
5338 visitBreakStatement(ast.BreakStatement node) { 5337 visitBreakStatement(ast.BreakStatement node) {
5339 assert(!isAborted()); 5338 assert(!isAborted());
5340 handleInTryStatement(); 5339 handleInTryStatement();
5341 JumpTarget target = elements.getTargetOf(node); 5340 JumpTarget target = elements.getTargetOf(node);
5342 assert(target != null); 5341 assert(target != null);
5343 JumpHandler handler = jumpTargets[target]; 5342 JumpHandler handler = jumpTargets[target];
5344 assert(handler != null); 5343 assert(handler != null);
5345 if (node.target == null) { 5344 if (node.target == null) {
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
6449 wrapStatementGraph(catchGraph), wrapStatementGraph(finallyGraph)), 6448 wrapStatementGraph(catchGraph), wrapStatementGraph(finallyGraph)),
6450 exitBlock); 6449 exitBlock);
6451 inTryStatement = oldInTryStatement; 6450 inTryStatement = oldInTryStatement;
6452 } 6451 }
6453 6452
6454 visitCatchBlock(ast.CatchBlock node) { 6453 visitCatchBlock(ast.CatchBlock node) {
6455 visit(node.block); 6454 visit(node.block);
6456 } 6455 }
6457 6456
6458 visitTypedef(ast.Typedef node) { 6457 visitTypedef(ast.Typedef node) {
6459 throw new SpannableAssertionFailure( 6458 failedAt(node, 'SsaFromAstMixin.visitTypedef not implemented.');
6460 node, 'SsaFromAstMixin.visitTypedef not implemented.');
6461 } 6459 }
6462 6460
6463 visitTypeVariable(ast.TypeVariable node) { 6461 visitTypeVariable(ast.TypeVariable node) {
6464 throw new SpannableAssertionFailure( 6462 failedAt(node, 'SsaFromAstMixin.visitTypeVariable not implemented.');
6465 node, 'SsaFromAstMixin.visitTypeVariable not implemented.');
6466 } 6463 }
6467 6464
6468 /** 6465 /**
6469 * This method is invoked before inlining the body of [function] into this 6466 * This method is invoked before inlining the body of [function] into this
6470 * [SsaBuilder]. 6467 * [SsaBuilder].
6471 */ 6468 */
6472 void enterInlinedMethod(MethodElement function, 6469 void enterInlinedMethod(MethodElement function,
6473 ResolvedAst functionResolvedAst, List<HInstruction> compiledArguments, 6470 ResolvedAst functionResolvedAst, List<HInstruction> compiledArguments,
6474 {ResolutionInterfaceType instanceType}) { 6471 {ResolutionInterfaceType instanceType}) {
6475 AstInliningState state = new AstInliningState( 6472 AstInliningState state = new AstInliningState(
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
6846 this.oldReturnLocal, 6843 this.oldReturnLocal,
6847 this.oldReturnType, 6844 this.oldReturnType,
6848 this.oldResolvedAst, 6845 this.oldResolvedAst,
6849 this.oldStack, 6846 this.oldStack,
6850 this.oldLocalsHandler, 6847 this.oldLocalsHandler,
6851 this.inTryStatement, 6848 this.inTryStatement,
6852 this.allFunctionsCalledOnce, 6849 this.allFunctionsCalledOnce,
6853 this.oldElementInferenceResults) 6850 this.oldElementInferenceResults)
6854 : super(function); 6851 : super(function);
6855 } 6852 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698