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

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

Issue 1581393008: Rename DART_PRECOMPILED -> DART_PRECOMPILED_RUNTIME (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comment Created 4 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 5860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5871 ASSERT(stream != NULL); 5871 ASSERT(stream != NULL);
5872 TimelineEvent* event = stream->StartEvent(); 5872 TimelineEvent* event = stream->StartEvent();
5873 if (event != NULL) { 5873 if (event != NULL) {
5874 event->AsyncEnd(label, async_id); 5874 event->AsyncEnd(label, async_id);
5875 event->Complete(); 5875 event->Complete();
5876 } 5876 }
5877 return Api::Success(); 5877 return Api::Success();
5878 } 5878 }
5879 5879
5880 5880
5881 #if defined(DART_PRECOMPILED) 5881 #if defined(DART_PRECOMPILED_RUNTIME)
5882 5882
5883 DART_EXPORT Dart_Handle Dart_Precompile( 5883 DART_EXPORT Dart_Handle Dart_Precompile(
5884 Dart_QualifiedFunctionName entry_points[], 5884 Dart_QualifiedFunctionName entry_points[],
5885 bool reset_fields) { 5885 bool reset_fields) {
5886 UNREACHABLE(); 5886 UNREACHABLE();
5887 return 0; 5887 return 0;
5888 } 5888 }
5889 5889
5890 5890
5891 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( 5891 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
5892 uint8_t** vm_isolate_snapshot_buffer, 5892 uint8_t** vm_isolate_snapshot_buffer,
5893 intptr_t* vm_isolate_snapshot_size, 5893 intptr_t* vm_isolate_snapshot_size,
5894 uint8_t** isolate_snapshot_buffer, 5894 uint8_t** isolate_snapshot_buffer,
5895 intptr_t* isolate_snapshot_size, 5895 intptr_t* isolate_snapshot_size,
5896 uint8_t** instructions_snapshot_buffer, 5896 uint8_t** instructions_snapshot_buffer,
5897 intptr_t* instructions_snapshot_size) { 5897 intptr_t* instructions_snapshot_size) {
5898 UNREACHABLE(); 5898 UNREACHABLE();
5899 return 0; 5899 return 0;
5900 } 5900 }
5901 5901
5902 #else // DART_PRECOMPILED 5902 #else // DART_PRECOMPILED_RUNTIME
5903 5903
5904 DART_EXPORT Dart_Handle Dart_Precompile( 5904 DART_EXPORT Dart_Handle Dart_Precompile(
5905 Dart_QualifiedFunctionName entry_points[], 5905 Dart_QualifiedFunctionName entry_points[],
5906 bool reset_fields) { 5906 bool reset_fields) {
5907 API_TIMELINE_BEGIN_END; 5907 API_TIMELINE_BEGIN_END;
5908 DARTSCOPE(Thread::Current()); 5908 DARTSCOPE(Thread::Current());
5909 if (!FLAG_precompilation) { 5909 if (!FLAG_precompilation) {
5910 return Dart_NewApiError("Flag --precompilation was not specified."); 5910 return Dart_NewApiError("Flag --precompilation was not specified.");
5911 } 5911 }
5912 Dart_Handle result = Api::CheckAndFinalizePendingClasses(T); 5912 Dart_Handle result = Api::CheckAndFinalizePendingClasses(T);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
5966 isolate_snapshot_buffer, 5966 isolate_snapshot_buffer,
5967 instructions_snapshot_buffer, 5967 instructions_snapshot_buffer,
5968 ApiReallocate); 5968 ApiReallocate);
5969 writer.WriteFullSnapshot(); 5969 writer.WriteFullSnapshot();
5970 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); 5970 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize();
5971 *isolate_snapshot_size = writer.IsolateSnapshotSize(); 5971 *isolate_snapshot_size = writer.IsolateSnapshotSize();
5972 *instructions_snapshot_size = writer.InstructionsSnapshotSize(); 5972 *instructions_snapshot_size = writer.InstructionsSnapshotSize();
5973 5973
5974 return Api::Success(); 5974 return Api::Success();
5975 } 5975 }
5976 #endif // DART_PRECOMPILED 5976 #endif // DART_PRECOMPILED_RUNTIME
5977 5977
5978 5978
5979 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { 5979 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
5980 return Dart::IsRunningPrecompiledCode(); 5980 return Dart::IsRunningPrecompiledCode();
5981 } 5981 }
5982 5982
5983 } // namespace dart 5983 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698