Commit 24e0d7f8 authored by haitao.feng@intel.com's avatar haitao.feng@intel.com

Addressed danno's comments

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15823 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a9253143
......@@ -1265,8 +1265,8 @@ void Deoptimizer::DoComputeAccessorStubFrame(TranslationIterator* iterator,
// MacroAssembler::EnterFrame). For a setter stub frame we need one additional
// entry for the implicit return value, see
// StoreStubCompiler::CompileStoreViaSetter.
unsigned fixed_frame_entries = (kPCOnStackSize/kPointerSize) +
(kFPOnStackSize/kPointerSize) + 3 +
unsigned fixed_frame_entries = (kPCOnStackSize / kPointerSize) +
(kFPOnStackSize / kPointerSize) + 3 +
(is_setter_stub_frame ? 1 : 0);
unsigned fixed_frame_size = fixed_frame_entries * kPointerSize;
unsigned output_frame_size = height_in_bytes + fixed_frame_size;
......
......@@ -473,7 +473,6 @@ class FrameDescription {
public:
FrameDescription(uint32_t frame_size,
JSFunction* function);
virtual ~FrameDescription() { }
void* operator new(size_t size, uint32_t frame_size) {
// Subtracts kPointerSize, as the member frame_content_ already supplies
......@@ -511,9 +510,9 @@ class FrameDescription {
*GetFrameSlotPointer(offset) = value;
}
virtual void SetCallerPc(unsigned offset, intptr_t value);
void SetCallerPc(unsigned offset, intptr_t value);
virtual void SetCallerFp(unsigned offset, intptr_t value);
void SetCallerFp(unsigned offset, intptr_t value);
intptr_t GetRegister(unsigned n) const {
ASSERT(n < ARRAY_SIZE(registers_));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment