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

Side by Side Diff: src/frames-inl.h

Issue 118500: Get rid of the notion of "parameter pointer" that no longer exists in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/frames.cc ('k') | src/ia32/codegen-ia32.cc » ('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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Memory::Object_at(GetExpressionAddress(index)) = value; 103 Memory::Object_at(GetExpressionAddress(index)) = value;
104 } 104 }
105 105
106 106
107 inline Object* StandardFrame::context() const { 107 inline Object* StandardFrame::context() const {
108 const int offset = StandardFrameConstants::kContextOffset; 108 const int offset = StandardFrameConstants::kContextOffset;
109 return Memory::Object_at(fp() + offset); 109 return Memory::Object_at(fp() + offset);
110 } 110 }
111 111
112 112
113 inline Address StandardFrame::caller_sp() const {
114 return pp();
115 }
116
117
118 inline Address StandardFrame::caller_fp() const { 113 inline Address StandardFrame::caller_fp() const {
119 return Memory::Address_at(fp() + StandardFrameConstants::kCallerFPOffset); 114 return Memory::Address_at(fp() + StandardFrameConstants::kCallerFPOffset);
120 } 115 }
121 116
122 117
123 inline Address StandardFrame::caller_pc() const { 118 inline Address StandardFrame::caller_pc() const {
124 return Memory::Address_at(ComputePCAddress(fp())); 119 return Memory::Address_at(ComputePCAddress(fp()));
125 } 120 }
126 121
127 122
(...skipping 10 matching lines...) Expand all
138 133
139 inline bool StandardFrame::IsConstructFrame(Address fp) { 134 inline bool StandardFrame::IsConstructFrame(Address fp) {
140 Object* marker = 135 Object* marker =
141 Memory::Object_at(fp + StandardFrameConstants::kMarkerOffset); 136 Memory::Object_at(fp + StandardFrameConstants::kMarkerOffset);
142 return marker == Smi::FromInt(CONSTRUCT); 137 return marker == Smi::FromInt(CONSTRUCT);
143 } 138 }
144 139
145 140
146 inline Object* JavaScriptFrame::receiver() const { 141 inline Object* JavaScriptFrame::receiver() const {
147 const int offset = JavaScriptFrameConstants::kReceiverOffset; 142 const int offset = JavaScriptFrameConstants::kReceiverOffset;
148 return Memory::Object_at(pp() + offset); 143 return Memory::Object_at(caller_sp() + offset);
149 } 144 }
150 145
151 146
152 inline void JavaScriptFrame::set_receiver(Object* value) { 147 inline void JavaScriptFrame::set_receiver(Object* value) {
153 const int offset = JavaScriptFrameConstants::kReceiverOffset; 148 const int offset = JavaScriptFrameConstants::kReceiverOffset;
154 Memory::Object_at(pp() + offset) = value; 149 Memory::Object_at(caller_sp() + offset) = value;
155 } 150 }
156 151
157 152
158 inline bool JavaScriptFrame::has_adapted_arguments() const { 153 inline bool JavaScriptFrame::has_adapted_arguments() const {
159 return IsArgumentsAdaptorFrame(caller_fp()); 154 return IsArgumentsAdaptorFrame(caller_fp());
160 } 155 }
161 156
162 157
163 inline Object* JavaScriptFrame::function() const { 158 inline Object* JavaScriptFrame::function() const {
164 Object* result = function_slot_object(); 159 Object* result = function_slot_object();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 template<typename Iterator> 203 template<typename Iterator>
209 void JavaScriptFrameIteratorTemp<Iterator>::Reset() { 204 void JavaScriptFrameIteratorTemp<Iterator>::Reset() {
210 iterator_.Reset(); 205 iterator_.Reset();
211 if (!done()) Advance(); 206 if (!done()) Advance();
212 } 207 }
213 208
214 209
215 } } // namespace v8::internal 210 } } // namespace v8::internal
216 211
217 #endif // V8_FRAMES_INL_H_ 212 #endif // V8_FRAMES_INL_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698