OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "ast.h" | 7 #include "ast.h" |
8 #include "deoptimizer.h" | 8 #include "deoptimizer.h" |
9 #include "frames-inl.h" | 9 #include "frames-inl.h" |
10 #include "full-codegen.h" | 10 #include "full-codegen.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 #endif | 443 #endif |
444 | 444 |
445 | 445 |
446 StackFrame::Type StackFrame::GetCallerState(State* state) const { | 446 StackFrame::Type StackFrame::GetCallerState(State* state) const { |
447 ComputeCallerState(state); | 447 ComputeCallerState(state); |
448 return ComputeType(iterator_, state); | 448 return ComputeType(iterator_, state); |
449 } | 449 } |
450 | 450 |
451 | 451 |
452 Address StackFrame::UnpaddedFP() const { | 452 Address StackFrame::UnpaddedFP() const { |
453 #if V8_TARGET_ARCH_IA32 | 453 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
454 if (!is_optimized()) return fp(); | 454 if (!is_optimized()) return fp(); |
455 int32_t alignment_state = Memory::int32_at( | 455 int32_t alignment_state = Memory::int32_at( |
456 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); | 456 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); |
457 | 457 |
458 return (alignment_state == kAlignmentPaddingPushed) ? | 458 return (alignment_state == kAlignmentPaddingPushed) ? |
459 (fp() + kPointerSize) : fp(); | 459 (fp() + kPointerSize) : fp(); |
460 #else | 460 #else |
461 return fp(); | 461 return fp(); |
462 #endif | 462 #endif |
463 } | 463 } |
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 ZoneList<StackFrame*> list(10, zone); | 1616 ZoneList<StackFrame*> list(10, zone); |
1617 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1617 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1618 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1618 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1619 list.Add(frame, zone); | 1619 list.Add(frame, zone); |
1620 } | 1620 } |
1621 return list.ToVector(); | 1621 return list.ToVector(); |
1622 } | 1622 } |
1623 | 1623 |
1624 | 1624 |
1625 } } // namespace v8::internal | 1625 } } // namespace v8::internal |
OLD | NEW |