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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10933046: Cleanup: Replace LoadInstanceFieldInstr with LoadVMFieldInstr. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 12267)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -208,7 +208,6 @@
M(NativeCall) \
M(LoadIndexed) \
M(StoreIndexed) \
- M(LoadInstanceField) \
M(StoreInstanceField) \
M(LoadStaticField) \
M(StoreStaticField) \
@@ -2130,31 +2129,6 @@
};
-class LoadInstanceFieldInstr : public TemplateDefinition<1> {
- public:
- LoadInstanceFieldInstr(const Field& field, Value* instance) : field_(field) {
- ASSERT(instance != NULL);
- inputs_[0] = instance;
- }
-
- DECLARE_INSTRUCTION(LoadInstanceField)
- virtual RawAbstractType* CompileType() const;
-
- const Field& field() const { return field_; }
- Value* instance() const { return inputs_[0]; }
-
- virtual void PrintOperandsTo(BufferFormatter* f) const;
-
- virtual bool CanDeoptimize() const { return false; }
- virtual intptr_t ResultCid() const { return kDynamicCid; }
-
- private:
- const Field& field_;
-
- DISALLOW_COPY_AND_ASSIGN(LoadInstanceFieldInstr);
-};
-
-
class StoreInstanceFieldInstr : public TemplateDefinition<2> {
public:
StoreInstanceFieldInstr(const Field& field,

Powered by Google App Engine
This is Rietveld 408576698