| 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 "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_allocator.h" | 10 #include "vm/flow_graph_allocator.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 418 |
| 419 const String& function_name = String::Handle(function.name()); | 419 const String& function_name = String::Handle(function.name()); |
| 420 const String& class_name = String::Handle(function_class.Name()); | 420 const String& class_name = String::Handle(function_class.Name()); |
| 421 | 421 |
| 422 #define RECOGNIZE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \ | 422 #define RECOGNIZE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \ |
| 423 if (CompareNames(lib, #test_function_name, function_name) && \ | 423 if (CompareNames(lib, #test_function_name, function_name) && \ |
| 424 CompareNames(lib, #test_class_name, class_name)) { \ | 424 CompareNames(lib, #test_class_name, class_name)) { \ |
| 425 ASSERT(function.CheckSourceFingerprint(fp)); \ | 425 ASSERT(function.CheckSourceFingerprint(fp)); \ |
| 426 return true; \ | 426 return true; \ |
| 427 } | 427 } |
| 428 POLYMORPHC_TARGET_LIST(RECOGNIZE_FUNCTION) | 428 POLYMORPHIC_TARGET_LIST(RECOGNIZE_FUNCTION) |
| 429 #undef RECOGNIZE_FUNCTION | 429 #undef RECOGNIZE_FUNCTION |
| 430 return false; | 430 return false; |
| 431 } | 431 } |
| 432 | 432 |
| 433 | 433 |
| 434 const char* MethodRecognizer::KindToCString(Kind kind) { | 434 const char* MethodRecognizer::KindToCString(Kind kind) { |
| 435 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \ | 435 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \ |
| 436 if (kind == k##enum_name) return #enum_name; | 436 if (kind == k##enum_name) return #enum_name; |
| 437 RECOGNIZED_LIST(KIND_TO_STRING) | 437 RECOGNIZED_LIST(KIND_TO_STRING) |
| 438 #undef KIND_TO_STRING | 438 #undef KIND_TO_STRING |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2892 return kCosRuntimeEntry; | 2892 return kCosRuntimeEntry; |
| 2893 default: | 2893 default: |
| 2894 UNREACHABLE(); | 2894 UNREACHABLE(); |
| 2895 } | 2895 } |
| 2896 return kSinRuntimeEntry; | 2896 return kSinRuntimeEntry; |
| 2897 } | 2897 } |
| 2898 | 2898 |
| 2899 #undef __ | 2899 #undef __ |
| 2900 | 2900 |
| 2901 } // namespace dart | 2901 } // namespace dart |
| OLD | NEW |