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

Side by Side Diff: src/compiler/frame.h

Issue 1696043002: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_FRAME_H_ 5 #ifndef V8_COMPILER_FRAME_H_
6 #define V8_COMPILER_FRAME_H_ 6 #define V8_COMPILER_FRAME_H_
7 7
8 #include "src/bit-vector.h" 8 #include "src/bit-vector.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // -n | | Caller 52 // -n | | Caller
53 // ... | ... | frame slots 53 // ... | ... | frame slots
54 // -2 | parameter n-1 | (slot < 0) 54 // -2 | parameter n-1 | (slot < 0)
55 // |- - - - - - - - -| | 55 // |- - - - - - - - -| |
56 // -1 | parameter n | v 56 // -1 | parameter n | v
57 // -----+-----------------+-------------------------------- 57 // -----+-----------------+--------------------------------
58 // 0 | return addr | ^ ^ 58 // 0 | return addr | ^ ^
59 // |- - - - - - - - -| | | 59 // |- - - - - - - - -| | |
60 // 1 | saved frame ptr | Fixed | 60 // 1 | saved frame ptr | Fixed |
61 // |- - - - - - - - -| Header <-- frame ptr | 61 // |- - - - - - - - -| Header <-- frame ptr |
62 // 2 | Context | | | 62 // 2 | Marker/Context | | |
63 // |- - - - - - - - -| | | 63 // |- - - - - - - - -| | |
64 // 3 |JSFunction/Marker| v | 64 // 3 | [JSFunction] | v |
65 // +-----------------+---- | 65 // +-----------------+---- |
66 // 4 | spill 1 | ^ Callee 66 // 4 | spill 1 | ^ Callee
67 // |- - - - - - - - -| | frame slots 67 // |- - - - - - - - -| | frame slots
68 // ... | ... | Spill slots (slot >= 0) 68 // ... | ... | Spill slots (slot >= 0)
69 // |- - - - - - - - -| | | 69 // |- - - - - - - - -| | |
70 // m+3 | spill m | v | 70 // m+3 | spill m | v |
71 // +-----------------+---- | 71 // +-----------------+---- |
72 // m+4 | callee-saved 1 | ^ | 72 // m+4 | callee-saved 1 | ^ |
73 // |- - - - - - - - -| | | 73 // |- - - - - - - - -| | |
74 // | ... | Callee-saved | 74 // | ... | Callee-saved |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 private: 229 private:
230 Frame* const frame_; 230 Frame* const frame_;
231 bool access_frame_with_fp_; 231 bool access_frame_with_fp_;
232 int sp_delta_; 232 int sp_delta_;
233 }; 233 };
234 } // namespace compiler 234 } // namespace compiler
235 } // namespace internal 235 } // namespace internal
236 } // namespace v8 236 } // namespace v8
237 237
238 #endif // V8_COMPILER_FRAME_H_ 238 #endif // V8_COMPILER_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ia32/code-generator-ia32.cc » ('j') | src/compiler/ia32/code-generator-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698