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

Unified Diff: runtime/vm/intermediate_language.h

Issue 178233003: Allocate instance closures similarly to regular closures, i.e. without a (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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/il_printer.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 33072)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -645,7 +645,6 @@
M(BooleanNegate) \
M(InstanceOf) \
M(CreateArray) \
- M(CreateClosure) \
M(AllocateObject) \
M(LoadField) \
M(LoadUntagged) \
@@ -3348,6 +3347,8 @@
virtual CompileType* ComputeInitialType() const;
+ virtual void PrintOperandsTo(BufferFormatter* f) const;
+
virtual bool CanDeoptimize() const { return false; }
virtual EffectSet Effects() const {
@@ -4142,43 +4143,6 @@
};
-class CreateClosureInstr : public TemplateDefinition<0> {
- public:
- CreateClosureInstr(const Function& function,
- ZoneGrowableArray<PushArgumentInstr*>* arguments,
- intptr_t token_pos)
- : function_(function),
- arguments_(arguments),
- token_pos_(token_pos) { }
-
- DECLARE_INSTRUCTION(CreateClosure)
- virtual CompileType ComputeType() const;
-
- intptr_t token_pos() const { return token_pos_; }
- const Function& function() const { return function_; }
-
- virtual intptr_t ArgumentCount() const { return arguments_->length(); }
- virtual PushArgumentInstr* PushArgumentAt(intptr_t index) const {
- return (*arguments_)[index];
- }
-
- virtual void PrintOperandsTo(BufferFormatter* f) const;
-
- virtual bool CanDeoptimize() const { return false; }
-
- virtual EffectSet Effects() const { return EffectSet::None(); }
-
- virtual bool MayThrow() const { return false; }
-
- private:
- const Function& function_;
- ZoneGrowableArray<PushArgumentInstr*>* arguments_;
- intptr_t token_pos_;
-
- DISALLOW_COPY_AND_ASSIGN(CreateClosureInstr);
-};
-
-
class LoadUntaggedInstr : public TemplateDefinition<1> {
public:
LoadUntaggedInstr(Value* object, intptr_t offset) : offset_(offset) {
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698