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

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

Issue 1151113002: Move bootstrap scripts and token streams to the VM isolate so that they become read only objects. T… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('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/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_api_state.h" 9 #include "vm/dart_api_state.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 OS::Print("Size of vm isolate snapshot = %" Pd "\n", 149 OS::Print("Size of vm isolate snapshot = %" Pd "\n",
150 snapshot->length()); 150 snapshot->length());
151 vm_isolate_->heap()->PrintSizes(); 151 vm_isolate_->heap()->PrintSizes();
152 vm_isolate_->megamorphic_cache_table()->PrintSizes(); 152 vm_isolate_->megamorphic_cache_table()->PrintSizes();
153 intptr_t size; 153 intptr_t size;
154 intptr_t capacity; 154 intptr_t capacity;
155 Symbols::GetStats(vm_isolate_, &size, &capacity); 155 Symbols::GetStats(vm_isolate_, &size, &capacity);
156 OS::Print("VM Isolate: Number of symbols : %" Pd "\n", size); 156 OS::Print("VM Isolate: Number of symbols : %" Pd "\n", size);
157 OS::Print("VM Isolate: Symbol table capacity : %" Pd "\n", capacity); 157 OS::Print("VM Isolate: Symbol table capacity : %" Pd "\n", capacity);
158 } 158 }
159 Symbols::InitOnceFromSnapshot(vm_isolate_);
160 } else { 159 } else {
161 Symbols::InitOnce(vm_isolate_); 160 Symbols::InitOnce(vm_isolate_);
162 } 161 }
163 Scanner::InitOnce(); 162 Scanner::InitOnce();
164 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) 163 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
165 // Dart VM requires at least SSE2. 164 // Dart VM requires at least SSE2.
166 if (!TargetCPUFeatures::sse2_supported()) { 165 if (!TargetCPUFeatures::sse2_supported()) {
167 return "SSE2 is required."; 166 return "SSE2 is required.";
168 } 167 }
169 #endif 168 #endif
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 return predefined_handles_->handles_.AllocateScopedHandle(); 349 return predefined_handles_->handles_.AllocateScopedHandle();
351 } 350 }
352 351
353 352
354 bool Dart::IsReadOnlyHandle(uword address) { 353 bool Dart::IsReadOnlyHandle(uword address) {
355 ASSERT(predefined_handles_ != NULL); 354 ASSERT(predefined_handles_ != NULL);
356 return predefined_handles_->handles_.IsValidScopedHandle(address); 355 return predefined_handles_->handles_.IsValidScopedHandle(address);
357 } 356 }
358 357
359 } // namespace dart 358 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698