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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 237583014: JS templates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cleanup Created 6 years, 8 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/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index a40355bd1b5d7bf0e9044151fb4476293bc1e55f..ad006f8a43bc919bfeccba29bd739bc6395bd0eb 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -1640,12 +1640,12 @@ class HLocalSet extends HFieldAccess {
}
class HForeign extends HInstruction {
- final js.Node codeAst;
+ final js.Template codeTemplate;
final bool isStatement;
final bool _canThrow;
final native.NativeBehavior nativeBehavior;
- HForeign(this.codeAst,
+ HForeign(this.codeTemplate,
TypeMask type,
List<HInstruction> inputs,
{this.isStatement: false,
@@ -1661,11 +1661,11 @@ class HForeign extends HInstruction {
if (effects != null) sideEffects.add(effects);
}
- HForeign.statement(codeAst, List<HInstruction> inputs,
+ HForeign.statement(codeTemplate, List<HInstruction> inputs,
SideEffects effects,
native.NativeBehavior nativeBehavior,
TypeMask type)
- : this(codeAst, type, inputs, isStatement: true,
+ : this(codeTemplate, type, inputs, isStatement: true,
effects: effects, nativeBehavior: nativeBehavior);
accept(HVisitor visitor) => visitor.visitForeign(this);

Powered by Google App Engine
This is Rietveld 408576698