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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/codegen.dart

Issue 1196443002: Revert "cps-ir: Support foreign code." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 8fcf8ab924ee7f276522cac2e8b55a62f7fdb52d..0e7f886e1fc01d176db999cf028411bee2f2da84 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -617,7 +617,7 @@ class CodeGenerator extends tree_ir.StatementVisitor
js.Expression argumentNames = new js.ArrayInitializer(
node.selector.namedArguments.map(js.string).toList(growable: false));
return buildStaticHelperInvocation(glue.createInvocationMirrorMethod,
- <js.Expression>[name, internalName, kind, arguments, argumentNames]);
+ [name, internalName, kind, arguments, argumentNames]);
}
@override
@@ -703,21 +703,6 @@ class CodeGenerator extends tree_ir.StatementVisitor
return glue.generateTypeRepresentation(node.dartType, arguments);
}
- js.Node handleForeignCode(tree_ir.ForeignCode node) {
- registry.registerStaticUse(node.dependency);
- return node.codeTemplate.instantiate(visitExpressionList(node.arguments));
- }
-
- @override
- js.Expression visitForeignExpression(tree_ir.ForeignExpression node) {
- return handleForeignCode(node);
- }
-
- @override
- visitForeignStatement(tree_ir.ForeignStatement node) {
- return handleForeignCode(node);
- }
-
@override
js.Expression visitApplyBuiltinOperator(tree_ir.ApplyBuiltinOperator node) {
List<js.Expression> args = visitExpressionList(node.arguments);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/js_tree_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698