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

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

Issue 3000623002: [kernel] Free memory for kernel data. (Closed)
Patch Set: Remove commented out code Created 3 years, 4 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/dfe.cc » ('j') | runtime/bin/dfe.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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_DFE_H_ 5 #ifndef RUNTIME_BIN_DFE_H_
6 #define RUNTIME_BIN_DFE_H_ 6 #define RUNTIME_BIN_DFE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 void SetKernelBinaries(const char* name); 29 void SetKernelBinaries(const char* name);
30 30
31 bool UsePlatformBinary() const { return platform_binary_filename_ != NULL; } 31 bool UsePlatformBinary() const { return platform_binary_filename_ != NULL; }
32 32
33 void* kernel_platform() const { return kernel_platform_; } 33 void* kernel_platform() const { return kernel_platform_; }
34 34
35 void* kernel_vmservice_io() const { return kernel_vmservice_io_; } 35 void* kernel_vmservice_io() const { return kernel_vmservice_io_; }
36 36
37 void unset_kernel_vmservice_io();
38
37 bool kernel_file_specified() const { return kernel_file_specified_; } 39 bool kernel_file_specified() const { return kernel_file_specified_; }
38 void set_kernel_file_specified(bool value) { kernel_file_specified_ = value; } 40 void set_kernel_file_specified(bool value) { kernel_file_specified_ = value; }
39 41
40 // Method to reload a script into a running a isolate. 42 // Method to reload a script into a running a isolate.
41 // If the specified script [url] is not a kernel IR, compile it first using 43 // If the specified script [url] is not a kernel IR, compile it first using
42 // DFE and then reload the resulting kernel IR into the isolate. 44 // DFE and then reload the resulting kernel IR into the isolate.
43 // Returns Dart_Null if successful, otherwise an error object is returned. 45 // Returns Dart_Null if successful, otherwise an error object is returned.
44 Dart_Handle ReloadScript(Dart_Isolate isolate, const char* url_string); 46 Dart_Handle ReloadScript(Dart_Isolate isolate, const char* url_string);
45 47
46 // Compiles a script and reads the resulting kernel file. 48 // Compiles a script and reads the resulting kernel file.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void* kernel_vmservice_io_; 83 void* kernel_vmservice_io_;
82 bool kernel_file_specified_; // Kernel file was specified on the cmd line. 84 bool kernel_file_specified_; // Kernel file was specified on the cmd line.
83 85
84 DISALLOW_COPY_AND_ASSIGN(DFE); 86 DISALLOW_COPY_AND_ASSIGN(DFE);
85 }; 87 };
86 88
87 } // namespace bin 89 } // namespace bin
88 } // namespace dart 90 } // namespace dart
89 91
90 #endif // RUNTIME_BIN_DFE_H_ 92 #endif // RUNTIME_BIN_DFE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dfe.cc » ('j') | runtime/bin/dfe.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698