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

Unified Diff: lib/compiler/implementation/native_handler.dart

Issue 10668021: Distinguish statement and expression foreign code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: After rebase no need for parenthesis anymore. Created 8 years, 6 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: lib/compiler/implementation/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index e590177800ecf116247739b33a42718e1cdcac7a..8e2b688b59653dc096f6997cc9ba0f4809750890 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -292,9 +292,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
}
});
LiteralString jsCode = nativeBody.asLiteralString();
- builder.push(new HForeign(jsCode.dartString,
- const LiteralDartString('Object'),
- <HInstruction>[]));
+ builder.push(new HForeign.statement(jsCode.dartString, <HInstruction>[]));
}
}

Powered by Google App Engine
This is Rietveld 408576698