OLD | NEW |
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 "platform/assert.h" | 5 #include "platform/assert.h" |
6 | 6 |
7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 #include "vm/profiler.h" | 10 #include "vm/profiler.h" |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 Dart_Handle lib = TestCase::LoadTestScript(kScript, NULL); | 987 Dart_Handle lib = TestCase::LoadTestScript(kScript, NULL); |
988 EXPECT_VALID(lib); | 988 EXPECT_VALID(lib); |
989 Library& root_library = Library::Handle(); | 989 Library& root_library = Library::Handle(); |
990 root_library ^= Api::UnwrapHandle(lib); | 990 root_library ^= Api::UnwrapHandle(lib); |
991 Isolate* isolate = thread->isolate(); | 991 Isolate* isolate = thread->isolate(); |
992 | 992 |
993 const Library& typed_data_library = | 993 const Library& typed_data_library = |
994 Library::Handle(isolate->object_store()->typed_data_library()); | 994 Library::Handle(isolate->object_store()->typed_data_library()); |
995 | 995 |
996 const Class& float32_list_class = | 996 const Class& float32_list_class = |
997 Class::Handle(GetClass(typed_data_library, "Float32List")); | 997 Class::Handle(GetClass(typed_data_library, "_Float32List")); |
998 EXPECT(!float32_list_class.IsNull()); | 998 EXPECT(!float32_list_class.IsNull()); |
999 | 999 |
1000 Dart_Handle result = Dart_Invoke(lib, NewString("foo"), 0, NULL); | 1000 Dart_Handle result = Dart_Invoke(lib, NewString("foo"), 0, NULL); |
1001 EXPECT_VALID(result); | 1001 EXPECT_VALID(result); |
1002 | 1002 |
1003 { | 1003 { |
1004 StackZone zone(thread); | 1004 StackZone zone(thread); |
1005 HANDLESCOPE(thread); | 1005 HANDLESCOPE(thread); |
1006 Profile profile(isolate); | 1006 Profile profile(isolate); |
1007 AllocationFilter filter(isolate, float32_list_class.id()); | 1007 AllocationFilter filter(isolate, float32_list_class.id()); |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 EXPECT_SUBSTRING("\"positions\":[\"TempMove\",39]", js.ToCString()); | 2602 EXPECT_SUBSTRING("\"positions\":[\"TempMove\",39]", js.ToCString()); |
2603 // Verify exclusive ticks in main. | 2603 // Verify exclusive ticks in main. |
2604 EXPECT_SUBSTRING("\"exclusiveTicks\":[1,0]", js.ToCString()); | 2604 EXPECT_SUBSTRING("\"exclusiveTicks\":[1,0]", js.ToCString()); |
2605 // Verify inclusive ticks in main. | 2605 // Verify inclusive ticks in main. |
2606 EXPECT_SUBSTRING("\"inclusiveTicks\":[1,2]", js.ToCString()); | 2606 EXPECT_SUBSTRING("\"inclusiveTicks\":[1,2]", js.ToCString()); |
2607 } | 2607 } |
2608 | 2608 |
2609 #endif // !PRODUCT | 2609 #endif // !PRODUCT |
2610 | 2610 |
2611 } // namespace dart | 2611 } // namespace dart |
OLD | NEW |