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

Side by Side Diff: runtime/bin/isolate_data.h

Issue 2927493002: Restructure code to enable reloading when a kernel dill file is specified on the command line inste… (Closed)
Patch Set: fix format error. Created 3 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/isolate_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_BIN_ISOLATE_DATA_H_ 5 #ifndef RUNTIME_BIN_ISOLATE_DATA_H_
6 #define RUNTIME_BIN_ISOLATE_DATA_H_ 6 #define RUNTIME_BIN_ISOLATE_DATA_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 ASSERT(builtin_lib_ == NULL); 45 ASSERT(builtin_lib_ == NULL);
46 ASSERT(lib != NULL); 46 ASSERT(lib != NULL);
47 ASSERT(!Dart_IsError(lib)); 47 ASSERT(!Dart_IsError(lib));
48 builtin_lib_ = Dart_NewPersistentHandle(lib); 48 builtin_lib_ = Dart_NewPersistentHandle(lib);
49 } 49 }
50 50
51 char* script_url; 51 char* script_url;
52 char* package_root; 52 char* package_root;
53 char* packages_file; 53 char* packages_file;
54 uint8_t* udp_receive_buffer; 54 uint8_t* udp_receive_buffer;
55 void* kernel_program;
55 56
56 void UpdatePackagesFile(const char* packages_file_) { 57 void UpdatePackagesFile(const char* packages_file_) {
57 if (packages_file != NULL) { 58 if (packages_file != NULL) {
58 free(packages_file); 59 free(packages_file);
59 packages_file = NULL; 60 packages_file = NULL;
60 } 61 }
61 packages_file = strdup(packages_file_); 62 packages_file = strdup(packages_file_);
62 } 63 }
63 64
64 // While loading a loader is associated with the isolate. 65 // While loading a loader is associated with the isolate.
(...skipping 19 matching lines...) Expand all
84 AppSnapshot* app_snapshot_; 85 AppSnapshot* app_snapshot_;
85 MallocGrowableArray<char*>* dependencies_; 86 MallocGrowableArray<char*>* dependencies_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(IsolateData); 88 DISALLOW_COPY_AND_ASSIGN(IsolateData);
88 }; 89 };
89 90
90 } // namespace bin 91 } // namespace bin
91 } // namespace dart 92 } // namespace dart
92 93
93 #endif // RUNTIME_BIN_ISOLATE_DATA_H_ 94 #endif // RUNTIME_BIN_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698