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

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

Issue 1507943002: Add ./tools/test.py -c precompiler -r dart_precompiled. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
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 5952 matching lines...) Expand 10 before | Expand all | Expand 10 after
5963 instructions_snapshot_buffer, 5963 instructions_snapshot_buffer,
5964 ApiReallocate); 5964 ApiReallocate);
5965 writer.WriteFullSnapshot(); 5965 writer.WriteFullSnapshot();
5966 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); 5966 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize();
5967 *isolate_snapshot_size = writer.IsolateSnapshotSize(); 5967 *isolate_snapshot_size = writer.IsolateSnapshotSize();
5968 *instructions_snapshot_size = writer.InstructionsSnapshotSize(); 5968 *instructions_snapshot_size = writer.InstructionsSnapshotSize();
5969 5969
5970 return Api::Success(); 5970 return Api::Success();
5971 } 5971 }
5972 5972
5973
5974 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
5975 return Dart::IsRunningPrecompiledCode();
5976 }
5977
5973 } // namespace dart 5978 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698