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

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

Issue 3006923002: Revised "Eliminate dependencies on assemblers and code stubs in precompiled runtime." (Closed)
Patch Set: Explicitly clear unbox_numeric_fields flag in PRODUCT builds Created 3 years, 3 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 | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/debugger.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/become.h" 7 #include "vm/become.h"
8 #include "vm/clustered_snapshot.h" 8 #include "vm/clustered_snapshot.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 const Snapshot* snapshot = Snapshot::SetupFromBuffer(vm_isolate_snapshot); 196 const Snapshot* snapshot = Snapshot::SetupFromBuffer(vm_isolate_snapshot);
197 if (snapshot == NULL) { 197 if (snapshot == NULL) {
198 return strdup("Invalid vm isolate snapshot seen"); 198 return strdup("Invalid vm isolate snapshot seen");
199 } 199 }
200 vm_snapshot_kind_ = snapshot->kind(); 200 vm_snapshot_kind_ = snapshot->kind();
201 201
202 if (Snapshot::IncludesCode(vm_snapshot_kind_)) { 202 if (Snapshot::IncludesCode(vm_snapshot_kind_)) {
203 if (vm_snapshot_kind_ == Snapshot::kFullAOT) { 203 if (vm_snapshot_kind_ == Snapshot::kFullAOT) {
204 #if defined(DART_PRECOMPILED_RUNTIME) 204 #if defined(DART_PRECOMPILED_RUNTIME)
205 vm_isolate_->set_compilation_allowed(false); 205 vm_isolate_->set_compilation_allowed(false);
206 if (!FLAG_precompiled_runtime) {
207 return strdup("Flag --precompilation was not specified");
208 }
209 #else 206 #else
210 return strdup("JIT runtime cannot run a precompiled snapshot"); 207 return strdup("JIT runtime cannot run a precompiled snapshot");
211 #endif 208 #endif
212 } 209 }
213 if (instructions_snapshot == NULL) { 210 if (instructions_snapshot == NULL) {
214 return strdup("Missing instructions snapshot"); 211 return strdup("Missing instructions snapshot");
215 } 212 }
216 } else if (Snapshot::IsFull(vm_snapshot_kind_)) { 213 } else if (Snapshot::IsFull(vm_snapshot_kind_)) {
217 #if defined(DART_PRECOMPILED_RUNTIME) 214 #if defined(DART_PRECOMPILED_RUNTIME)
218 return strdup("Precompiled runtime requires a precompiled snapshot"); 215 return strdup("Precompiled runtime requires a precompiled snapshot");
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 ASSERT(predefined_handles_ != NULL); 748 ASSERT(predefined_handles_ != NULL);
752 return predefined_handles_->handles_.IsValidScopedHandle(address); 749 return predefined_handles_->handles_.IsValidScopedHandle(address);
753 } 750 }
754 751
755 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 752 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
756 ASSERT(predefined_handles_ != NULL); 753 ASSERT(predefined_handles_ != NULL);
757 return predefined_handles_->api_handles_.IsValidHandle(handle); 754 return predefined_handles_->api_handles_.IsValidHandle(handle);
758 } 755 }
759 756
760 } // namespace dart 757 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698