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

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

Issue 3001423002: Initial idle GC logic. (Closed)
Patch Set: . 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 | « no previous file | runtime/vm/heap.h » ('j') | runtime/vm/scavenger.cc » ('J')
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 "lib/stacktrace.h" 9 #include "lib/stacktrace.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 Dart_Handle error = Api::NewHandle(T, I->sticky_error()); 1410 Dart_Handle error = Api::NewHandle(T, I->sticky_error());
1411 return error; 1411 return error;
1412 } 1412 }
1413 return Dart_Null(); 1413 return Dart_Null();
1414 } 1414 }
1415 1415
1416 DART_EXPORT void Dart_NotifyIdle(int64_t deadline) { 1416 DART_EXPORT void Dart_NotifyIdle(int64_t deadline) {
1417 Thread* T = Thread::Current(); 1417 Thread* T = Thread::Current();
1418 CHECK_ISOLATE(T->isolate()); 1418 CHECK_ISOLATE(T->isolate());
1419 API_TIMELINE_BEGIN_END; 1419 API_TIMELINE_BEGIN_END;
1420 T->isolate()->heap()->NotifyIdle(deadline);
1420 } 1421 }
1421 1422
1422 DART_EXPORT void Dart_ExitIsolate() { 1423 DART_EXPORT void Dart_ExitIsolate() {
1423 Thread* T = Thread::Current(); 1424 Thread* T = Thread::Current();
1424 CHECK_ISOLATE(T->isolate()); 1425 CHECK_ISOLATE(T->isolate());
1425 // The Thread structure is disassociated from the isolate, we do the 1426 // The Thread structure is disassociated from the isolate, we do the
1426 // safepoint transition explicitly here instead of using the TransitionXXX 1427 // safepoint transition explicitly here instead of using the TransitionXXX
1427 // scope objects as the original transition happened outside this scope in 1428 // scope objects as the original transition happened outside this scope in
1428 // Dart_EnterIsolate/Dart_CreateIsolate. 1429 // Dart_EnterIsolate/Dart_CreateIsolate.
1429 ASSERT(T->execution_state() == Thread::kThreadInNative); 1430 ASSERT(T->execution_state() == Thread::kThreadInNative);
(...skipping 5269 matching lines...) Expand 10 before | Expand all | Expand 10 after
6699 #endif 6700 #endif
6700 } 6701 }
6701 6702
6702 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6703 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6703 #ifndef PRODUCT 6704 #ifndef PRODUCT
6704 Profiler::DumpStackTrace(context); 6705 Profiler::DumpStackTrace(context);
6705 #endif 6706 #endif
6706 } 6707 }
6707 6708
6708 } // namespace dart 6709 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/heap.h » ('j') | runtime/vm/scavenger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698