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

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

Issue 9325022: Decode the Dart message into a Dart_CMessage structure before calling the native port callback (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo unneeded changes Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 *buffer = NULL; 2431 *buffer = NULL;
2432 } 2432 }
2433 delete debug_region; 2433 delete debug_region;
2434 } else { 2434 } else {
2435 *buffer = NULL; 2435 *buffer = NULL;
2436 *buffer_size = 0; 2436 *buffer_size = 0;
2437 } 2437 }
2438 } 2438 }
2439 2439
2440 2440
2441 ThreadLocalKey ApiNativeScope::api_native_key_ = Thread::kUnsetThreadLocalKey;
2442
2443
2444 void ApiNativeScope::InitOnce() {
siva 2012/02/09 00:45:29 Api::InitOnce() { .... }
Søren Gjesse 2012/02/09 08:44:01 Done.
2445 ASSERT(api_native_key_ == Thread::kUnsetThreadLocalKey);
2446 api_native_key_ = Thread::CreateThreadLocal();
2447 ASSERT(api_native_key_ != Thread::kUnsetThreadLocalKey);
2448 }
2449
2441 } // namespace dart 2450 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698