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

Unified Diff: runtime/vm/stack_frame_ia32.cc

Issue 14925005: Remove stack_frame_<arch>.cc files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stack_frame_ia32.h ('k') | runtime/vm/stack_frame_mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame_ia32.cc
===================================================================
--- runtime/vm/stack_frame_ia32.cc (revision 22469)
+++ runtime/vm/stack_frame_ia32.cc (working copy)
@@ -1,69 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#include "vm/globals.h"
-#if defined(TARGET_ARCH_IA32)
-
-#include "vm/instructions.h"
-#include "vm/isolate.h"
-#include "vm/stack_frame.h"
-
-namespace dart {
-
-// The constant kExitLinkOffsetInEntryFrame must be kept in sync with the
-// code in the InvokeDartCode stub.
-static const int kSavedContextOffsetInEntryFrame = -5 * kWordSize;
-static const int kExitLinkOffsetInEntryFrame = -4 * kWordSize;
-static const int kPcAddressOffsetFromSp = -1 * kWordSize;
-static const int kEntrypointMarkerOffsetFromFp = -1 * kWordSize;
-static const int kSpOffsetFromPreviousFp = 2 * kWordSize;
-
-
-intptr_t StackFrame::PcAddressOffsetFromSp() {
- return kPcAddressOffsetFromSp;
-}
-
-
-intptr_t StackFrame::EntrypointMarkerOffsetFromFp() {
- return kEntrypointMarkerOffsetFromFp;
-}
-
-
-uword StackFrame::GetCallerSp() const {
- return fp() + kSpOffsetFromPreviousFp;
-}
-
-
-uword StackFrame::GetCallerFp() const {
- return *(reinterpret_cast<uword*>(fp()));
-}
-
-
-intptr_t EntryFrame::ExitLinkOffset() const {
- return kExitLinkOffsetInEntryFrame;
-}
-
-
-intptr_t EntryFrame::SavedContextOffset() const {
- return kSavedContextOffsetInEntryFrame;
-}
-
-
-void StackFrameIterator::SetupLastExitFrameData() {
- Isolate* current = Isolate::Current();
- uword exit_marker = current->top_exit_frame_info();
- frames_.fp_ = exit_marker;
-}
-
-
-void StackFrameIterator::SetupNextExitFrameData() {
- uword exit_address = entry_.fp() + kExitLinkOffsetInEntryFrame;
- uword exit_marker = *reinterpret_cast<uword*>(exit_address);
- frames_.fp_ = exit_marker;
- frames_.sp_ = 0;
-}
-
-} // namespace dart
-
-#endif // defined TARGET_ARCH_IA32
« no previous file with comments | « runtime/vm/stack_frame_ia32.h ('k') | runtime/vm/stack_frame_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698