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

Side by Side Diff: vm/code_generator_ia32.h

Issue 8827015: Implement two-argument check inline cache. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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 | « vm/code_generator.cc ('k') | vm/code_generator_ia32.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) 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_IA32_H_ 5 #ifndef VM_CODE_GENERATOR_IA32_H_
6 #define VM_CODE_GENERATOR_IA32_H_ 6 #define VM_CODE_GENERATOR_IA32_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_ia32.h directly; use code_generator.h. 9 #error Do not include code_generator_ia32.h directly; use code_generator.h.
10 #endif 10 #endif
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 const Class& field_class, 159 const Class& field_class,
160 const String& field_name); 160 const String& field_name);
161 void GenerateStaticSetterCall(intptr_t token_index, 161 void GenerateStaticSetterCall(intptr_t token_index,
162 const Class& field_class, 162 const Class& field_class,
163 const String& field_name); 163 const String& field_name);
164 void GenerateLoadIndexed(intptr_t node_id, intptr_t token_index); 164 void GenerateLoadIndexed(intptr_t node_id, intptr_t token_index);
165 void GenerateStoreIndexed(intptr_t node_id, 165 void GenerateStoreIndexed(intptr_t node_id,
166 intptr_t token_index, 166 intptr_t token_index,
167 bool preserve_value); 167 bool preserve_value);
168 168
169 // Invokes funtion via an inline cache stub. 'num_args_checked' specifies
170 // the number of call arguments that are being checked in the inline cache.
169 void GenerateInstanceCall(intptr_t node_id, 171 void GenerateInstanceCall(intptr_t node_id,
170 intptr_t token_index, 172 intptr_t token_index,
171 const String& function_name, 173 const String& function_name,
172 int num_arguments, 174 int num_arguments,
173 const Array& optional_arguments_names); 175 const Array& optional_arguments_names,
176 intptr_t num_args_checked);
174 177
175 void GenerateInstanceOf(intptr_t node_id, 178 void GenerateInstanceOf(intptr_t node_id,
176 intptr_t token_index, 179 intptr_t token_index,
177 const AbstractType& type, 180 const AbstractType& type,
178 bool negate_result); 181 bool negate_result);
179 void GenerateAssertAssignable(intptr_t node_id, 182 void GenerateAssertAssignable(intptr_t node_id,
180 intptr_t token_index, 183 intptr_t token_index,
181 const AbstractType& dst_type, 184 const AbstractType& dst_type,
182 const String& dst_name); 185 const String& dst_name);
183 void GenerateArgumentTypeChecks(); 186 void GenerateArgumentTypeChecks();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 HandlerList* exception_handlers_list_; 221 HandlerList* exception_handlers_list_;
219 int try_index_; 222 int try_index_;
220 223
221 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 224 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
222 }; 225 };
223 226
224 227
225 } // namespace dart 228 } // namespace dart
226 229
227 #endif // VM_CODE_GENERATOR_IA32_H_ 230 #endif // VM_CODE_GENERATOR_IA32_H_
OLDNEW
« no previous file with comments | « vm/code_generator.cc ('k') | vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698