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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.h

Issue 10477020: Move inlined type checking code to new compiler ia32. Sharing more and more code between ia32/x64 (… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.h
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.h (revision 8286)
+++ runtime/vm/flow_graph_compiler_ia32.h (working copy)
@@ -81,6 +81,59 @@
virtual void GenerateInlinedGetter(intptr_t offset);
virtual void GenerateInlinedSetter(intptr_t offset);
+ RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t cid,
+ intptr_t token_index,
+ const AbstractType& type,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+
+ RawSubtypeTestCache* GenerateInstantiatedTypeWithArgumentsTest(
+ intptr_t cid,
+ intptr_t token_index,
+ const AbstractType& dst_type,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+
+ void GenerateInstantiatedTypeNoArgumentsTest(intptr_t cid,
+ intptr_t token_index,
+ const AbstractType& dst_type,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+
+ RawSubtypeTestCache* GenerateUninstantiatedTypeTest(
+ intptr_t cid,
+ intptr_t token_index,
+ const AbstractType& dst_type,
+ Label* is_instance_lbl,
+ Label* is_not_instance_label);
+
+ RawSubtypeTestCache* GenerateSubtype1TestCacheLookup(
+ intptr_t cid,
+ intptr_t token_index,
+ const Class& type_class,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+
+ enum TypeTestStubKind {
+ kTestTypeOneArg,
+ kTestTypeTwoArgs,
+ kTestTypeThreeArgs,
+ };
+
+ RawSubtypeTestCache* GenerateCallSubtypeTestStub(TypeTestStubKind test_kind,
+ Register instance_reg,
+ Register type_arguments_reg,
+ Register temp_reg,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+
+ void GenerateBoolToJump(Register bool_reg, Label* is_true, Label* is_false);
+
+ virtual void CheckClassIds(Register class_id_reg,
+ const GrowableArray<intptr_t>& class_ids,
+ Label* is_equal_lbl,
+ Label* is_not_equal_lbl);
+
void EmitComment(Instruction* instr);
void BailoutOnInstruction(Instruction* instr);
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698