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

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

Issue 3009643002: Fix for Flutter issue 11260 (https://github.com/flutter/flutter/issues/11260) (Closed)
Patch Set: Address review comments. Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void set_builtin_lib(Dart_Handle lib) { 44 void set_builtin_lib(Dart_Handle lib) {
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;
55 void* kernel_program; 54 void* kernel_program;
56 55
57 void UpdatePackagesFile(const char* packages_file_) { 56 void UpdatePackagesFile(const char* packages_file_) {
58 if (packages_file != NULL) { 57 if (packages_file != NULL) {
59 free(packages_file); 58 free(packages_file);
60 packages_file = NULL; 59 packages_file = NULL;
61 } 60 }
62 packages_file = strdup(packages_file_); 61 packages_file = strdup(packages_file_);
63 } 62 }
64 63
(...skipping 20 matching lines...) Expand all
85 AppSnapshot* app_snapshot_; 84 AppSnapshot* app_snapshot_;
86 MallocGrowableArray<char*>* dependencies_; 85 MallocGrowableArray<char*>* dependencies_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(IsolateData); 87 DISALLOW_COPY_AND_ASSIGN(IsolateData);
89 }; 88 };
90 89
91 } // namespace bin 90 } // namespace bin
92 } // namespace dart 91 } // namespace dart
93 92
94 #endif // RUNTIME_BIN_ISOLATE_DATA_H_ 93 #endif // RUNTIME_BIN_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698