| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ASSERT(!func.IsNull()); \ |
| 554 ASSERT(func.CheckSourceFingerprint(fp)); \ |
| 554 func.set_is_recognized(true); \ | 555 func.set_is_recognized(true); \ |
| 555 | 556 |
| 556 RECOGNIZED_LIST(SET_IS_RECOGNIZED); | 557 RECOGNIZED_LIST(SET_IS_RECOGNIZED); |
| 557 | 558 |
| 558 #undef SET_IS_RECOGNIZED | 559 #undef SET_IS_RECOGNIZED |
| 559 } | 560 } |
| 560 | 561 |
| 561 // ==== Support for visiting flow graphs. | 562 // ==== Support for visiting flow graphs. |
| 562 | 563 |
| 563 #define DEFINE_ACCEPT(ShortName) \ | 564 #define DEFINE_ACCEPT(ShortName) \ |
| (...skipping 2996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3560 case Token::kTRUNCDIV: return 0; | 3561 case Token::kTRUNCDIV: return 0; |
| 3561 case Token::kMOD: return 1; | 3562 case Token::kMOD: return 1; |
| 3562 default: UNIMPLEMENTED(); return -1; | 3563 default: UNIMPLEMENTED(); return -1; |
| 3563 } | 3564 } |
| 3564 } | 3565 } |
| 3565 | 3566 |
| 3566 | 3567 |
| 3567 #undef __ | 3568 #undef __ |
| 3568 | 3569 |
| 3569 } // namespace dart | 3570 } // namespace dart |
| OLD | NEW |