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

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

Issue 725293004: Add support for if, while, break, continue to js-cps (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test file Created 6 years, 1 month 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/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index e79116c72219d7865be6c971c71314b4f17b77e3..6f8882322576f9de74f4830be53fd750302e30fc 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -188,10 +188,7 @@ class CspFunctionCompiler implements FunctionCompiler {
tree_ir.FunctionDefinition definition) {
CodeGenerator codeGen = new CodeGenerator(glue, work.registry);
- codeGen.buildFunction(definition);
- return buildJavaScriptFunction(work.element,
- codeGen.parameters,
- codeGen.body);
+ return attachPosition(codeGen.buildFunction(definition), work.element);
}
Iterable<CompilerTask> get tasks {
@@ -233,9 +230,4 @@ class CspFunctionCompiler implements FunctionCompiler {
return element.implementation.compilationUnit.script.file;
}
- js.Fun buildJavaScriptFunction(FunctionElement element,
- List<js.Parameter> parameters,
- js.Block body) {
- return attachPosition(new js.Fun(parameters, body), element);
- }
}

Powered by Google App Engine
This is Rietveld 408576698