OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 FrameElement(Type type, Register reg, SyncFlag is_synced) { | 158 FrameElement(Type type, Register reg, SyncFlag is_synced) { |
159 Initialize(type, reg, is_synced); | 159 Initialize(type, reg, is_synced); |
160 } | 160 } |
161 | 161 |
162 // Used to construct constant elements. | 162 // Used to construct constant elements. |
163 inline FrameElement(Handle<Object> value, SyncFlag is_synced); | 163 inline FrameElement(Handle<Object> value, SyncFlag is_synced); |
164 | 164 |
165 // Used to initialize invalid, memory, and register elements. | 165 // Used to initialize invalid, memory, and register elements. |
166 inline void Initialize(Type type, Register reg, SyncFlag is_synced); | 166 inline void Initialize(Type type, Register reg, SyncFlag is_synced); |
167 | 167 |
| 168 void set_index(int new_index) { |
| 169 ASSERT(is_copy()); |
| 170 data_.index_ = new_index; |
| 171 } |
| 172 |
168 friend class VirtualFrame; | 173 friend class VirtualFrame; |
169 }; | 174 }; |
170 | 175 |
171 | 176 |
172 } } // namespace v8::internal | 177 } } // namespace v8::internal |
173 | 178 |
174 #ifdef ARM | 179 #ifdef ARM |
175 #include "virtual-frame-arm.h" | 180 #include "virtual-frame-arm.h" |
176 #else // ia32 | 181 #else // ia32 |
177 #include "virtual-frame-ia32.h" | 182 #include "virtual-frame-ia32.h" |
(...skipping 14 matching lines...) Expand all Loading... |
192 type_ = TypeField::encode(type) | 197 type_ = TypeField::encode(type) |
193 | IsCopiedField::encode(false) | 198 | IsCopiedField::encode(false) |
194 | SyncField::encode(is_synced); | 199 | SyncField::encode(is_synced); |
195 data_.reg_ = reg; | 200 data_.reg_ = reg; |
196 } | 201 } |
197 | 202 |
198 | 203 |
199 } } // namespace v8::internal | 204 } } // namespace v8::internal |
200 | 205 |
201 #endif // V8_VIRTUAL_FRAME_H_ | 206 #endif // V8_VIRTUAL_FRAME_H_ |
OLD | NEW |