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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
index 5144b0acd096f17567aab010cd9f8d1c1878e45c..8c3fe05c78889b027aa9de3237c66f0bc6622bff 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -31,10 +31,10 @@ class SsaCodeGeneratorTask extends CompilerTask {
}
// TODO(podivilov): find the right sourceFile here and remove offset checks
// below.
- if (beginToken.charOffset < sourceFile.text.length) {
+ if (beginToken.charOffset < sourceFile.length) {
node.sourcePosition = new SourceFileLocation(sourceFile, beginToken);
}
- if (endToken.charOffset < sourceFile.text.length) {
+ if (endToken.charOffset < sourceFile.length) {
node.endSourcePosition = new SourceFileLocation(sourceFile, endToken);
}
return node;

Powered by Google App Engine
This is Rietveld 408576698