| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 #endif | 452 #endif |
| 453 | 453 |
| 454 | 454 |
| 455 StackFrame::Type StackFrame::GetCallerState(State* state) const { | 455 StackFrame::Type StackFrame::GetCallerState(State* state) const { |
| 456 ComputeCallerState(state); | 456 ComputeCallerState(state); |
| 457 return ComputeType(iterator_, state); | 457 return ComputeType(iterator_, state); |
| 458 } | 458 } |
| 459 | 459 |
| 460 | 460 |
| 461 Address StackFrame::UnpaddedFP() const { | 461 Address StackFrame::UnpaddedFP() const { |
| 462 #if defined(V8_TARGET_ARCH_IA32) | 462 #if V8_TARGET_ARCH_IA32 |
| 463 if (!is_optimized()) return fp(); | 463 if (!is_optimized()) return fp(); |
| 464 int32_t alignment_state = Memory::int32_at( | 464 int32_t alignment_state = Memory::int32_at( |
| 465 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); | 465 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); |
| 466 | 466 |
| 467 return (alignment_state == kAlignmentPaddingPushed) ? | 467 return (alignment_state == kAlignmentPaddingPushed) ? |
| 468 (fp() + kPointerSize) : fp(); | 468 (fp() + kPointerSize) : fp(); |
| 469 #else | 469 #else |
| 470 return fp(); | 470 return fp(); |
| 471 #endif | 471 #endif |
| 472 } | 472 } |
| (...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 ZoneList<StackFrame*> list(10, zone); | 1621 ZoneList<StackFrame*> list(10, zone); |
| 1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
| 1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
| 1624 list.Add(frame, zone); | 1624 list.Add(frame, zone); |
| 1625 } | 1625 } |
| 1626 return list.ToVector(); | 1626 return list.ToVector(); |
| 1627 } | 1627 } |
| 1628 | 1628 |
| 1629 | 1629 |
| 1630 } } // namespace v8::internal | 1630 } } // namespace v8::internal |
| OLD | NEW |