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

Unified Diff: runtime/bin/dfe.cc

Issue 2925203002: Load service isolate from the kernel binary. (Closed)
Patch Set: Remove whitespace 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/dfe.h ('k') | runtime/bin/main.cc » ('j') | runtime/bin/main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dfe.cc
diff --git a/runtime/bin/dfe.cc b/runtime/bin/dfe.cc
index 45d81aeded9261d824c946c8f341b0da7155a238..2823c9ebc05e8ce32087383c4c6589db8fa0221c 100644
--- a/runtime/bin/dfe.cc
+++ b/runtime/bin/dfe.cc
@@ -97,6 +97,19 @@ void* DFE::ReadPlatform() {
}
+void* DFE::ReadVMServiceIO() {
+ const uint8_t* buffer = NULL;
+ intptr_t buffer_length = -1;
+ bool result =
+ TryReadKernelFile(vmservice_io_binary_filename_, &buffer, &buffer_length);
+ if (result) {
+ kernel_vmservice_io_ = Dart_ReadKernelBinary(buffer, buffer_length);
+ return kernel_vmservice_io_;
+ }
+ return NULL;
siva 2017/06/13 02:12:02 Can this be: { kernel_vmservice_io_ = ReadScrip
sivachandra 2017/06/14 19:25:57 Will update this after https://codereview.chromium
+}
+
+
void* DFE::ReadScript(const char* script_uri) {
const uint8_t* buffer = NULL;
intptr_t buffer_length = -1;
« no previous file with comments | « runtime/bin/dfe.h ('k') | runtime/bin/main.cc » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698