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

Side by Side Diff: tonic/dart_gc_controller.cc

Issue 1346773002: Stop running pub get at gclient sync time and fix build bugs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tonic/dart_gc_controller.h" 5 #include "tonic/dart_gc_controller.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "dart/runtime/include/dart_api.h" 8 #include "mojo/public/third_party/dart/runtime/include/dart_api.h"
9 #include "tonic/dart_gc_context.h" 9 #include "tonic/dart_gc_context.h"
10 #include "tonic/dart_gc_visitor.h" 10 #include "tonic/dart_gc_visitor.h"
11 #include "tonic/dart_wrappable.h" 11 #include "tonic/dart_wrappable.h"
12 12
13 namespace tonic { 13 namespace tonic {
14 namespace { 14 namespace {
15 15
16 DartGCContext* g_gc_context = nullptr; 16 DartGCContext* g_gc_context = nullptr;
17 17
18 DartWrappable* GetWrappable(intptr_t* fields) { 18 DartWrappable* GetWrappable(intptr_t* fields) {
(...skipping 24 matching lines...) Expand all
43 43
44 void DartGCEpilogue() { 44 void DartGCEpilogue() {
45 delete g_gc_context; 45 delete g_gc_context;
46 g_gc_context = nullptr; 46 g_gc_context = nullptr;
47 Dart_ExitScope(); 47 Dart_ExitScope();
48 48
49 TRACE_EVENT_ASYNC_END0("sky", "DartGC", 0); 49 TRACE_EVENT_ASYNC_END0("sky", "DartGC", 0);
50 } 50 }
51 51
52 } // namespace tonic 52 } // namespace tonic
OLDNEW
« DEPS ('K') | « tonic/dart_gc_context.h ('k') | tonic/dart_gc_visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698