| OLD | NEW |
| 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 BIN_ISOLATE_DATA_H_ | 5 #ifndef BIN_ISOLATE_DATA_H_ |
| 6 #define BIN_ISOLATE_DATA_H_ | 6 #define 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 18 matching lines...) Expand all Loading... |
| 29 packages_file(NULL), | 29 packages_file(NULL), |
| 30 udp_receive_buffer(NULL), | 30 udp_receive_buffer(NULL), |
| 31 load_async_id(-1) { | 31 load_async_id(-1) { |
| 32 if (package_root != NULL) { | 32 if (package_root != NULL) { |
| 33 ASSERT(packages_file == NULL); | 33 ASSERT(packages_file == NULL); |
| 34 this->package_root = strdup(package_root); | 34 this->package_root = strdup(package_root); |
| 35 } else if (packages_file != NULL) { | 35 } else if (packages_file != NULL) { |
| 36 this->packages_file = strdup(packages_file); | 36 this->packages_file = strdup(packages_file); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 #if 0 |
| 39 ~IsolateData() { | 40 ~IsolateData() { |
| 40 free(script_url); | 41 free(script_url); |
| 41 free(package_root); | 42 free(package_root); |
| 42 free(packages_file); | 43 free(packages_file); |
| 43 free(udp_receive_buffer); | 44 free(udp_receive_buffer); |
| 44 } | 45 } |
| 46 #endif |
| 45 | 47 |
| 46 char* script_url; | 48 char* script_url; |
| 47 char* package_root; | 49 char* package_root; |
| 48 char* packages_file; | 50 char* packages_file; |
| 49 uint8_t* udp_receive_buffer; | 51 uint8_t* udp_receive_buffer; |
| 50 int64_t load_async_id; | 52 int64_t load_async_id; |
| 51 | 53 |
| 52 private: | 54 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 55 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace bin | 58 } // namespace bin |
| 57 } // namespace dart | 59 } // namespace dart |
| 58 | 60 |
| 59 #endif // BIN_ISOLATE_DATA_H_ | 61 #endif // BIN_ISOLATE_DATA_H_ |
| OLD | NEW |