Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: src/frames.cc

Issue 293743005: Introduce x87 port (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codegen.h ('k') | src/frames-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698