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

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

Issue 2692223002: Teach gen_snapshot how to create script snapshots if given a core snapshot to create them against. (Closed)
Patch Set: . Created 3 years, 10 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/tools/create_snapshot_bin.py ('k') | no next file » | 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) 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/become.h" 10 #include "vm/become.h"
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 Thread* thread = Thread::Current(); 1170 Thread* thread = Thread::Current();
1171 Zone* zone = thread->zone(); 1171 Zone* zone = thread->zone();
1172 ASSERT(isolate == thread->isolate()); 1172 ASSERT(isolate == thread->isolate());
1173 #if !defined(DART_PRECOMPILED_RUNTIME) 1173 #if !defined(DART_PRECOMPILED_RUNTIME)
1174 const bool is_kernel = (kernel_program != NULL); 1174 const bool is_kernel = (kernel_program != NULL);
1175 #endif 1175 #endif
1176 NOT_IN_PRODUCT(TimelineDurationScope tds(thread, Timeline::GetIsolateStream(), 1176 NOT_IN_PRODUCT(TimelineDurationScope tds(thread, Timeline::GetIsolateStream(),
1177 "Object::Init");) 1177 "Object::Init");)
1178 1178
1179 #if defined(DART_NO_SNAPSHOT) 1179 #if defined(DART_NO_SNAPSHOT)
1180 bool bootstrapping = true; 1180 bool bootstrapping = Dart::vm_snapshot_kind() == Snapshot::kNone;
1181 #elif defined(DART_PRECOMPILED_RUNTIME) 1181 #elif defined(DART_PRECOMPILED_RUNTIME)
1182 bool bootstrapping = false; 1182 bool bootstrapping = false;
1183 #else 1183 #else
1184 bool bootstrapping = is_kernel; 1184 bool bootstrapping = is_kernel;
1185 #endif 1185 #endif
1186 1186
1187 if (bootstrapping) { 1187 if (bootstrapping) {
1188 #if !defined(DART_PRECOMPILED_RUNTIME) 1188 #if !defined(DART_PRECOMPILED_RUNTIME)
1189 // Object::Init version when we are bootstrapping from source or from a 1189 // Object::Init version when we are bootstrapping from source or from a
1190 // Kernel binary. 1190 // Kernel binary.
(...skipping 21668 matching lines...) Expand 10 before | Expand all | Expand 10 after
22859 return UserTag::null(); 22859 return UserTag::null();
22860 } 22860 }
22861 22861
22862 22862
22863 const char* UserTag::ToCString() const { 22863 const char* UserTag::ToCString() const {
22864 const String& tag_label = String::Handle(label()); 22864 const String& tag_label = String::Handle(label());
22865 return tag_label.ToCString(); 22865 return tag_label.ToCString();
22866 } 22866 }
22867 22867
22868 } // namespace dart 22868 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/tools/create_snapshot_bin.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698