| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_CODE_GENERATOR_H_ | 5 #ifndef VM_CODE_GENERATOR_H_ |
| 6 #define VM_CODE_GENERATOR_H_ | 6 #define VM_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/runtime_entry.h" | 9 #include "vm/runtime_entry.h" |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 kDeoptInstanceSetterSameTarget, | 70 kDeoptInstanceSetterSameTarget, |
| 71 kDeoptInstanceSetter, | 71 kDeoptInstanceSetter, |
| 72 kDeoptSmiEquality, | 72 kDeoptSmiEquality, |
| 73 kDeoptSmiCompareSmis, | 73 kDeoptSmiCompareSmis, |
| 74 kDeoptSmiCompareAny, | 74 kDeoptSmiCompareAny, |
| 75 kDeoptEqualityNoFeedback, | 75 kDeoptEqualityNoFeedback, |
| 76 kDeoptEqualityClassCheck, | 76 kDeoptEqualityClassCheck, |
| 77 kDeoptDoubleComparison, | 77 kDeoptDoubleComparison, |
| 78 kDeoptLoadIndexedFixedArray, | 78 kDeoptLoadIndexedFixedArray, |
| 79 kDeoptLoadIndexedGrowableArray, | 79 kDeoptLoadIndexedGrowableArray, |
| 80 kDeoptNoTypeFeedback, |
| 81 kDeoptSAR, |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 // This class wraps around the array RawClass::functions_cache_. | 84 // This class wraps around the array RawClass::functions_cache_. |
| 83 // The structure of that array is specified by FunctionsCache::Entries. | 85 // The structure of that array is specified by FunctionsCache::Entries. |
| 84 // The last entry in the array is always NULL, the lookup code can rely on | 86 // The last entry in the array is always NULL, the lookup code can rely on |
| 85 // last entry being NULL to terminate its search. | 87 // last entry being NULL to terminate its search. |
| 86 // The compiled functions are added sequentially (except for the last entry | 88 // The compiled functions are added sequentially (except for the last entry |
| 87 // being empty). Names of functions with variable number of arguments | 89 // being empty). Names of functions with variable number of arguments |
| 88 // can appear several times, once for each valid argument count. | 90 // can appear several times, once for each valid argument count. |
| 89 class FunctionsCache : public ValueObject { | 91 class FunctionsCache : public ValueObject { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 115 const Function& function, | 117 const Function& function, |
| 116 int num_arguments, | 118 int num_arguments, |
| 117 int num_named_arguments); | 119 int num_named_arguments); |
| 118 | 120 |
| 119 const Class& class_; | 121 const Class& class_; |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace dart | 124 } // namespace dart |
| 123 | 125 |
| 124 #endif // VM_CODE_GENERATOR_H_ | 126 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |