| Index: src/arm/codegen-arm.cc
|
| ===================================================================
|
| --- src/arm/codegen-arm.cc (revision 2643)
|
| +++ src/arm/codegen-arm.cc (working copy)
|
| @@ -133,8 +133,7 @@
|
| allocator_(NULL),
|
| cc_reg_(al),
|
| state_(NULL),
|
| - function_return_is_shadowed_(false),
|
| - in_spilled_code_(false) {
|
| + function_return_is_shadowed_(false) {
|
| }
|
|
|
|
|
| @@ -156,7 +155,6 @@
|
| ASSERT(frame_ == NULL);
|
| frame_ = new VirtualFrame();
|
| cc_reg_ = al;
|
| - set_in_spilled_code(false);
|
| {
|
| CodeGenState state(this);
|
|
|
| @@ -423,22 +421,6 @@
|
| }
|
|
|
|
|
| -void CodeGenerator::LoadConditionAndSpill(Expression* expression,
|
| - TypeofState typeof_state,
|
| - JumpTarget* true_target,
|
| - JumpTarget* false_target,
|
| - bool force_control) {
|
| - ASSERT(in_spilled_code());
|
| - set_in_spilled_code(false);
|
| - LoadCondition(expression, typeof_state, true_target, false_target,
|
| - force_control);
|
| - if (frame_ != NULL) {
|
| - frame_->SpillAll();
|
| - }
|
| - set_in_spilled_code(true);
|
| -}
|
| -
|
| -
|
| // Loads a value on TOS. If it is a boolean value, the result may have been
|
| // (partially) translated into branches, or it may have set the condition
|
| // code register. If force_cc is set, the value is forced to set the
|
| @@ -450,7 +432,6 @@
|
| JumpTarget* true_target,
|
| JumpTarget* false_target,
|
| bool force_cc) {
|
| - ASSERT(!in_spilled_code());
|
| ASSERT(!has_cc());
|
| int original_height = frame_->height();
|
|
|
| @@ -484,21 +465,10 @@
|
| }
|
|
|
|
|
| -void CodeGenerator::LoadAndSpill(Expression* expression,
|
| - TypeofState typeof_state) {
|
| - ASSERT(in_spilled_code());
|
| - set_in_spilled_code(false);
|
| - Load(expression, typeof_state);
|
| - frame_->SpillAll();
|
| - set_in_spilled_code(true);
|
| -}
|
| -
|
| -
|
| void CodeGenerator::Load(Expression* x, TypeofState typeof_state) {
|
| #ifdef DEBUG
|
| int original_height = frame_->height();
|
| #endif
|
| - ASSERT(!in_spilled_code());
|
| JumpTarget true_target;
|
| JumpTarget false_target;
|
| LoadCondition(x, typeof_state, &true_target, &false_target, false);
|
| @@ -1146,28 +1116,6 @@
|
| }
|
|
|
|
|
| -void CodeGenerator::VisitAndSpill(Statement* statement) {
|
| - ASSERT(in_spilled_code());
|
| - set_in_spilled_code(false);
|
| - Visit(statement);
|
| - if (frame_ != NULL) {
|
| - frame_->SpillAll();
|
| - }
|
| - set_in_spilled_code(true);
|
| -}
|
| -
|
| -
|
| -void CodeGenerator::VisitStatementsAndSpill(ZoneList<Statement*>* statements) {
|
| - ASSERT(in_spilled_code());
|
| - set_in_spilled_code(false);
|
| - VisitStatements(statements);
|
| - if (frame_ != NULL) {
|
| - frame_->SpillAll();
|
| - }
|
| - set_in_spilled_code(true);
|
| -}
|
| -
|
| -
|
| void CodeGenerator::VisitStatements(ZoneList<Statement*>* statements) {
|
| #ifdef DEBUG
|
| int original_height = frame_->height();
|
| @@ -1764,7 +1712,6 @@
|
| #ifdef DEBUG
|
| int original_height = frame_->height();
|
| #endif
|
| - ASSERT(!in_spilled_code());
|
| VirtualFrame::SpilledScope spilled_scope;
|
| Comment cmnt(masm_, "[ ForInStatement");
|
| CodeForStatementPosition(node);
|
| @@ -2822,7 +2769,6 @@
|
| #ifdef DEBUG
|
| int original_height = frame_->height();
|
| #endif
|
| - ASSERT(!in_spilled_code());
|
| VirtualFrame::SpilledScope spilled_scope;
|
| // Call runtime routine to allocate the catch extension object and
|
| // assign the exception value to the catch variable.
|
| @@ -4158,17 +4104,7 @@
|
| }
|
|
|
|
|
| -void Reference::GetValueAndSpill(TypeofState typeof_state) {
|
| - ASSERT(cgen_->in_spilled_code());
|
| - cgen_->set_in_spilled_code(false);
|
| - GetValue(typeof_state);
|
| - cgen_->frame()->SpillAll();
|
| - cgen_->set_in_spilled_code(true);
|
| -}
|
| -
|
| -
|
| void Reference::GetValue(TypeofState typeof_state) {
|
| - ASSERT(!cgen_->in_spilled_code());
|
| ASSERT(cgen_->HasValidEntryRegisters());
|
| ASSERT(!is_illegal());
|
| ASSERT(!cgen_->has_cc());
|
|
|