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

Unified Diff: runtime/vm/isolate.cc

Issue 2654183002: Rename references to "external pages" as "snapshot pages" to avoid confusion with the kind of exter… (Closed)
Patch Set: image Created 3 years, 11 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/vm/isolate.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index b5a139be71e7a012a677d2f00039b1d4fe91fbe6..c2eeaa9619b80c555d66f2db37471fed29a59ed2 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -999,35 +999,10 @@ Thread* Isolate::mutator_thread() const {
}
-void Isolate::SetupInstructionsSnapshotPage(
- const uint8_t* instructions_snapshot_buffer) {
- InstructionsSnapshot snapshot(instructions_snapshot_buffer);
-#if defined(DEBUG)
- if (FLAG_trace_isolates) {
- OS::Print("Precompiled instructions are at [0x%" Px ", 0x%" Px ")\n",
- reinterpret_cast<uword>(snapshot.instructions_start()),
- reinterpret_cast<uword>(snapshot.instructions_start()) +
- snapshot.instructions_size());
- }
-#endif
siva 2017/01/26 01:07:30 Why did you delete these trace messages?
rmacnak 2017/01/26 17:39:00 This was helpful for low-level debugging at the be
- heap_->SetupExternalPage(snapshot.instructions_start(),
- snapshot.instructions_size(),
- /* is_executable = */ true);
-}
-
-
-void Isolate::SetupDataSnapshotPage(const uint8_t* data_snapshot_buffer) {
- DataSnapshot snapshot(data_snapshot_buffer);
-#if defined(DEBUG)
- if (FLAG_trace_isolates) {
- OS::Print(
- "Precompiled rodata are at [0x%" Px ", 0x%" Px ")\n",
- reinterpret_cast<uword>(snapshot.data_start()),
- reinterpret_cast<uword>(snapshot.data_start()) + snapshot.data_size());
- }
-#endif
siva 2017/01/26 01:07:30 Ditto?
- heap_->SetupExternalPage(snapshot.data_start(), snapshot.data_size(),
- /* is_executable = */ false);
+void Isolate::SetupImagePage(const uint8_t* image_buffer, bool is_executable) {
+ Image image(image_buffer);
+ heap_->SetupImagePage(image.object_start(), image.object_size(),
+ is_executable);
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698