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 "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 11297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11308 Function& func = Function::Handle(); | 11308 Function& func = Function::Handle(); |
11309 bool has_errors = false; | 11309 bool has_errors = false; |
11310 | 11310 |
11311 #define CHECK_FINGERPRINTS(class_name, function_name, dest, fp) \ | 11311 #define CHECK_FINGERPRINTS(class_name, function_name, dest, fp) \ |
11312 func = GetFunction(all_libs, #class_name, #function_name); \ | 11312 func = GetFunction(all_libs, #class_name, #function_name); \ |
11313 if (func.IsNull()) { \ | 11313 if (func.IsNull()) { \ |
11314 has_errors = true; \ | 11314 has_errors = true; \ |
11315 OS::Print("Function not found %s.%s\n", #class_name, #function_name); \ | 11315 OS::Print("Function not found %s.%s\n", #class_name, #function_name); \ |
11316 } else { \ | 11316 } else { \ |
11317 CHECK_FINGERPRINT3(func, class_name, function_name, dest, fp); \ | 11317 CHECK_FINGERPRINT3(func, class_name, function_name, dest, fp); \ |
11318 } | 11318 } \ |
11319 | |
11320 #define CHECK_FINGERPRINTS2(class_name, function_name, dest, type, fp) \ | |
11321 CHECK_FINGERPRINTS(class_name, function_name, dest, fp) | |
11322 | 11319 |
11323 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); | 11320 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); |
11324 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); | 11321 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); |
11325 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); | 11322 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); |
11326 | 11323 |
11327 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); | 11324 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); |
11328 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); | 11325 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); |
11329 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); | 11326 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); |
11330 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS2); | 11327 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS); |
11331 INLINE_WHITE_LIST(CHECK_FINGERPRINTS); | 11328 INLINE_WHITE_LIST(CHECK_FINGERPRINTS); |
11332 INLINE_BLACK_LIST(CHECK_FINGERPRINTS); | 11329 INLINE_BLACK_LIST(CHECK_FINGERPRINTS); |
11333 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS); | 11330 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS); |
11334 | 11331 |
11335 all_libs.Clear(); | 11332 all_libs.Clear(); |
11336 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); | 11333 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); |
11337 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); | 11334 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); |
11338 | 11335 |
11339 all_libs.Clear(); | 11336 all_libs.Clear(); |
11340 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); | 11337 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); |
11341 MATH_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); | 11338 MATH_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); |
11342 | 11339 |
11343 all_libs.Clear(); | 11340 all_libs.Clear(); |
11344 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); | 11341 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); |
11345 TYPED_DATA_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); | 11342 TYPED_DATA_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); |
11346 | 11343 |
11347 #undef CHECK_FINGERPRINTS | 11344 #undef CHECK_FINGERPRINTS |
11348 #undef CHECK_FINGERPRINTS2 | |
11349 | |
11350 | |
11351 | 11345 |
11352 Class& cls = Class::Handle(); | 11346 Class& cls = Class::Handle(); |
11353 | 11347 |
11354 #define CHECK_FACTORY_FINGERPRINTS(factory_symbol, cid, fp) \ | 11348 #define CHECK_FACTORY_FINGERPRINTS(factory_symbol, cid, fp) \ |
11355 cls = Isolate::Current()->class_table()->At(cid); \ | 11349 cls = Isolate::Current()->class_table()->At(cid); \ |
11356 func = cls.LookupFunctionAllowPrivate(Symbols::factory_symbol()); \ | 11350 func = cls.LookupFunctionAllowPrivate(Symbols::factory_symbol()); \ |
11357 if (func.IsNull()) { \ | 11351 if (func.IsNull()) { \ |
11358 has_errors = true; \ | 11352 has_errors = true; \ |
11359 OS::Print("Function not found %s.%s\n", cls.ToCString(), \ | 11353 OS::Print("Function not found %s.%s\n", cls.ToCString(), \ |
11360 Symbols::factory_symbol().ToCString()); \ | 11354 Symbols::factory_symbol().ToCString()); \ |
(...skipping 11256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22617 return UserTag::null(); | 22611 return UserTag::null(); |
22618 } | 22612 } |
22619 | 22613 |
22620 | 22614 |
22621 const char* UserTag::ToCString() const { | 22615 const char* UserTag::ToCString() const { |
22622 const String& tag_label = String::Handle(label()); | 22616 const String& tag_label = String::Handle(label()); |
22623 return tag_label.ToCString(); | 22617 return tag_label.ToCString(); |
22624 } | 22618 } |
22625 | 22619 |
22626 } // namespace dart | 22620 } // namespace dart |
OLD | NEW |