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

Unified Diff: lib/compiler/implementation/lib/isolate_patch.dart

Issue 10970038: Convert raw strings in compiler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/compiler/implementation/lib/interceptors.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/isolate_patch.dart
===================================================================
--- lib/compiler/implementation/lib/isolate_patch.dart (revision 12782)
+++ lib/compiler/implementation/lib/isolate_patch.dart (working copy)
@@ -88,7 +88,7 @@
_Manager get _globalState() native "return \$globalState;";
set _globalState(_Manager val) native "\$globalState = val;";
-void _fillStatics(context) native @"""
+void _fillStatics(context) native r"""
$globals = context.isolateStatics;
$static_init();
""";
@@ -185,13 +185,13 @@
}
}
- void _nativeDetectEnvironment() native @"""
+ void _nativeDetectEnvironment() native r"""
this.isWorker = $isWorker;
this.supportsWorkers = $supportsWorkers;
this.fromCommandLine = typeof(window) == 'undefined';
""";
- void _nativeInitWorkerMessageHandler() native @"""
+ void _nativeInitWorkerMessageHandler() native r"""
$globalThis.onmessage = function (e) {
_IsolateNatives._processWorkerMessage(this.mainManager, e);
}
@@ -229,7 +229,7 @@
}
// these are filled lazily the first time the isolate starts running.
- void initGlobals() native @'$initGlobals(this);';
+ void initGlobals() native r'$initGlobals(this);';
/**
* Run [code] in the context of the isolate represented by [this]. Note this
@@ -249,7 +249,7 @@
return result;
}
- void _setGlobals() native @'$setGlobals(this);';
+ void _setGlobals() native r'$setGlobals(this);';
/** Lookup a port registered for this isolate. */
ReceivePort lookup(int portId) => ports[portId];
@@ -379,7 +379,7 @@
void set onmessage(f) {
throw new Exception("onmessage should not be set on MainManagerStub");
}
- void postMessage(msg) native @"$globalThis.postMessage(msg);";
+ void postMessage(msg) native r"$globalThis.postMessage(msg);";
void terminate() {} // Nothing useful to do here.
}
@@ -406,7 +406,7 @@
* The src url for the script tag that loaded this code. Used to create
* JavaScript workers.
*/
- static String get _thisScript() native @"return $thisScriptUrl";
+ static String get _thisScript() native r"return $thisScriptUrl";
/** Starts a new worker with the given URL. */
static _WorkerStub _newWorker(url) native "return new Worker(url);";
@@ -508,7 +508,7 @@
* but you should probably not count on this.
*/
static String _getJSFunctionName(Function f)
- native @"return f.$name || (void 0);";
+ native r"return f.$name || (void 0);";
/** Create a new JavaScript object instance given its constructor. */
static Dynamic _allocate(var ctor) native "return new ctor();";
« no previous file with comments | « lib/compiler/implementation/lib/interceptors.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698