| 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/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 543 |
| 544 void MethodRecognizer::InitializeState() { | 544 void MethodRecognizer::InitializeState() { |
| 545 GrowableArray<Library*> libs(3); | 545 GrowableArray<Library*> libs(3); |
| 546 libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); | 546 libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); |
| 547 libs.Add(&Library::ZoneHandle(Library::MathLibrary())); | 547 libs.Add(&Library::ZoneHandle(Library::MathLibrary())); |
| 548 libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); | 548 libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); |
| 549 Function& func = Function::Handle(); | 549 Function& func = Function::Handle(); |
| 550 | 550 |
| 551 #define SET_IS_RECOGNIZED(class_name, function_name, dest, fp) \ | 551 #define SET_IS_RECOGNIZED(class_name, function_name, dest, fp) \ |
| 552 func = Library::GetFunction(libs, #class_name, #function_name); \ | 552 func = Library::GetFunction(libs, #class_name, #function_name); \ |
| 553 ASSERT(!func.IsNull()); \ | 553 if (func.IsNull()) { \ |
| 554 OS::PrintErr("Missing %s::%s\n", #class_name, #function_name); \ |
| 555 UNREACHABLE(); \ |
| 556 } \ |
| 554 ASSERT(func.CheckSourceFingerprint(fp)); \ | 557 ASSERT(func.CheckSourceFingerprint(fp)); \ |
| 555 func.set_is_recognized(true); \ | 558 func.set_is_recognized(true); \ |
| 556 | 559 |
| 557 RECOGNIZED_LIST(SET_IS_RECOGNIZED); | 560 RECOGNIZED_LIST(SET_IS_RECOGNIZED); |
| 558 | 561 |
| 559 #undef SET_IS_RECOGNIZED | 562 #undef SET_IS_RECOGNIZED |
| 560 } | 563 } |
| 561 | 564 |
| 562 // ==== Support for visiting flow graphs. | 565 // ==== Support for visiting flow graphs. |
| 563 | 566 |
| (...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3914 case Token::kTRUNCDIV: return 0; | 3917 case Token::kTRUNCDIV: return 0; |
| 3915 case Token::kMOD: return 1; | 3918 case Token::kMOD: return 1; |
| 3916 default: UNIMPLEMENTED(); return -1; | 3919 default: UNIMPLEMENTED(); return -1; |
| 3917 } | 3920 } |
| 3918 } | 3921 } |
| 3919 | 3922 |
| 3920 | 3923 |
| 3921 #undef __ | 3924 #undef __ |
| 3922 | 3925 |
| 3923 } // namespace dart | 3926 } // namespace dart |
| OLD | NEW |