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

Side by Side Diff: vm/dart.cc

Issue 10082017: Remove code index table. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "vm/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/code_index_table.h"
8 #include "vm/dart_api_state.h" 7 #include "vm/dart_api_state.h"
9 #include "vm/flags.h" 8 #include "vm/flags.h"
10 #include "vm/freelist.h" 9 #include "vm/freelist.h"
11 #include "vm/handles.h" 10 #include "vm/handles.h"
12 #include "vm/heap.h" 11 #include "vm/heap.h"
13 #include "vm/isolate.h" 12 #include "vm/isolate.h"
14 #include "vm/object.h" 13 #include "vm/object.h"
15 #include "vm/object_store.h" 14 #include "vm/object_store.h"
16 #include "vm/port.h" 15 #include "vm/port.h"
17 #include "vm/snapshot.h" 16 #include "vm/snapshot.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Object::InitFromSnapshot(isolate); 86 Object::InitFromSnapshot(isolate);
88 const Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer); 87 const Snapshot* snapshot = Snapshot::SetupFromBuffer(snapshot_buffer);
89 if (FLAG_trace_isolates) { 88 if (FLAG_trace_isolates) {
90 OS::Print("Size of isolate snapshot = %ld\n", snapshot->length()); 89 OS::Print("Size of isolate snapshot = %ld\n", snapshot->length());
91 } 90 }
92 SnapshotReader reader(snapshot, isolate); 91 SnapshotReader reader(snapshot, isolate);
93 reader.ReadFullSnapshot(); 92 reader.ReadFullSnapshot();
94 } 93 }
95 94
96 StubCode::Init(isolate); 95 StubCode::Init(isolate);
97 CodeIndexTable::Init(isolate);
98 isolate->set_init_callback_data(data); 96 isolate->set_init_callback_data(data);
99 return Error::null(); 97 return Error::null();
100 } 98 }
101 99
102 100
103 void Dart::ShutdownIsolate() { 101 void Dart::ShutdownIsolate() {
104 Isolate* isolate = Isolate::Current(); 102 Isolate* isolate = Isolate::Current();
105 isolate->Shutdown(); 103 isolate->Shutdown();
106 delete isolate; 104 delete isolate;
107 } 105 }
108 106
109 } // namespace dart 107 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698