Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: runtime/vm/code_generator.h

Issue 10352012: Using SubtypeTestCache object instead of an array, that way we do not need to patch and can communi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static void EnterFunctionAt(int i, 118 static void EnterFunctionAt(int i,
119 const Array& cache, 119 const Array& cache,
120 const Function& function, 120 const Function& function,
121 int num_arguments, 121 int num_arguments,
122 int num_named_arguments); 122 int num_named_arguments);
123 123
124 const Class& class_; 124 const Class& class_;
125 }; 125 };
126 126
127 127
128 // A subtype test cache is an array remembering subtype tests for given values.
129 class SubTypeTestCache : public AllStatic {
130 public:
131 enum Entries {
132 kInstanceClass = 0,
133 kInstanceTypeArguments = 1,
134 kInstantiatorTypeArguments = 2,
135 kTestResult = 3,
136 kNumEntries = 4,
137 };
138 };
139
140
141 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, 128 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
142 const Instance& receiver); 129 const Instance& receiver);
143 130
144 } // namespace dart 131 } // namespace dart
145 132
146 #endif // VM_CODE_GENERATOR_H_ 133 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698