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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 } | 462 } |
463 | 463 |
464 | 464 |
465 | 465 |
466 StackFrame::Type StackFrame::GetCallerState(State* state) const { | 466 StackFrame::Type StackFrame::GetCallerState(State* state) const { |
467 ComputeCallerState(state); | 467 ComputeCallerState(state); |
468 return ComputeType(isolate(), state); | 468 return ComputeType(isolate(), state); |
469 } | 469 } |
470 | 470 |
471 | 471 |
| 472 Address StackFrame::UnpaddedFP() const { |
| 473 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_HOST_ARCH_IA32) |
| 474 if (!is_optimized()) return fp(); |
| 475 int32_t alignment_state = Memory::int32_at( |
| 476 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); |
| 477 |
| 478 return (alignment_state == kAlignmentPaddingPushed) ? |
| 479 (fp() + kPointerSize) : fp(); |
| 480 #else |
| 481 return fp(); |
| 482 #endif |
| 483 } |
| 484 |
| 485 |
472 Code* EntryFrame::unchecked_code() const { | 486 Code* EntryFrame::unchecked_code() const { |
473 return HEAP->raw_unchecked_js_entry_code(); | 487 return HEAP->raw_unchecked_js_entry_code(); |
474 } | 488 } |
475 | 489 |
476 | 490 |
477 void EntryFrame::ComputeCallerState(State* state) const { | 491 void EntryFrame::ComputeCallerState(State* state) const { |
478 GetCallerState(state); | 492 GetCallerState(state); |
479 } | 493 } |
480 | 494 |
481 | 495 |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 ZoneList<StackFrame*> list(10, zone); | 1428 ZoneList<StackFrame*> list(10, zone); |
1415 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1429 for (StackFrameIterator it; !it.done(); it.Advance()) { |
1416 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1430 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1417 list.Add(frame, zone); | 1431 list.Add(frame, zone); |
1418 } | 1432 } |
1419 return list.ToVector(); | 1433 return list.ToVector(); |
1420 } | 1434 } |
1421 | 1435 |
1422 | 1436 |
1423 } } // namespace v8::internal | 1437 } } // namespace v8::internal |
OLD | NEW |