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

Unified Diff: runtime/bin/isolate_data.h

Issue 35393003: Retain script path of parent isolate when spawnFunction is called so that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « no previous file | runtime/bin/main.cc » ('j') | runtime/bin/main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/isolate_data.h
===================================================================
--- runtime/bin/isolate_data.h (revision 29136)
+++ runtime/bin/isolate_data.h (working copy)
@@ -20,14 +20,13 @@
// when the isolate shuts down.
class IsolateData {
public:
- IsolateData()
- : object_array_class(NULL),
- growable_object_array_class(NULL), immutable_array_class(NULL) {
+ explicit IsolateData(const char* url) : script_url(strdup(url)) {
}
+ ~IsolateData() {
+ free(script_url);
+ }
- Dart_PersistentHandle object_array_class;
- Dart_PersistentHandle growable_object_array_class;
- Dart_PersistentHandle immutable_array_class;
+ char* script_url;
private:
DISALLOW_COPY_AND_ASSIGN(IsolateData);
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698