| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| old mode 100644
|
| new mode 100755
|
| index 53f510849ec0cd3ebb13e4397c1477637d7eebd7..00eabc4044ef6aaf72a1d14350cc263f27ba3953
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -43,19 +43,8 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| -static ReturnAddressLocationResolver return_address_location_resolver = NULL;
|
| -
|
| -
|
| -// Resolves pc_address through the resolution address function if one is set.
|
| -static inline Address* ResolveReturnAddressLocation(Address* pc_address) {
|
| - if (return_address_location_resolver == NULL) {
|
| - return pc_address;
|
| - } else {
|
| - return reinterpret_cast<Address*>(
|
| - return_address_location_resolver(
|
| - reinterpret_cast<uintptr_t>(pc_address)));
|
| - }
|
| -}
|
| +ReturnAddressLocationResolver
|
| + StackFrame::return_address_location_resolver_ = NULL;
|
|
|
|
|
| // Iterator that supports traversing the stack handlers of a
|
| @@ -164,7 +153,7 @@ void StackFrameIterator::Reset() {
|
| ASSERT(fp_ != NULL);
|
| state.fp = fp_;
|
| state.sp = sp_;
|
| - state.pc_address = ResolveReturnAddressLocation(
|
| + state.pc_address = StackFrame::ResolveReturnAddressLocation(
|
| reinterpret_cast<Address*>(StandardFrame::ComputePCAddress(fp_)));
|
| type = StackFrame::ComputeType(isolate(), &state);
|
| }
|
| @@ -420,8 +409,8 @@ void StackFrame::IteratePc(ObjectVisitor* v,
|
|
|
| void StackFrame::SetReturnAddressLocationResolver(
|
| ReturnAddressLocationResolver resolver) {
|
| - ASSERT(return_address_location_resolver == NULL);
|
| - return_address_location_resolver = resolver;
|
| + ASSERT(return_address_location_resolver_ == NULL);
|
| + return_address_location_resolver_ = resolver;
|
| }
|
|
|
|
|
| @@ -513,7 +502,7 @@ void ExitFrame::ComputeCallerState(State* state) const {
|
| // Set up the caller state.
|
| state->sp = caller_sp();
|
| state->fp = Memory::Address_at(fp() + ExitFrameConstants::kCallerFPOffset);
|
| - state->pc_address = ResolveReturnAddressLocation(
|
| + state->pc_address = StackFrame::ResolveReturnAddressLocation(
|
| reinterpret_cast<Address*>(fp() + ExitFrameConstants::kCallerPCOffset));
|
| }
|
|
|
|
|