| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 #ifndef VM_METHOD_RECOGNIZER_H_ | 5 #ifndef RUNTIME_VM_METHOD_RECOGNIZER_H_ |
| 6 #define VM_METHOD_RECOGNIZER_H_ | 6 #define RUNTIME_VM_METHOD_RECOGNIZER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 // (class-name, function-name, recognized enum, result type, fingerprint). | 12 // (class-name, function-name, recognized enum, result type, fingerprint). |
| 13 // When adding a new function add a 0 as fingerprint, build and run to get the | 13 // When adding a new function add a 0 as fingerprint, build and run to get the |
| 14 // correct fingerprint from the mismatch error. | 14 // correct fingerprint from the mismatch error. |
| 15 #define OTHER_RECOGNIZED_LIST(V) \ | 15 #define OTHER_RECOGNIZED_LIST(V) \ |
| 16 V(::, identical, ObjectIdentical, Bool, 0x49c6e96a) \ | 16 V(::, identical, ObjectIdentical, Bool, 0x49c6e96a) \ |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 | 552 |
| 553 // Class that recognizes factories and returns corresponding result cid. | 553 // Class that recognizes factories and returns corresponding result cid. |
| 554 class FactoryRecognizer : public AllStatic { | 554 class FactoryRecognizer : public AllStatic { |
| 555 public: | 555 public: |
| 556 // Return kDynamicCid if factory is not recognized. | 556 // Return kDynamicCid if factory is not recognized. |
| 557 static intptr_t ResultCid(const Function& factory); | 557 static intptr_t ResultCid(const Function& factory); |
| 558 }; | 558 }; |
| 559 | 559 |
| 560 } // namespace dart | 560 } // namespace dart |
| 561 | 561 |
| 562 #endif // VM_METHOD_RECOGNIZER_H_ | 562 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |