Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 static void EnterFunctionAt(int i, | 117 static void EnterFunctionAt(int i, |
| 118 const Array& cache, | 118 const Array& cache, |
| 119 const Function& function, | 119 const Function& function, |
| 120 int num_arguments, | 120 int num_arguments, |
| 121 int num_named_arguments); | 121 int num_named_arguments); |
| 122 | 122 |
| 123 const Class& class_; | 123 const Class& class_; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 | 126 |
| 127 // A subtype test cache is an array remembering subtype tests for given values. | |
| 128 class SubTypeTestCache : public AllStatic { | |
| 129 public: | |
| 130 enum Entries { | |
| 131 kInstanceClass = 0, | |
| 132 kInstanceTypeArguments = 1, | |
| 133 kInstantiatorArguments = 2, | |
|
regis
2012/04/27 23:27:48
Is kInstantiatorTypeArguments too long? That would
srdjan
2012/04/27 23:43:19
renamed to kInstantiatorTypeArguments
| |
| 134 kTestResult = 3, | |
| 135 kNumEntries = 4, | |
| 136 }; | |
| 137 }; | |
| 138 | |
| 139 | |
| 127 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, | 140 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, |
| 128 const Instance& receiver); | 141 const Instance& receiver); |
| 129 | 142 |
| 130 } // namespace dart | 143 } // namespace dart |
| 131 | 144 |
| 132 #endif // VM_CODE_GENERATOR_H_ | 145 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |