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

Unified Diff: runtime/vm/flow_graph_compiler_shared.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
Index: runtime/vm/flow_graph_compiler_shared.h
===================================================================
--- runtime/vm/flow_graph_compiler_shared.h (revision 8254)
+++ runtime/vm/flow_graph_compiler_shared.h (working copy)
@@ -118,6 +118,16 @@
intptr_t argument_count,
const Array& argument_names);
+ void GenerateNumberTypeCheck(Register kClassIdReg,
+ const AbstractType& type,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+ void GenerateStringTypeCheck(Register kClassIdReg,
+ Label* is_instance_lbl,
+ Label* is_not_instance_lbl);
+ void GenerateListTypeCheck(Register kClassIdReg,
+ Label* is_instance_lbl);
+
void GenerateDeferredCode();
@@ -137,6 +147,10 @@
virtual intptr_t EmitStaticCall(const Function& function,
const Array& arguments_descriptor,
intptr_t argument_count) = 0;
+ virtual void CheckClassIds(Register class_id_reg,
+ const GrowableArray<intptr_t>& class_ids,
+ Label* is_equal_lbl,
+ Label* is_not_equal_lbl) = 0;
struct BlockInfo : public ZoneAllocated {

Powered by Google App Engine
This is Rietveld 408576698