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

Unified Diff: vm/intermediate_language.h

Issue 10693048: Revert r9253 because of dartium test failures (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | « vm/il_printer.cc ('k') | vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language.h
===================================================================
--- vm/intermediate_language.h (revision 9254)
+++ vm/intermediate_language.h (working copy)
@@ -1707,7 +1707,6 @@
M(Throw) \
M(ReThrow) \
M(Branch) \
- M(Goto) \
M(ParallelMove)
@@ -1819,7 +1818,12 @@
// Returns structure describing location constraints required
// to emit native code for this instruction.
- virtual LocationSummary* locs() = 0;
+ virtual LocationSummary* locs() {
+ // TODO(vegorov): This should be pure virtual method.
+ // However we are temporary using NULL for instructions that
+ // were not converted to the location based code generation yet.
+ return NULL;
+ }
virtual void EmitNativeCode(FlowGraphCompiler* compiler) {
UNIMPLEMENTED();
@@ -1886,7 +1890,7 @@
dominated_blocks_.Add(block);
}
- inline Instruction* last_instruction() const;
+ Instruction* last_instruction() const { return last_instruction_; }
void set_last_instruction(Instruction* instr) { last_instruction_ = instr; }
virtual void DiscoverBlocks(
@@ -1897,8 +1901,6 @@
GrowableArray<BitVector*>* assigned_vars,
intptr_t variable_count);
- virtual LocationSummary* locs() { return NULL; }
-
protected:
BlockEntryInstr()
: preorder_number_(-1),
@@ -1991,7 +1993,6 @@
return successor_;
}
virtual void SetSuccessor(Instruction* instr) {
- ASSERT(instr == NULL || !instr->IsBlockEntry());
successor_ = instr;
}
@@ -2046,7 +2047,6 @@
return successor_;
}
virtual void SetSuccessor(Instruction* instr) {
- ASSERT(instr == NULL || !instr->IsBlockEntry());
successor_ = instr;
}
@@ -2088,7 +2088,6 @@
}
virtual void SetSuccessor(Instruction* instr) {
- ASSERT(instr == NULL || !instr->IsBlockEntry());
successor_ = instr;
}
@@ -2150,7 +2149,6 @@
}
virtual void SetSuccessor(Instruction* instr) {
- ASSERT(instr == NULL || !instr->IsBlockEntry());
successor_ = instr;
}
@@ -2188,8 +2186,6 @@
virtual Instruction* StraightLineSuccessor() const { return NULL; }
virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
- virtual LocationSummary* locs() { return NULL; }
-
private:
GrowableArray<Value*> inputs_;
@@ -2370,27 +2366,6 @@
};
-class GotoInstr : public Instruction {
- public:
- explicit GotoInstr(BlockEntryInstr* successor)
- : successor_(successor) {
- ASSERT(successor != NULL);
- }
-
- DECLARE_INSTRUCTION(Goto)
-
- virtual Instruction* StraightLineSuccessor() const { return successor_; }
- virtual void SetSuccessor(Instruction* instr) {
- successor_ = instr->AsBlockEntry();
- }
-
- virtual LocationSummary* locs() { return NULL; }
-
- private:
- BlockEntryInstr* successor_;
-};
-
-
class MoveOperands : public ValueObject {
public:
MoveOperands(Location dest, Location src) : dest_(dest), src_(src) { }
@@ -2425,17 +2400,6 @@
#undef DECLARE_INSTRUCTION
-// Definition of inline functions.
-Instruction* BlockEntryInstr::last_instruction() const {
- ASSERT(last_instruction_->IsGraphEntry() ||
- last_instruction_->IsGoto() ||
- last_instruction_->IsReturn() ||
- last_instruction_->IsBranch() ||
- last_instruction_->IsThrow() ||
- last_instruction_->IsReThrow());
- return last_instruction_;
-}
-
// Visitor base class to visit each instruction and computation in a flow
// graph as defined by a reversed list of basic blocks.
class FlowGraphVisitor : public ValueObject {
« no previous file with comments | « vm/il_printer.cc ('k') | vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698