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

Unified Diff: runtime/bin/run_vm_tests.cc

Issue 1123813002: Move symbol table from per isolate snapshot to vm isolate snapshot, this reduces the per isolate in… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | « no previous file | runtime/bin/snapshot_in.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/run_vm_tests.cc
===================================================================
--- runtime/bin/run_vm_tests.cc (revision 45789)
+++ runtime/bin/run_vm_tests.cc (working copy)
@@ -15,6 +15,10 @@
// TODO(iposva, asiva): This is a placeholder for the real unittest framework.
namespace dart {
+// vm_isolate_snapshot_buffer points to a snapshot for the vm isolate if we
+// link in a snapshot otherwise it is initialized to NULL.
+extern const uint8_t* bin::vm_isolate_snapshot_buffer;
+
// Only run tests that match the filter string. The default does not match any
// tests.
static const char* const kNone = "No Test or Benchmarks";
@@ -97,7 +101,7 @@
bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc,
dart_argv);
ASSERT(set_vm_flags_success);
- const char* err_msg = Dart::InitOnce(NULL,
+ const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer,
NULL, NULL, NULL, NULL,
dart::bin::DartUtils::OpenFile,
dart::bin::DartUtils::ReadFile,
« no previous file with comments | « no previous file | runtime/bin/snapshot_in.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698