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

Unified Diff: frog/leg/native_handler.dart

Issue 9592009: Reapply "Refactor constant part." (r4958) with fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. Created 8 years, 9 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
« no previous file with comments | « frog/leg/emitter.dart ('k') | frog/leg/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/native_handler.dart
diff --git a/frog/leg/native_handler.dart b/frog/leg/native_handler.dart
index 21567d5101119ab6df687aab378efce5b1b7ccfe..c11f47df4ed408016b94cb69b08c83ca89830ec7 100644
--- a/frog/leg/native_handler.dart
+++ b/frog/leg/native_handler.dart
@@ -214,7 +214,7 @@ void handleSsaNative(SsaBuilder builder, Send node) {
builder.add(elseInstruction);
}
- HLiteral literal = builder.graph.addNewLiteralString(
+ HLiteral literal = builder.graph.addConstantString(
new DartString.literal('$dartMethodName'));
SourceString jsCode = new SourceString(
'Object.getPrototypeOf(\$0).hasOwnProperty(\$1)');
« no previous file with comments | « frog/leg/emitter.dart ('k') | frog/leg/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698