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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 { | 472 Address StackFrame::UnpaddedFP() const { |
473 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_HOST_ARCH_IA32) | 473 #if defined(V8_TARGET_ARCH_IA32) |
474 if (!is_optimized()) return fp(); | 474 if (!is_optimized()) return fp(); |
475 int32_t alignment_state = Memory::int32_at( | 475 int32_t alignment_state = Memory::int32_at( |
476 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); | 476 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset); |
477 | 477 |
478 return (alignment_state == kAlignmentPaddingPushed) ? | 478 return (alignment_state == kAlignmentPaddingPushed) ? |
479 (fp() + kPointerSize) : fp(); | 479 (fp() + kPointerSize) : fp(); |
480 #else | 480 #else |
481 return fp(); | 481 return fp(); |
482 #endif | 482 #endif |
483 } | 483 } |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 ZoneList<StackFrame*> list(10, zone); | 1428 ZoneList<StackFrame*> list(10, zone); |
1429 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1429 for (StackFrameIterator it; !it.done(); it.Advance()) { |
1430 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1430 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1431 list.Add(frame, zone); | 1431 list.Add(frame, zone); |
1432 } | 1432 } |
1433 return list.ToVector(); | 1433 return list.ToVector(); |
1434 } | 1434 } |
1435 | 1435 |
1436 | 1436 |
1437 } } // namespace v8::internal | 1437 } } // namespace v8::internal |
OLD | NEW |