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

Side by Side Diff: runtime/vm/dart.cc

Issue 139043003: - Address warnings about 64-bit to 32-bit conversions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/platform/utils.h ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_observers.h" 7 #include "vm/code_observers.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 11 matching lines...) Expand all
22 #include "vm/snapshot.h" 22 #include "vm/snapshot.h"
23 #include "vm/stub_code.h" 23 #include "vm/stub_code.h"
24 #include "vm/symbols.h" 24 #include "vm/symbols.h"
25 #include "vm/thread_interrupter.h" 25 #include "vm/thread_interrupter.h"
26 #include "vm/thread_pool.h" 26 #include "vm/thread_pool.h"
27 #include "vm/virtual_memory.h" 27 #include "vm/virtual_memory.h"
28 #include "vm/zone.h" 28 #include "vm/zone.h"
29 29
30 namespace dart { 30 namespace dart {
31 31
32 DEFINE_FLAG(bool, heap_profile_initialize, false,
33 "Writes a heap profile on isolate initialization.");
34 DECLARE_FLAG(bool, print_class_table); 32 DECLARE_FLAG(bool, print_class_table);
35 DECLARE_FLAG(bool, trace_isolates); 33 DECLARE_FLAG(bool, trace_isolates);
36 34
37 Isolate* Dart::vm_isolate_ = NULL; 35 Isolate* Dart::vm_isolate_ = NULL;
38 ThreadPool* Dart::thread_pool_ = NULL; 36 ThreadPool* Dart::thread_pool_ = NULL;
39 DebugInfo* Dart::pprof_symbol_generator_ = NULL; 37 DebugInfo* Dart::pprof_symbol_generator_ = NULL;
40 ReadOnlyHandles* Dart::predefined_handles_ = NULL; 38 ReadOnlyHandles* Dart::predefined_handles_ = NULL;
41 39
42 // An object visitor which will mark all visited objects. This is used to 40 // An object visitor which will mark all visited objects. This is used to
43 // premark all objects in the vm_isolate_ heap. 41 // premark all objects in the vm_isolate_ heap.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 218 }
221 SnapshotReader reader(snapshot->content(), snapshot->length(), 219 SnapshotReader reader(snapshot->content(), snapshot->length(),
222 Snapshot::kFull, isolate); 220 Snapshot::kFull, isolate);
223 reader.ReadFullSnapshot(); 221 reader.ReadFullSnapshot();
224 if (FLAG_trace_isolates) { 222 if (FLAG_trace_isolates) {
225 isolate->heap()->PrintSizes(); 223 isolate->heap()->PrintSizes();
226 isolate->megamorphic_cache_table()->PrintSizes(); 224 isolate->megamorphic_cache_table()->PrintSizes();
227 } 225 }
228 } 226 }
229 227
230 if (FLAG_heap_profile_initialize) {
231 isolate->heap()->ProfileToFile("initialize");
232 }
233
234 Object::VerifyBuiltinVtables(); 228 Object::VerifyBuiltinVtables();
235 229
236 StubCode::Init(isolate); 230 StubCode::Init(isolate);
237 if (snapshot_buffer == NULL) { 231 if (snapshot_buffer == NULL) {
238 if (!isolate->object_store()->PreallocateObjects()) { 232 if (!isolate->object_store()->PreallocateObjects()) {
239 return isolate->object_store()->sticky_error(); 233 return isolate->object_store()->sticky_error();
240 } 234 }
241 } 235 }
242 isolate->megamorphic_cache_table()->InitMissHandler(); 236 isolate->megamorphic_cache_table()->InitMissHandler();
243 237
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return predefined_handles_->handles_.AllocateScopedHandle(); 270 return predefined_handles_->handles_.AllocateScopedHandle();
277 } 271 }
278 272
279 273
280 bool Dart::IsReadOnlyHandle(uword address) { 274 bool Dart::IsReadOnlyHandle(uword address) {
281 ASSERT(predefined_handles_ != NULL); 275 ASSERT(predefined_handles_ != NULL);
282 return predefined_handles_->handles_.IsValidScopedHandle(address); 276 return predefined_handles_->handles_.IsValidScopedHandle(address);
283 } 277 }
284 278
285 } // namespace dart 279 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/platform/utils.h ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698