| 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_mirrors_api.h" | 5 #include "include/dart_mirrors_api.h" |
| 6 #include "include/dart_tools_api.h" | 6 #include "include/dart_tools_api.h" |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
| 9 #include "vm/lockers.h" | 9 #include "vm/lockers.h" |
| 10 #include "vm/unit_test.h" | 10 #include "vm/unit_test.h" |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 Dart_GetStackTrace(&trace); | 994 Dart_GetStackTrace(&trace); |
| 995 Dart_ActivationFrame frame; | 995 Dart_ActivationFrame frame; |
| 996 Dart_Handle res = Dart_GetActivationFrame(trace, 0, &frame); | 996 Dart_Handle res = Dart_GetActivationFrame(trace, 0, &frame); |
| 997 EXPECT_VALID(res); | 997 EXPECT_VALID(res); |
| 998 Dart_Handle func_name; | 998 Dart_Handle func_name; |
| 999 intptr_t line_number = -1; | 999 intptr_t line_number = -1; |
| 1000 res = Dart_ActivationFrameInfo(frame, &func_name, NULL, &line_number, NULL); | 1000 res = Dart_ActivationFrameInfo(frame, &func_name, NULL, &line_number, NULL); |
| 1001 EXPECT_NE(-1, line_number); | 1001 EXPECT_NE(-1, line_number); |
| 1002 if (verbose) OS::Print("Hit line %" Pd "\n", line_number); | 1002 if (verbose) OS::Print("Hit line %" Pd "\n", line_number); |
| 1003 | 1003 |
| 1004 TransitionNativeToVM transition(Thread::Current()); |
| 1004 VerifyPointersVisitor::VerifyPointers(); | 1005 VerifyPointersVisitor::VerifyPointers(); |
| 1005 } | 1006 } |
| 1006 | 1007 |
| 1007 static void NoopNativeFunction(Dart_NativeArguments args) { | 1008 static void NoopNativeFunction(Dart_NativeArguments args) { |
| 1008 Dart_EnterScope(); | 1009 Dart_EnterScope(); |
| 1009 Dart_SetReturnValue(args, Dart_True()); | 1010 Dart_SetReturnValue(args, Dart_True()); |
| 1010 Dart_ExitScope(); | 1011 Dart_ExitScope(); |
| 1011 } | 1012 } |
| 1012 | 1013 |
| 1013 static Dart_NativeFunction NoopNativeResolver(Dart_Handle name, | 1014 static Dart_NativeFunction NoopNativeResolver(Dart_Handle name, |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2285 " null, 5, 17, 5, 18, 9, 19, 12," | 2286 " null, 5, 17, 5, 18, 9, 19, 12," |
| 2286 " null, 6, 21, 1," | 2287 " null, 6, 21, 1," |
| 2287 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," | 2288 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," |
| 2288 " null, 9, 29, 1]", | 2289 " null, 9, 29, 1]", |
| 2289 tokens_cstr); | 2290 tokens_cstr); |
| 2290 } | 2291 } |
| 2291 | 2292 |
| 2292 #endif | 2293 #endif |
| 2293 | 2294 |
| 2294 } // namespace dart | 2295 } // namespace dart |
| OLD | NEW |