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

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

Issue 11348289: Attempt to do direct class comparison for type checks using CHA. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_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) 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_FLOW_GRAPH_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 kTestTypeThreeArgs, 290 kTestTypeThreeArgs,
291 }; 291 };
292 292
293 RawSubtypeTestCache* GenerateCallSubtypeTestStub(TypeTestStubKind test_kind, 293 RawSubtypeTestCache* GenerateCallSubtypeTestStub(TypeTestStubKind test_kind,
294 Register instance_reg, 294 Register instance_reg,
295 Register type_arguments_reg, 295 Register type_arguments_reg,
296 Register temp_reg, 296 Register temp_reg,
297 Label* is_instance_lbl, 297 Label* is_instance_lbl,
298 Label* is_not_instance_lbl); 298 Label* is_not_instance_lbl);
299 299
300 // Returns true if checking against this type is a direct class id comparison.
301 bool TypeCheckAsClassEquality(const AbstractType& type);
302
300 void GenerateBoolToJump(Register bool_reg, Label* is_true, Label* is_false); 303 void GenerateBoolToJump(Register bool_reg, Label* is_true, Label* is_false);
301 304
302 void CopyParameters(); 305 void CopyParameters();
303 306
304 void GenerateInlinedGetter(intptr_t offset); 307 void GenerateInlinedGetter(intptr_t offset);
305 void GenerateInlinedSetter(intptr_t offset); 308 void GenerateInlinedSetter(intptr_t offset);
306 309
307 // Perform a greedy local register allocation. Consider all registers free. 310 // Perform a greedy local register allocation. Consider all registers free.
308 void AllocateRegistersLocally(Instruction* instr); 311 void AllocateRegistersLocally(Instruction* instr);
309 312
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // that should be used when deoptimizing we store it in this variable. 348 // that should be used when deoptimizing we store it in this variable.
346 // In future AddDeoptStub should be moved out of the instruction template. 349 // In future AddDeoptStub should be moved out of the instruction template.
347 Environment* pending_deoptimization_env_; 350 Environment* pending_deoptimization_env_;
348 351
349 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 352 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
350 }; 353 };
351 354
352 } // namespace dart 355 } // namespace dart
353 356
354 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 357 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698