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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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 | Annotate | Revision Log
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 part of ssa; 5 part of ssa;
6 6
7 /** 7 /**
8 * A special element for the extra parameter taken by intercepted 8 * A special element for the extra parameter taken by intercepted
9 * methods. We need to override [Element.computeType] because our 9 * methods. We need to override [Element.computeType] because our
10 * optimizers may look at its declared type. 10 * optimizers may look at its declared type.
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 FunctionElement functionElement = element; 2028 FunctionElement functionElement = element;
2029 if (functionElement.patch != null) element = functionElement.patch; 2029 if (functionElement.patch != null) element = functionElement.patch;
2030 } 2030 }
2031 Script script = element.getCompilationUnit().script; 2031 Script script = element.getCompilationUnit().script;
2032 SourceFile sourceFile = script.file; 2032 SourceFile sourceFile = script.file;
2033 SourceFileLocation location = new SourceFileLocation(sourceFile, token); 2033 SourceFileLocation location = new SourceFileLocation(sourceFile, token);
2034 if (!location.isValid()) { 2034 if (!location.isValid()) {
2035 throw MessageKind.INVALID_SOURCE_FILE_LOCATION.message( 2035 throw MessageKind.INVALID_SOURCE_FILE_LOCATION.message(
2036 {'offset': token.charOffset, 2036 {'offset': token.charOffset,
2037 'fileName': sourceFile.filename, 2037 'fileName': sourceFile.filename,
2038 'length': sourceFile.text.length}); 2038 'length': sourceFile.length});
2039 } 2039 }
2040 return location; 2040 return location;
2041 } 2041 }
2042 2042
2043 void visit(Node node) { 2043 void visit(Node node) {
2044 if (node != null) node.accept(this); 2044 if (node != null) node.accept(this);
2045 } 2045 }
2046 2046
2047 visitBlock(Block node) { 2047 visitBlock(Block node) {
2048 assert(!isAborted()); 2048 assert(!isAborted());
(...skipping 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after
5586 new HSubGraphBlockInformation(elseBranch.graph)); 5586 new HSubGraphBlockInformation(elseBranch.graph));
5587 5587
5588 HBasicBlock conditionStartBlock = conditionBranch.block; 5588 HBasicBlock conditionStartBlock = conditionBranch.block;
5589 conditionStartBlock.setBlockFlow(info, joinBlock); 5589 conditionStartBlock.setBlockFlow(info, joinBlock);
5590 SubGraph conditionGraph = conditionBranch.graph; 5590 SubGraph conditionGraph = conditionBranch.graph;
5591 HIf branch = conditionGraph.end.last; 5591 HIf branch = conditionGraph.end.last;
5592 assert(branch is HIf); 5592 assert(branch is HIf);
5593 branch.blockInformation = conditionStartBlock.blockFlow; 5593 branch.blockInformation = conditionStartBlock.blockFlow;
5594 } 5594 }
5595 } 5595 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698