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

Unified Diff: runtime/vm/intermediate_language.h

Issue 15564004: Refactor the IL for object allocation with type arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 22932)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -3710,18 +3710,16 @@
};
-class AllocateObjectWithBoundsCheckInstr : public TemplateDefinition<2> {
+class AllocateObjectWithBoundsCheckInstr : public TemplateDefinition<0> {
public:
- AllocateObjectWithBoundsCheckInstr(ConstructorCallNode* node,
- Value* type_arguments,
- Value* instantiator)
+ explicit AllocateObjectWithBoundsCheckInstr(ConstructorCallNode* node)
: ast_node_(*node) {
- SetInputAt(0, type_arguments);
- SetInputAt(1, instantiator);
}
DECLARE_INSTRUCTION(AllocateObjectWithBoundsCheck)
+ virtual intptr_t ArgumentCount() const { return 4; }
+
const Function& constructor() const { return ast_node_.constructor(); }
intptr_t token_pos() const { return ast_node_.token_pos(); }

Powered by Google App Engine
This is Rietveld 408576698