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

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

Issue 200693002: Set VMTag from stubs when transitioning between Dart and Native (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | runtime/vm/exceptions.cc » ('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 "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, 3264 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target,
3265 Dart_Handle name, 3265 Dart_Handle name,
3266 int number_of_arguments, 3266 int number_of_arguments,
3267 Dart_Handle* arguments) { 3267 Dart_Handle* arguments) {
3268 Isolate* isolate = Isolate::Current(); 3268 Isolate* isolate = Isolate::Current();
3269 DARTSCOPE(isolate); 3269 DARTSCOPE(isolate);
3270 CHECK_CALLBACK_STATE(isolate); 3270 CHECK_CALLBACK_STATE(isolate);
3271 // TODO(turnidge): This is a bit simplistic. It overcounts when 3271 // TODO(turnidge): This is a bit simplistic. It overcounts when
3272 // other operations (gc, compilation) are active. 3272 // other operations (gc, compilation) are active.
3273 TIMERSCOPE(isolate, time_dart_execution); 3273 TIMERSCOPE(isolate, time_dart_execution);
3274 VMTagScope tagScope(isolate, VMTag::kScriptTagId);
3275 3274
3276 const String& function_name = Api::UnwrapStringHandle(isolate, name); 3275 const String& function_name = Api::UnwrapStringHandle(isolate, name);
3277 if (function_name.IsNull()) { 3276 if (function_name.IsNull()) {
3278 RETURN_TYPE_ERROR(isolate, name, String); 3277 RETURN_TYPE_ERROR(isolate, name, String);
3279 } 3278 }
3280 if (number_of_arguments < 0) { 3279 if (number_of_arguments < 0) {
3281 return Api::NewError( 3280 return Api::NewError(
3282 "%s expects argument 'number_of_arguments' to be non-negative.", 3281 "%s expects argument 'number_of_arguments' to be non-negative.",
3283 CURRENT_FUNC); 3282 CURRENT_FUNC);
3284 } 3283 }
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
4634 4633
4635 4634
4636 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 4635 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4637 const char* name, 4636 const char* name,
4638 Dart_ServiceRequestCallback callback, 4637 Dart_ServiceRequestCallback callback,
4639 void* user_data) { 4638 void* user_data) {
4640 Service::RegisterRootEmbedderCallback(name, callback, user_data); 4639 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4641 } 4640 }
4642 4641
4643 } // namespace dart 4642 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698