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

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

Issue 10051011: Eliminate type checks that can successfully be performed at compile time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
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_X64_H_ 5 #ifndef VM_CODE_GENERATOR_X64_H_
6 #define VM_CODE_GENERATOR_X64_H_ 6 #define VM_CODE_GENERATOR_X64_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_x64.h directly; use code_generator.h. 9 #error Do not include code_generator_x64.h directly; use code_generator.h.
10 #endif 10 #endif
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // the number of call arguments that are being checked in the inline cache. 157 // the number of call arguments that are being checked in the inline cache.
158 void GenerateInstanceCall(intptr_t node_id, 158 void GenerateInstanceCall(intptr_t node_id,
159 intptr_t token_index, 159 intptr_t token_index,
160 const String& function_name, 160 const String& function_name,
161 int num_arguments, 161 int num_arguments,
162 const Array& optional_arguments_names, 162 const Array& optional_arguments_names,
163 intptr_t num_args_checked); 163 intptr_t num_args_checked);
164 164
165 void GenerateInstanceOf(intptr_t node_id, 165 void GenerateInstanceOf(intptr_t node_id,
166 intptr_t token_index, 166 intptr_t token_index,
167 AstNode* value,
167 const AbstractType& type, 168 const AbstractType& type,
168 bool negate_result); 169 bool negate_result);
169 void GenerateAssertAssignable(intptr_t node_id, 170 void GenerateAssertAssignable(intptr_t node_id,
170 intptr_t token_index, 171 intptr_t token_index,
172 AstNode* value,
171 const AbstractType& dst_type, 173 const AbstractType& dst_type,
172 const String& dst_name); 174 const String& dst_name);
173 void GenerateArgumentTypeChecks(); 175 void GenerateArgumentTypeChecks();
174 void GenerateConditionTypeCheck(intptr_t node_id, intptr_t token_index); 176 void GenerateConditionTypeCheck(intptr_t node_id, intptr_t token_index);
175 177
176 void GenerateInstantiatorTypeArguments(intptr_t token_index); 178 void GenerateInstantiatorTypeArguments(intptr_t token_index);
177 void GenerateTypeArguments(ConstructorCallNode* node, 179 void GenerateTypeArguments(ConstructorCallNode* node,
178 bool is_cls_parameterized); 180 bool is_cls_parameterized);
179 181
180 void TestClassAndJump(const Class& cls, Label *label); 182 void TestClassAndJump(const Class& cls, Label *label);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // allocated and chained to the list of contexts. 222 // allocated and chained to the list of contexts.
221 intptr_t context_level_; 223 intptr_t context_level_;
222 224
223 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 225 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
224 }; 226 };
225 227
226 228
227 } // namespace dart 229 } // namespace dart
228 230
229 #endif // VM_CODE_GENERATOR_X64_H_ 231 #endif // VM_CODE_GENERATOR_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698