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

Side by Side Diff: src/frames.cc

Issue 18037002: Clean up the usage of V8_TARGET_ARCH_${arch} and V8_HOST_ARCH_${arch} (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/flags.cc ('k') | src/full-codegen.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 // 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
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
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
OLDNEW
« no previous file with comments | « src/flags.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698