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

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 12 matching lines...) Expand all
23 #include "vm/message_handler.h" 23 #include "vm/message_handler.h"
24 #include "vm/native_entry.h" 24 #include "vm/native_entry.h"
25 #include "vm/object.h" 25 #include "vm/object.h"
26 #include "vm/object_store.h" 26 #include "vm/object_store.h"
27 #include "vm/port.h" 27 #include "vm/port.h"
28 #include "vm/resolver.h" 28 #include "vm/resolver.h"
29 #include "vm/reusable_handles.h" 29 #include "vm/reusable_handles.h"
30 #include "vm/service.h" 30 #include "vm/service.h"
31 #include "vm/stack_frame.h" 31 #include "vm/stack_frame.h"
32 #include "vm/symbols.h" 32 #include "vm/symbols.h"
33 #include "vm/tags.h"
33 #include "vm/timer.h" 34 #include "vm/timer.h"
34 #include "vm/unicode.h" 35 #include "vm/unicode.h"
35 #include "vm/verifier.h" 36 #include "vm/verifier.h"
36 #include "vm/version.h" 37 #include "vm/version.h"
37 38
38 namespace dart { 39 namespace dart {
39 40
40 DECLARE_FLAG(bool, print_class_table); 41 DECLARE_FLAG(bool, print_class_table);
41 DECLARE_FLAG(bool, verify_handles); 42 DECLARE_FLAG(bool, verify_handles);
42 DEFINE_FLAG(bool, check_function_fingerprints, false, 43 DEFINE_FLAG(bool, check_function_fingerprints, false,
(...skipping 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3263 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, 3264 DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target,
3264 Dart_Handle name, 3265 Dart_Handle name,
3265 int number_of_arguments, 3266 int number_of_arguments,
3266 Dart_Handle* arguments) { 3267 Dart_Handle* arguments) {
3267 Isolate* isolate = Isolate::Current(); 3268 Isolate* isolate = Isolate::Current();
3268 DARTSCOPE(isolate); 3269 DARTSCOPE(isolate);
3269 CHECK_CALLBACK_STATE(isolate); 3270 CHECK_CALLBACK_STATE(isolate);
3270 // TODO(turnidge): This is a bit simplistic. It overcounts when 3271 // TODO(turnidge): This is a bit simplistic. It overcounts when
3271 // other operations (gc, compilation) are active. 3272 // other operations (gc, compilation) are active.
3272 TIMERSCOPE(isolate, time_dart_execution); 3273 TIMERSCOPE(isolate, time_dart_execution);
3274 VMTagScope tagScope(isolate, VMTag::kScriptTagId);
3273 3275
3274 const String& function_name = Api::UnwrapStringHandle(isolate, name); 3276 const String& function_name = Api::UnwrapStringHandle(isolate, name);
3275 if (function_name.IsNull()) { 3277 if (function_name.IsNull()) {
3276 RETURN_TYPE_ERROR(isolate, name, String); 3278 RETURN_TYPE_ERROR(isolate, name, String);
3277 } 3279 }
3278 if (number_of_arguments < 0) { 3280 if (number_of_arguments < 0) {
3279 return Api::NewError( 3281 return Api::NewError(
3280 "%s expects argument 'number_of_arguments' to be non-negative.", 3282 "%s expects argument 'number_of_arguments' to be non-negative.",
3281 CURRENT_FUNC); 3283 CURRENT_FUNC);
3282 } 3284 }
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
4632 4634
4633 4635
4634 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 4636 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4635 const char* name, 4637 const char* name,
4636 Dart_ServiceRequestCallback callback, 4638 Dart_ServiceRequestCallback callback,
4637 void* user_data) { 4639 void* user_data) {
4638 Service::RegisterRootEmbedderCallback(name, callback, user_data); 4640 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4639 } 4641 }
4640 4642
4641 } // namespace dart 4643 } // 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