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

Side by Side Diff: runtime/vm/object.cc

Issue 2018363004: VM: Add result cid information for recognized methods. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: updated comment Created 4 years, 6 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
« no previous file with comments | « runtime/vm/method_recognizer.cc ('k') | no next file » | 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) 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
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)
11319 11322
11320 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); 11323 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary()));
11321 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); 11324 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11322 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); 11325 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11323 11326
11324 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); 11327 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary()));
11325 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); 11328 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary()));
11326 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); 11329 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary()));
11327 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS); 11330 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS2);
11328 INLINE_WHITE_LIST(CHECK_FINGERPRINTS); 11331 INLINE_WHITE_LIST(CHECK_FINGERPRINTS);
11329 INLINE_BLACK_LIST(CHECK_FINGERPRINTS); 11332 INLINE_BLACK_LIST(CHECK_FINGERPRINTS);
11330 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS); 11333 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS);
11331 11334
11332 all_libs.Clear(); 11335 all_libs.Clear();
11333 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); 11336 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary()));
11334 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); 11337 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11335 11338
11336 all_libs.Clear(); 11339 all_libs.Clear();
11337 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); 11340 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary()));
11338 MATH_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); 11341 MATH_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11339 11342
11340 all_libs.Clear(); 11343 all_libs.Clear();
11341 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); 11344 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary()));
11342 TYPED_DATA_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS); 11345 TYPED_DATA_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11343 11346
11344 #undef CHECK_FINGERPRINTS 11347 #undef CHECK_FINGERPRINTS
11348 #undef CHECK_FINGERPRINTS2
11349
11350
11345 11351
11346 Class& cls = Class::Handle(); 11352 Class& cls = Class::Handle();
11347 11353
11348 #define CHECK_FACTORY_FINGERPRINTS(factory_symbol, cid, fp) \ 11354 #define CHECK_FACTORY_FINGERPRINTS(factory_symbol, cid, fp) \
11349 cls = Isolate::Current()->class_table()->At(cid); \ 11355 cls = Isolate::Current()->class_table()->At(cid); \
11350 func = cls.LookupFunctionAllowPrivate(Symbols::factory_symbol()); \ 11356 func = cls.LookupFunctionAllowPrivate(Symbols::factory_symbol()); \
11351 if (func.IsNull()) { \ 11357 if (func.IsNull()) { \
11352 has_errors = true; \ 11358 has_errors = true; \
11353 OS::Print("Function not found %s.%s\n", cls.ToCString(), \ 11359 OS::Print("Function not found %s.%s\n", cls.ToCString(), \
11354 Symbols::factory_symbol().ToCString()); \ 11360 Symbols::factory_symbol().ToCString()); \
(...skipping 11256 matching lines...) Expand 10 before | Expand all | Expand 10 after
22611 return UserTag::null(); 22617 return UserTag::null();
22612 } 22618 }
22613 22619
22614 22620
22615 const char* UserTag::ToCString() const { 22621 const char* UserTag::ToCString() const {
22616 const String& tag_label = String::Handle(label()); 22622 const String& tag_label = String::Handle(label());
22617 return tag_label.ToCString(); 22623 return tag_label.ToCString();
22618 } 22624 }
22619 22625
22620 } // namespace dart 22626 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/method_recognizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698