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

Unified Diff: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart

Issue 856333003: Rename $dart_unsafe_eval to $dart_unsafe_incremental_support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r43060. Created 5 years, 11 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: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
diff --git a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
index b8d536b1a6ac65cbe68937058dbe0af5f695b77c..fc614d251eb11e96f0a2670979ae8c55ad4f7e37 100644
--- a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
+++ b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
@@ -146,12 +146,13 @@ class IncrementalCompiler {
String allUpdates() {
jsAst.Node updates = jsAst.js.escapedString(_updates.join(""));
+ JavaScriptBackend backend = _compiler.backend;
+
jsAst.FunctionDeclaration mainRunner = jsAst.js.statement(r"""
function dartMainRunner(main, args) {
- $dart_unsafe_eval.patch(#);
+ #helper.patch(#updates);
return main(args);
-}""", updates);
-
+}""", {'updates': updates, 'helper': backend.namer.accessIncrementalHelper});
jsAst.Printer printer = new jsAst.Printer(_compiler, null);
printer.blockOutWithoutBraces(mainRunner);

Powered by Google App Engine
This is Rietveld 408576698