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

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

Issue 195733009: Basic tag infrastructure (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 | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.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 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after
3325 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, 3325 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target,
3326 Dart_Handle name, 3326 Dart_Handle name,
3327 int number_of_arguments, 3327 int number_of_arguments,
3328 Dart_Handle* arguments) { 3328 Dart_Handle* arguments) {
3329 Isolate* isolate = Isolate::Current(); 3329 Isolate* isolate = Isolate::Current();
3330 DARTSCOPE(isolate); 3330 DARTSCOPE(isolate);
3331 CHECK_CALLBACK_STATE(isolate); 3331 CHECK_CALLBACK_STATE(isolate);
3332 // TODO(turnidge): This is a bit simplistic. It overcounts when 3332 // TODO(turnidge): This is a bit simplistic. It overcounts when
3333 // other operations (gc, compilation) are active. 3333 // other operations (gc, compilation) are active.
3334 TIMERSCOPE(time_dart_execution); 3334 TIMERSCOPE(time_dart_execution);
3335 VMTagScope tagScope(VMTag::kScriptTagId, isolate);
srdjan 2014/03/13 20:24:46 Move isolate to first argument. See also Issue 19
Cutch 2014/03/13 21:10:05 Done.
3335 3336
3336 const String& function_name = Api::UnwrapStringHandle(isolate, name); 3337 const String& function_name = Api::UnwrapStringHandle(isolate, name);
3337 if (function_name.IsNull()) { 3338 if (function_name.IsNull()) {
3338 RETURN_TYPE_ERROR(isolate, name, String); 3339 RETURN_TYPE_ERROR(isolate, name, String);
3339 } 3340 }
3340 if (number_of_arguments < 0) { 3341 if (number_of_arguments < 0) {
3341 return Api::NewError( 3342 return Api::NewError(
3342 "%s expects argument 'number_of_arguments' to be non-negative.", 3343 "%s expects argument 'number_of_arguments' to be non-negative.",
3343 CURRENT_FUNC); 3344 CURRENT_FUNC);
3344 } 3345 }
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
4694 4695
4695 4696
4696 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 4697 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4697 const char* name, 4698 const char* name,
4698 Dart_ServiceRequestCallback callback, 4699 Dart_ServiceRequestCallback callback,
4699 void* user_data) { 4700 void* user_data) {
4700 Service::RegisterRootEmbedderCallback(name, callback, user_data); 4701 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4701 } 4702 }
4702 4703
4703 } // namespace dart 4704 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698