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

Side by Side Diff: src/frames.h

Issue 1930: Adapt to new calling convention on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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/disasm-arm.cc ('k') | src/frames.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Printing support. 157 // Printing support.
158 enum PrintMode { OVERVIEW, DETAILS }; 158 enum PrintMode { OVERVIEW, DETAILS };
159 virtual void Print(StringStream* accumulator, 159 virtual void Print(StringStream* accumulator,
160 PrintMode mode, 160 PrintMode mode,
161 int index) const { } 161 int index) const { }
162 162
163 protected: 163 protected:
164 struct State { 164 struct State {
165 Address sp; 165 Address sp;
166 Address fp; 166 Address fp;
167 #ifdef USE_OLD_CALLING_CONVENTIONS
168 Address pp;
169 #endif
170 Address* pc_address; 167 Address* pc_address;
171 }; 168 };
172 169
173 explicit StackFrame(StackFrameIterator* iterator) : iterator_(iterator) { } 170 explicit StackFrame(StackFrameIterator* iterator) : iterator_(iterator) { }
174 virtual ~StackFrame() { } 171 virtual ~StackFrame() { }
175 172
176 // Compute the stack pointer for the calling frame. 173 // Compute the stack pointer for the calling frame.
177 virtual Address GetCallerStackPointer() const = 0; 174 virtual Address GetCallerStackPointer() const = 0;
178 175
179 // Printing support. 176 // Printing support.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 328
332 protected: 329 protected:
333 explicit StandardFrame(StackFrameIterator* iterator) 330 explicit StandardFrame(StackFrameIterator* iterator)
334 : StackFrame(iterator) { } 331 : StackFrame(iterator) { }
335 332
336 virtual Type GetCallerState(State* state) const; 333 virtual Type GetCallerState(State* state) const;
337 334
338 // Accessors. 335 // Accessors.
339 inline Address caller_sp() const; 336 inline Address caller_sp() const;
340 inline Address caller_fp() const; 337 inline Address caller_fp() const;
341 #ifdef USE_OLD_CALLING_CONVENTIONS
342 inline Address caller_pp() const;
343 #endif
344 inline Address caller_pc() const; 338 inline Address caller_pc() const;
345 339
346 // Computes the address of the PC field in the standard frame given 340 // Computes the address of the PC field in the standard frame given
347 // by the provided frame pointer. 341 // by the provided frame pointer.
348 static inline Address ComputePCAddress(Address fp); 342 static inline Address ComputePCAddress(Address fp);
349 343
350 // Iterate over expression stack including stack handlers, locals, 344 // Iterate over expression stack including stack handlers, locals,
351 // and parts of the fixed part including context and code fields. 345 // and parts of the fixed part including context and code fields.
352 void IterateExpressions(ObjectVisitor* v) const; 346 void IterateExpressions(ObjectVisitor* v) const;
353 347
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 JavaScriptFrame* FindJavaScriptFrame(int n); 567 JavaScriptFrame* FindJavaScriptFrame(int n);
574 568
575 private: 569 private:
576 StackFrameIterator iterator_; 570 StackFrameIterator iterator_;
577 }; 571 };
578 572
579 573
580 } } // namespace v8::internal 574 } } // namespace v8::internal
581 575
582 #endif // V8_FRAMES_H_ 576 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/disasm-arm.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698