| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 Handle<Object> handle() const { | 117 Handle<Object> handle() const { |
| 118 ASSERT(is_constant()); | 118 ASSERT(is_constant()); |
| 119 return Handle<Object>(data_.handle_); | 119 return Handle<Object>(data_.handle_); |
| 120 } | 120 } |
| 121 | 121 |
| 122 int index() const { | 122 int index() const { |
| 123 ASSERT(is_copy()); | 123 ASSERT(is_copy()); |
| 124 return data_.index_; | 124 return data_.index_; |
| 125 } | 125 } |
| 126 | 126 |
| 127 #ifdef DEBUG | |
| 128 bool Equals(FrameElement other); | 127 bool Equals(FrameElement other); |
| 129 #endif | |
| 130 | 128 |
| 131 private: | 129 private: |
| 132 enum Type { | 130 enum Type { |
| 133 INVALID, | 131 INVALID, |
| 134 MEMORY, | 132 MEMORY, |
| 135 REGISTER, | 133 REGISTER, |
| 136 CONSTANT, | 134 CONSTANT, |
| 137 COPY | 135 COPY |
| 138 }; | 136 }; |
| 139 | 137 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 160 | 158 |
| 161 } } // namespace v8::internal | 159 } } // namespace v8::internal |
| 162 | 160 |
| 163 #ifdef ARM | 161 #ifdef ARM |
| 164 #include "virtual-frame-arm.h" | 162 #include "virtual-frame-arm.h" |
| 165 #else // ia32 | 163 #else // ia32 |
| 166 #include "virtual-frame-ia32.h" | 164 #include "virtual-frame-ia32.h" |
| 167 #endif | 165 #endif |
| 168 | 166 |
| 169 #endif // V8_VIRTUAL_FRAME_H_ | 167 #endif // V8_VIRTUAL_FRAME_H_ |
| OLD | NEW |