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

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
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_shared.h
===================================================================
--- runtime/vm/flow_graph_compiler_shared.h (revision 8286)
+++ 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 {
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698