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

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

Issue 1918313003: Split Snapshot::kFull into kCore, kAppWithJIT, and kAppNoJIT. Remove snapshot_code flag. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 8 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/dart.cc ('k') | runtime/vm/object_store.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 "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 "lib/stacktrace.h" 10 #include "lib/stacktrace.h"
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 return state; 1486 return state;
1487 } 1487 }
1488 I->heap()->CollectAllGarbage(); 1488 I->heap()->CollectAllGarbage();
1489 I->StopBackgroundCompiler(); 1489 I->StopBackgroundCompiler();
1490 1490
1491 #if defined(DEBUG) 1491 #if defined(DEBUG)
1492 FunctionVisitor check_canonical(T); 1492 FunctionVisitor check_canonical(T);
1493 I->heap()->IterateObjects(&check_canonical); 1493 I->heap()->IterateObjects(&check_canonical);
1494 #endif // #if defined(DEBUG). 1494 #endif // #if defined(DEBUG).
1495 1495
1496 FullSnapshotWriter writer(vm_isolate_snapshot_buffer, 1496 FullSnapshotWriter writer(Snapshot::kCore,
1497 vm_isolate_snapshot_buffer,
1497 isolate_snapshot_buffer, 1498 isolate_snapshot_buffer,
1498 ApiReallocate, 1499 ApiReallocate,
1499 NULL, /* instructions_writer */ 1500 NULL, /* instructions_writer */
1500 false, /* snapshot_code */
1501 true /* vm_isolate_is_symbolic */); 1501 true /* vm_isolate_is_symbolic */);
1502 writer.WriteFullSnapshot(); 1502 writer.WriteFullSnapshot();
1503 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); 1503 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize();
1504 *isolate_snapshot_size = writer.IsolateSnapshotSize(); 1504 *isolate_snapshot_size = writer.IsolateSnapshotSize();
1505 return Api::Success(); 1505 return Api::Success();
1506 } 1506 }
1507 1507
1508 1508
1509 static Dart_Handle createLibrarySnapshot(Dart_Handle library, 1509 static Dart_Handle createLibrarySnapshot(Dart_Handle library,
1510 uint8_t** buffer, 1510 uint8_t** buffer,
(...skipping 4682 matching lines...) Expand 10 before | Expand all | Expand 10 after
6193 return Api::Success(); 6193 return Api::Success();
6194 } 6194 }
6195 #endif // DART_PRECOMPILER 6195 #endif // DART_PRECOMPILER
6196 6196
6197 6197
6198 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { 6198 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
6199 return Dart::IsRunningPrecompiledCode(); 6199 return Dart::IsRunningPrecompiledCode();
6200 } 6200 }
6201 6201
6202 } // namespace dart 6202 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698