Chromium Code Reviews

Unified Diff: runtime/vm/dart.cc

Issue 8222017: Fix compilation warnings/errors seen with newer versions of gcc compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
===================================================================
--- runtime/vm/dart.cc (revision 265)
+++ runtime/vm/dart.cc (working copy)
@@ -51,7 +51,8 @@
}
-Isolate* Dart::CreateIsolate(void* snapshot_buffer, void* data) {
+Isolate* Dart::CreateIsolate(const Dart_Snapshot* snapshot_buffer,
+ void* data) {
// Create and initialize a new isolate.
Isolate* isolate = Isolate::Init();
Zone zone;
@@ -65,7 +66,7 @@
// Initialize from snapshot (this should replicate the functionality
// of Object::Init(..) in a regular isolate creation path.
Object::InitFromSnapshot(isolate);
- Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer);
+ const Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer);
SnapshotReader reader(snapshot, isolate->heap(), isolate->object_store());
reader.ReadFullSnapshot();
}
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine