| OLD | NEW |
| 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 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 bool* is_getter) { | 2756 bool* is_getter) { |
| 2757 Isolate* isolate = Isolate::Current(); | 2757 Isolate* isolate = Isolate::Current(); |
| 2758 DARTSCOPE(isolate); | 2758 DARTSCOPE(isolate); |
| 2759 if (is_getter == NULL) { | 2759 if (is_getter == NULL) { |
| 2760 RETURN_NULL_ERROR(is_getter); | 2760 RETURN_NULL_ERROR(is_getter); |
| 2761 } | 2761 } |
| 2762 const Function& func = Api::UnwrapFunctionHandle(isolate, function); | 2762 const Function& func = Api::UnwrapFunctionHandle(isolate, function); |
| 2763 if (func.IsNull()) { | 2763 if (func.IsNull()) { |
| 2764 RETURN_TYPE_ERROR(isolate, function, Function); | 2764 RETURN_TYPE_ERROR(isolate, function, Function); |
| 2765 } | 2765 } |
| 2766 *is_getter = (func.kind() == RawFunction::kGetterFunction); | 2766 *is_getter = func.IsGetterFunction(); |
| 2767 return Api::Success(isolate); | 2767 return Api::Success(isolate); |
| 2768 } | 2768 } |
| 2769 | 2769 |
| 2770 | 2770 |
| 2771 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function, | 2771 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function, |
| 2772 bool* is_setter) { | 2772 bool* is_setter) { |
| 2773 Isolate* isolate = Isolate::Current(); | 2773 Isolate* isolate = Isolate::Current(); |
| 2774 DARTSCOPE(isolate); | 2774 DARTSCOPE(isolate); |
| 2775 if (is_setter == NULL) { | 2775 if (is_setter == NULL) { |
| 2776 RETURN_NULL_ERROR(is_setter); | 2776 RETURN_NULL_ERROR(is_setter); |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4081 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function) { | 4081 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function) { |
| 4082 Dart::set_perf_events_writer(function); | 4082 Dart::set_perf_events_writer(function); |
| 4083 } | 4083 } |
| 4084 | 4084 |
| 4085 | 4085 |
| 4086 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function) { | 4086 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function) { |
| 4087 Dart::set_flow_graph_writer(function); | 4087 Dart::set_flow_graph_writer(function); |
| 4088 } | 4088 } |
| 4089 | 4089 |
| 4090 } // namespace dart | 4090 } // namespace dart |
| OLD | NEW |