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

Unified Diff: runtime/vm/intermediate_language.h

Issue 12440015: Remove unused context-level from LoadLocal/StoreLocal IL instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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') | no next file » | 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 19781)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2648,15 +2648,12 @@
class LoadLocalInstr : public TemplateDefinition<0> {
public:
- LoadLocalInstr(const LocalVariable& local, intptr_t context_level)
- : local_(local),
- context_level_(context_level) { }
+ explicit LoadLocalInstr(const LocalVariable& local) : local_(local) { }
DECLARE_INSTRUCTION(LoadLocal)
virtual CompileType ComputeType() const;
const LocalVariable& local() const { return local_; }
- intptr_t context_level() const { return context_level_; }
virtual void PrintOperandsTo(BufferFormatter* f) const;
@@ -2669,7 +2666,6 @@
private:
const LocalVariable& local_;
- const intptr_t context_level_;
DISALLOW_COPY_AND_ASSIGN(LoadLocalInstr);
};
@@ -2677,11 +2673,7 @@
class StoreLocalInstr : public TemplateDefinition<1> {
public:
- StoreLocalInstr(const LocalVariable& local,
- Value* value,
- intptr_t context_level)
- : local_(local),
- context_level_(context_level) {
+ StoreLocalInstr(const LocalVariable& local, Value* value) : local_(local) {
SetInputAt(0, value);
}
@@ -2690,7 +2682,6 @@
const LocalVariable& local() const { return local_; }
Value* value() const { return inputs_[0]; }
- intptr_t context_level() const { return context_level_; }
virtual void RecordAssignedVars(BitVector* assigned_vars,
intptr_t fixed_parameter_count);
@@ -2706,7 +2697,6 @@
private:
const LocalVariable& local_;
- const intptr_t context_level_;
DISALLOW_COPY_AND_ASSIGN(StoreLocalInstr);
};
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698