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

Side by Side Diff: src/frames.h

Issue 10532066: Reimplement dynamic frame alignment for frames that are compiled via OSR or have more than 2 double… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: don't align frames of recursive functions Created 8 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/deoptimizer.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 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 bool is_java_script() const { 199 bool is_java_script() const {
200 Type type = this->type(); 200 Type type = this->type();
201 return (type == JAVA_SCRIPT) || (type == OPTIMIZED); 201 return (type == JAVA_SCRIPT) || (type == OPTIMIZED);
202 } 202 }
203 203
204 // Accessors. 204 // Accessors.
205 Address sp() const { return state_.sp; } 205 Address sp() const { return state_.sp; }
206 Address fp() const { return state_.fp; } 206 Address fp() const { return state_.fp; }
207 Address caller_sp() const { return GetCallerStackPointer(); } 207 Address caller_sp() const { return GetCallerStackPointer(); }
208 208
209 // If this frame is optimized and was dynamically aligned return its old
210 // unaligned frame pointer. When the frame is deoptimized its FP will shift
211 // up one word and become unaligned.
212 Address UnpaddedFP() const;
213
209 Address pc() const { return *pc_address(); } 214 Address pc() const { return *pc_address(); }
210 void set_pc(Address pc) { *pc_address() = pc; } 215 void set_pc(Address pc) { *pc_address() = pc; }
211 216
212 virtual void SetCallerFp(Address caller_fp) = 0; 217 virtual void SetCallerFp(Address caller_fp) = 0;
213 218
214 // Manually changes value of fp in this object. 219 // Manually changes value of fp in this object.
215 void UpdateFp(Address fp) { state_.fp = fp; } 220 void UpdateFp(Address fp) { state_.fp = fp; }
216 221
217 Address* pc_address() const { return state_.pc_address; } 222 Address* pc_address() const { return state_.pc_address; }
218 223
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 }; 891 };
887 892
888 893
889 // Reads all frames on the current stack and copies them into the current 894 // Reads all frames on the current stack and copies them into the current
890 // zone memory. 895 // zone memory.
891 Vector<StackFrame*> CreateStackMap(Zone* zone); 896 Vector<StackFrame*> CreateStackMap(Zone* zone);
892 897
893 } } // namespace v8::internal 898 } } // namespace v8::internal
894 899
895 #endif // V8_FRAMES_H_ 900 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698