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

Unified Diff: pkg/compiler/lib/src/native/ssa.dart

Issue 1020853003: Split HForeign into HForeignCode and abstract base class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Formatting Created 5 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 | « no previous file | pkg/compiler/lib/src/ssa/builder.dart » ('j') | pkg/compiler/lib/src/ssa/nodes.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/native/ssa.dart
diff --git a/pkg/compiler/lib/src/native/ssa.dart b/pkg/compiler/lib/src/native/ssa.dart
index 0bd8d1b953f50022f35771a5b3cce7c89cfacca9..09f4e03d65d39364d49e03ae00a423e71983fe64 100644
--- a/pkg/compiler/lib/src/native/ssa.dart
+++ b/pkg/compiler/lib/src/native/ssa.dart
@@ -85,7 +85,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
}
builder.push(
- new HForeign(
+ new HForeignCode(
// TODO(sra): This could be cached. The number of templates should
// be proportional to the number of native methods, which is bounded
// by the dart: libraries.
@@ -100,7 +100,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
'functions with zero parameters.');
}
LiteralString jsCode = nativeBody.asLiteralString();
- builder.push(new HForeign.statement(
+ builder.push(new HForeignCode.statement(
js.js.statementTemplateYielding(
new js.LiteralStatement(jsCode.dartString.slowToString())),
<HInstruction>[],
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder.dart » ('j') | pkg/compiler/lib/src/ssa/nodes.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698