Comment cmnt(masm_, "[ DebuggerStatament");
CodeForStatementPosition(node);
#ifdef ENABLE_DEBUGGER_SUPPORT
- DebugerStatementStub ces;
+ DebuggerStatementStub ces;
frame_->CallStub(&ces, 0);
#endif
// Ignore the return value.
int CEntryStub::MinorKey() {
ASSERT(result_size_ <= 2);
#ifdef _WIN64
- const indirect_result = result_size_ > 1;
+ return ExitFrameModeBits::encode(mode_)
+ | IndirectResultBits::encode(result_size_ > 1);
#else
- const bool indirect_result = false;
+ return ExitFrameModeBits::encode(mode_);
#endif
-
- return ExitFrameModeBits::encode(mode_)
- | IndirectResultBits::encode(indirect_result > 1);
}
}
-void DebugerStatementStub::Generate(MacroAssembler* masm) {
+void DebuggerStatementStub::Generate(MacroAssembler* masm) {
Runtime::Function* f = Runtime::FunctionForId(Runtime::kDebugBreak);
masm->TailCallRuntime(ExternalReference(f), 0, f->result_size);
}
UncatchableExceptionType type);
// Number of pointers/values returned.
- int const result_size_;
- ExitFrame::Mode const mode_;
+ const int result_size_;
+ const ExitFrame::Mode mode_;
// Minor key encoding
class ExitFrameModeBits: public BitField<ExitFrame::Mode, 0, 1> {};
};
-// Mark the debugger statemet to be recognized by debugger (by the MajorKey)
-class DebugerStatementStub : public CodeStub {
+// Mark the debugger statement to be recognized by debugger (by the MajorKey)
+class DebuggerStatementStub : public CodeStub {
public:
- DebugerStatementStub() { }
+ DebuggerStatementStub() { }
void Generate(MacroAssembler* masm);
Major MajorKey() { return DebuggerStatement; }
int MinorKey() { return 0; }
- const char* GetName() { return "DebugerStatementStub"; }
+ const char* GetName() { return "DebuggerStatementStub"; }
};
Comment cmnt(masm_, "[ DebuggerStatement");
SetStatementPosition(stmt);
- DebugerStatementStub ces;
+ DebuggerStatementStub ces;
__ CallStub(&ces);
// Ignore the return value.
#endif
void Heap::CreateCEntryDebugBreakStub() {
- DebugerStatementStub stub;
+ DebuggerStatementStub stub;
set_debugger_statement_code(*stub.GetCode());
}
// { CEntryStub stub;
// c_entry_code_ = *stub.GetCode();
// }
- // { DebugerStatementStub stub;
+ // { DebuggerStatementStub stub;
// debugger_statement_code_ = *stub.GetCode();
// }
// To workaround the problem, make separate functions without inlining.
// Spill everything, even constants, to the frame.
frame_->SpillAll();
- DebugerStatementStub ces;
+ DebuggerStatementStub ces;
frame_->CallStub(&ces, 0);
// Ignore the return value.
#endif
// Spill everything, even constants, to the frame.
frame_->SpillAll();
- DebugerStatementStub ces;
+ DebuggerStatementStub ces;
frame_->CallStub(&ces, 0);
// Ignore the return value.
#endif