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

Side by Side Diff: src/ia32/frames-ia32.cc

Issue 335027: Reverted 3130-3131 since they don't work on mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/ia32/frames-ia32.h ('k') | src/ia32/macro-assembler-ia32.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 50
51 StackFrame::Type ExitFrame::GetStateForFramePointer(Address fp, State* state) { 51 StackFrame::Type ExitFrame::GetStateForFramePointer(Address fp, State* state) {
52 if (fp == 0) return NONE; 52 if (fp == 0) return NONE;
53 // Compute the stack pointer. 53 // Compute the stack pointer.
54 Address sp = Memory::Address_at(fp + ExitFrameConstants::kSPOffset); 54 Address sp = Memory::Address_at(fp + ExitFrameConstants::kSPOffset);
55 // Fill in the state. 55 // Fill in the state.
56 state->fp = fp; 56 state->fp = fp;
57 state->sp = sp; 57 state->sp = sp;
58 state->pc_address = reinterpret_cast<Address*>(sp - 1 * kPointerSize); 58 state->pc_address = reinterpret_cast<Address*>(sp - 1 * kPointerSize);
59 return EXIT; 59 // Determine frame type.
60 if (Memory::Address_at(fp + ExitFrameConstants::kDebugMarkOffset) != 0) {
61 return EXIT_DEBUG;
62 } else {
63 return EXIT;
64 }
60 } 65 }
61 66
62 67
63 void ExitFrame::Iterate(ObjectVisitor* v) const { 68 void ExitFrame::Iterate(ObjectVisitor* v) const {
64 // Exit frames on IA-32 do not contain any pointers. The arguments 69 // Exit frames on IA-32 do not contain any pointers. The arguments
65 // are traversed as part of the expression stack of the calling 70 // are traversed as part of the expression stack of the calling
66 // frame. 71 // frame.
67 } 72 }
68 73
69 74
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 107
103 108
104 Address InternalFrame::GetCallerStackPointer() const { 109 Address InternalFrame::GetCallerStackPointer() const {
105 // Internal frames have no arguments. The stack pointer of the 110 // Internal frames have no arguments. The stack pointer of the
106 // caller is at a fixed offset from the frame pointer. 111 // caller is at a fixed offset from the frame pointer.
107 return fp() + StandardFrameConstants::kCallerSPOffset; 112 return fp() + StandardFrameConstants::kCallerSPOffset;
108 } 113 }
109 114
110 115
111 } } // namespace v8::internal 116 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/frames-ia32.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698