erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 1 | // Copyright 2012 the V8 project authors. All rights reserved. |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | #ifndef V8_LITHIUM_H_ |
| 29 | #define V8_LITHIUM_H_ |
| 30 | |
lrn@chromium.org | 1c09276 | 2011-05-09 09:42:16 +0000 | [diff] [blame] | 31 | #include "allocation.h" |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 32 | #include "hydrogen.h" |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 33 | #include "safepoint-table.h" |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 34 | |
| 35 | namespace v8 { |
| 36 | namespace internal { |
| 37 | |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 38 | #define LITHIUM_OPERAND_LIST(V) \ |
| 39 | V(ConstantOperand, CONSTANT_OPERAND) \ |
| 40 | V(StackSlot, STACK_SLOT) \ |
| 41 | V(DoubleStackSlot, DOUBLE_STACK_SLOT) \ |
| 42 | V(Register, REGISTER) \ |
| 43 | V(DoubleRegister, DOUBLE_REGISTER) |
| 44 | |
| 45 | |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 46 | class LOperand: public ZoneObject { |
| 47 | public: |
| 48 | enum Kind { |
| 49 | INVALID, |
| 50 | UNALLOCATED, |
| 51 | CONSTANT_OPERAND, |
| 52 | STACK_SLOT, |
| 53 | DOUBLE_STACK_SLOT, |
| 54 | REGISTER, |
| 55 | DOUBLE_REGISTER, |
| 56 | ARGUMENT |
| 57 | }; |
| 58 | |
| 59 | LOperand() : value_(KindField::encode(INVALID)) { } |
| 60 | |
| 61 | Kind kind() const { return KindField::decode(value_); } |
| 62 | int index() const { return static_cast<int>(value_) >> kKindFieldWidth; } |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 63 | #define LITHIUM_OPERAND_PREDICATE(name, type) \ |
| 64 | bool Is##name() const { return kind() == type; } |
| 65 | LITHIUM_OPERAND_LIST(LITHIUM_OPERAND_PREDICATE) |
| 66 | LITHIUM_OPERAND_PREDICATE(Argument, ARGUMENT) |
| 67 | LITHIUM_OPERAND_PREDICATE(Unallocated, UNALLOCATED) |
| 68 | LITHIUM_OPERAND_PREDICATE(Ignored, INVALID) |
| 69 | #undef LITHIUM_OPERAND_PREDICATE |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 70 | bool Equals(LOperand* other) const { return value_ == other->value_; } |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 71 | |
| 72 | void PrintTo(StringStream* stream); |
| 73 | void ConvertTo(Kind kind, int index) { |
| 74 | value_ = KindField::encode(kind); |
| 75 | value_ |= index << kKindFieldWidth; |
| 76 | ASSERT(this->index() == index); |
| 77 | } |
| 78 | |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 79 | // Calls SetUpCache()/TearDownCache() for each subclass. |
| 80 | static void SetUpCaches(); |
| 81 | static void TearDownCaches(); |
| 82 | |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 83 | protected: |
| 84 | static const int kKindFieldWidth = 3; |
| 85 | class KindField : public BitField<Kind, 0, kKindFieldWidth> { }; |
| 86 | |
| 87 | LOperand(Kind kind, int index) { ConvertTo(kind, index); } |
| 88 | |
| 89 | unsigned value_; |
| 90 | }; |
| 91 | |
| 92 | |
| 93 | class LUnallocated: public LOperand { |
| 94 | public: |
| 95 | enum Policy { |
| 96 | NONE, |
| 97 | ANY, |
| 98 | FIXED_REGISTER, |
| 99 | FIXED_DOUBLE_REGISTER, |
| 100 | FIXED_SLOT, |
| 101 | MUST_HAVE_REGISTER, |
| 102 | WRITABLE_REGISTER, |
yangguo@chromium.org | 659ceec | 2012-01-26 07:37:54 +0000 | [diff] [blame] | 103 | SAME_AS_FIRST_INPUT |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 104 | }; |
| 105 | |
| 106 | // Lifetime of operand inside the instruction. |
| 107 | enum Lifetime { |
| 108 | // USED_AT_START operand is guaranteed to be live only at |
| 109 | // instruction start. Register allocator is free to assign the same register |
| 110 | // to some other operand used inside instruction (i.e. temporary or |
| 111 | // output). |
| 112 | USED_AT_START, |
| 113 | |
| 114 | // USED_AT_END operand is treated as live until the end of |
| 115 | // instruction. This means that register allocator will not reuse it's |
| 116 | // register for any other operand inside instruction. |
| 117 | USED_AT_END |
| 118 | }; |
| 119 | |
| 120 | explicit LUnallocated(Policy policy) : LOperand(UNALLOCATED, 0) { |
| 121 | Initialize(policy, 0, USED_AT_END); |
| 122 | } |
| 123 | |
| 124 | LUnallocated(Policy policy, int fixed_index) : LOperand(UNALLOCATED, 0) { |
| 125 | Initialize(policy, fixed_index, USED_AT_END); |
| 126 | } |
| 127 | |
| 128 | LUnallocated(Policy policy, Lifetime lifetime) : LOperand(UNALLOCATED, 0) { |
| 129 | Initialize(policy, 0, lifetime); |
| 130 | } |
| 131 | |
| 132 | // The superclass has a KindField. Some policies have a signed fixed |
| 133 | // index in the upper bits. |
yangguo@chromium.org | 659ceec | 2012-01-26 07:37:54 +0000 | [diff] [blame] | 134 | static const int kPolicyWidth = 3; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 135 | static const int kLifetimeWidth = 1; |
yangguo@chromium.org | 659ceec | 2012-01-26 07:37:54 +0000 | [diff] [blame] | 136 | static const int kVirtualRegisterWidth = 18; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 137 | |
| 138 | static const int kPolicyShift = kKindFieldWidth; |
| 139 | static const int kLifetimeShift = kPolicyShift + kPolicyWidth; |
| 140 | static const int kVirtualRegisterShift = kLifetimeShift + kLifetimeWidth; |
| 141 | static const int kFixedIndexShift = |
| 142 | kVirtualRegisterShift + kVirtualRegisterWidth; |
| 143 | |
| 144 | class PolicyField : public BitField<Policy, kPolicyShift, kPolicyWidth> { }; |
| 145 | |
| 146 | class LifetimeField |
| 147 | : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { |
| 148 | }; |
| 149 | |
| 150 | class VirtualRegisterField |
| 151 | : public BitField<unsigned, |
| 152 | kVirtualRegisterShift, |
| 153 | kVirtualRegisterWidth> { |
| 154 | }; |
| 155 | |
yangguo@chromium.org | 659ceec | 2012-01-26 07:37:54 +0000 | [diff] [blame] | 156 | static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth; |
ager@chromium.org | 04921a8 | 2011-06-27 13:21:41 +0000 | [diff] [blame] | 157 | static const int kMaxFixedIndex = 63; |
| 158 | static const int kMinFixedIndex = -64; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 159 | |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 160 | bool HasAnyPolicy() const { |
| 161 | return policy() == ANY; |
| 162 | } |
| 163 | bool HasFixedPolicy() const { |
| 164 | return policy() == FIXED_REGISTER || |
| 165 | policy() == FIXED_DOUBLE_REGISTER || |
| 166 | policy() == FIXED_SLOT; |
| 167 | } |
| 168 | bool HasRegisterPolicy() const { |
| 169 | return policy() == WRITABLE_REGISTER || policy() == MUST_HAVE_REGISTER; |
| 170 | } |
| 171 | bool HasSameAsInputPolicy() const { |
| 172 | return policy() == SAME_AS_FIRST_INPUT; |
| 173 | } |
| 174 | Policy policy() const { return PolicyField::decode(value_); } |
| 175 | void set_policy(Policy policy) { |
kmillikin@chromium.org | 83e1682 | 2011-09-13 08:21:47 +0000 | [diff] [blame] | 176 | value_ = PolicyField::update(value_, policy); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 177 | } |
| 178 | int fixed_index() const { |
| 179 | return static_cast<int>(value_) >> kFixedIndexShift; |
| 180 | } |
| 181 | |
danno@chromium.org | fa458e4 | 2012-02-01 10:48:36 +0000 | [diff] [blame] | 182 | int virtual_register() const { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 183 | return VirtualRegisterField::decode(value_); |
| 184 | } |
| 185 | |
| 186 | void set_virtual_register(unsigned id) { |
kmillikin@chromium.org | 83e1682 | 2011-09-13 08:21:47 +0000 | [diff] [blame] | 187 | value_ = VirtualRegisterField::update(value_, id); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 188 | } |
| 189 | |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 190 | LUnallocated* CopyUnconstrained(Zone* zone) { |
| 191 | LUnallocated* result = new(zone) LUnallocated(ANY); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 192 | result->set_virtual_register(virtual_register()); |
| 193 | return result; |
| 194 | } |
| 195 | |
| 196 | static LUnallocated* cast(LOperand* op) { |
| 197 | ASSERT(op->IsUnallocated()); |
| 198 | return reinterpret_cast<LUnallocated*>(op); |
| 199 | } |
| 200 | |
| 201 | bool IsUsedAtStart() { |
| 202 | return LifetimeField::decode(value_) == USED_AT_START; |
| 203 | } |
| 204 | |
| 205 | private: |
| 206 | void Initialize(Policy policy, int fixed_index, Lifetime lifetime) { |
| 207 | value_ |= PolicyField::encode(policy); |
| 208 | value_ |= LifetimeField::encode(lifetime); |
| 209 | value_ |= fixed_index << kFixedIndexShift; |
| 210 | ASSERT(this->fixed_index() == fixed_index); |
| 211 | } |
| 212 | }; |
| 213 | |
| 214 | |
| 215 | class LMoveOperands BASE_EMBEDDED { |
| 216 | public: |
| 217 | LMoveOperands(LOperand* source, LOperand* destination) |
| 218 | : source_(source), destination_(destination) { |
| 219 | } |
| 220 | |
| 221 | LOperand* source() const { return source_; } |
| 222 | void set_source(LOperand* operand) { source_ = operand; } |
| 223 | |
| 224 | LOperand* destination() const { return destination_; } |
| 225 | void set_destination(LOperand* operand) { destination_ = operand; } |
| 226 | |
| 227 | // The gap resolver marks moves as "in-progress" by clearing the |
| 228 | // destination (but not the source). |
| 229 | bool IsPending() const { |
| 230 | return destination_ == NULL && source_ != NULL; |
| 231 | } |
| 232 | |
| 233 | // True if this move a move into the given destination operand. |
| 234 | bool Blocks(LOperand* operand) const { |
| 235 | return !IsEliminated() && source()->Equals(operand); |
| 236 | } |
| 237 | |
| 238 | // A move is redundant if it's been eliminated, if its source and |
| 239 | // destination are the same, or if its destination is unneeded. |
| 240 | bool IsRedundant() const { |
| 241 | return IsEliminated() || source_->Equals(destination_) || IsIgnored(); |
| 242 | } |
| 243 | |
| 244 | bool IsIgnored() const { |
yangguo@chromium.org | 659ceec | 2012-01-26 07:37:54 +0000 | [diff] [blame] | 245 | return destination_ != NULL && destination_->IsIgnored(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 246 | } |
| 247 | |
| 248 | // We clear both operands to indicate move that's been eliminated. |
| 249 | void Eliminate() { source_ = destination_ = NULL; } |
| 250 | bool IsEliminated() const { |
| 251 | ASSERT(source_ != NULL || destination_ == NULL); |
| 252 | return source_ == NULL; |
| 253 | } |
| 254 | |
| 255 | private: |
| 256 | LOperand* source_; |
| 257 | LOperand* destination_; |
| 258 | }; |
| 259 | |
| 260 | |
| 261 | class LConstantOperand: public LOperand { |
| 262 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 263 | static LConstantOperand* Create(int index, Zone* zone) { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 264 | ASSERT(index >= 0); |
| 265 | if (index < kNumCachedOperands) return &cache[index]; |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 266 | return new(zone) LConstantOperand(index); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 267 | } |
| 268 | |
| 269 | static LConstantOperand* cast(LOperand* op) { |
| 270 | ASSERT(op->IsConstantOperand()); |
| 271 | return reinterpret_cast<LConstantOperand*>(op); |
| 272 | } |
| 273 | |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 274 | static void SetUpCache(); |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 275 | static void TearDownCache(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 276 | |
| 277 | private: |
| 278 | static const int kNumCachedOperands = 128; |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 279 | static LConstantOperand* cache; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 280 | |
| 281 | LConstantOperand() : LOperand() { } |
| 282 | explicit LConstantOperand(int index) : LOperand(CONSTANT_OPERAND, index) { } |
| 283 | }; |
| 284 | |
| 285 | |
| 286 | class LArgument: public LOperand { |
| 287 | public: |
| 288 | explicit LArgument(int index) : LOperand(ARGUMENT, index) { } |
| 289 | |
| 290 | static LArgument* cast(LOperand* op) { |
| 291 | ASSERT(op->IsArgument()); |
| 292 | return reinterpret_cast<LArgument*>(op); |
| 293 | } |
| 294 | }; |
| 295 | |
| 296 | |
| 297 | class LStackSlot: public LOperand { |
| 298 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 299 | static LStackSlot* Create(int index, Zone* zone) { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 300 | ASSERT(index >= 0); |
| 301 | if (index < kNumCachedOperands) return &cache[index]; |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 302 | return new(zone) LStackSlot(index); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 303 | } |
| 304 | |
| 305 | static LStackSlot* cast(LOperand* op) { |
| 306 | ASSERT(op->IsStackSlot()); |
| 307 | return reinterpret_cast<LStackSlot*>(op); |
| 308 | } |
| 309 | |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 310 | static void SetUpCache(); |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 311 | static void TearDownCache(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 312 | |
| 313 | private: |
| 314 | static const int kNumCachedOperands = 128; |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 315 | static LStackSlot* cache; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 316 | |
| 317 | LStackSlot() : LOperand() { } |
| 318 | explicit LStackSlot(int index) : LOperand(STACK_SLOT, index) { } |
| 319 | }; |
| 320 | |
| 321 | |
| 322 | class LDoubleStackSlot: public LOperand { |
| 323 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 324 | static LDoubleStackSlot* Create(int index, Zone* zone) { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 325 | ASSERT(index >= 0); |
| 326 | if (index < kNumCachedOperands) return &cache[index]; |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 327 | return new(zone) LDoubleStackSlot(index); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 328 | } |
| 329 | |
| 330 | static LDoubleStackSlot* cast(LOperand* op) { |
| 331 | ASSERT(op->IsStackSlot()); |
| 332 | return reinterpret_cast<LDoubleStackSlot*>(op); |
| 333 | } |
| 334 | |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 335 | static void SetUpCache(); |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 336 | static void TearDownCache(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 337 | |
| 338 | private: |
| 339 | static const int kNumCachedOperands = 128; |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 340 | static LDoubleStackSlot* cache; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 341 | |
| 342 | LDoubleStackSlot() : LOperand() { } |
| 343 | explicit LDoubleStackSlot(int index) : LOperand(DOUBLE_STACK_SLOT, index) { } |
| 344 | }; |
| 345 | |
| 346 | |
| 347 | class LRegister: public LOperand { |
| 348 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 349 | static LRegister* Create(int index, Zone* zone) { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 350 | ASSERT(index >= 0); |
| 351 | if (index < kNumCachedOperands) return &cache[index]; |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 352 | return new(zone) LRegister(index); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 353 | } |
| 354 | |
| 355 | static LRegister* cast(LOperand* op) { |
| 356 | ASSERT(op->IsRegister()); |
| 357 | return reinterpret_cast<LRegister*>(op); |
| 358 | } |
| 359 | |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 360 | static void SetUpCache(); |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 361 | static void TearDownCache(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 362 | |
| 363 | private: |
| 364 | static const int kNumCachedOperands = 16; |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 365 | static LRegister* cache; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 366 | |
| 367 | LRegister() : LOperand() { } |
| 368 | explicit LRegister(int index) : LOperand(REGISTER, index) { } |
| 369 | }; |
| 370 | |
| 371 | |
| 372 | class LDoubleRegister: public LOperand { |
| 373 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 374 | static LDoubleRegister* Create(int index, Zone* zone) { |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 375 | ASSERT(index >= 0); |
| 376 | if (index < kNumCachedOperands) return &cache[index]; |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 377 | return new(zone) LDoubleRegister(index); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 378 | } |
| 379 | |
| 380 | static LDoubleRegister* cast(LOperand* op) { |
| 381 | ASSERT(op->IsDoubleRegister()); |
| 382 | return reinterpret_cast<LDoubleRegister*>(op); |
| 383 | } |
| 384 | |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 385 | static void SetUpCache(); |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 386 | static void TearDownCache(); |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 387 | |
| 388 | private: |
| 389 | static const int kNumCachedOperands = 16; |
jkummerow@chromium.org | 1456e70 | 2012-03-30 08:38:13 +0000 | [diff] [blame] | 390 | static LDoubleRegister* cache; |
vegorov@chromium.org | 0a4e901 | 2011-01-24 12:33:13 +0000 | [diff] [blame] | 391 | |
| 392 | LDoubleRegister() : LOperand() { } |
| 393 | explicit LDoubleRegister(int index) : LOperand(DOUBLE_REGISTER, index) { } |
| 394 | }; |
| 395 | |
| 396 | |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 397 | class LParallelMove : public ZoneObject { |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 398 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 399 | explicit LParallelMove(Zone* zone) : move_operands_(4, zone) { } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 400 | |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 401 | void AddMove(LOperand* from, LOperand* to, Zone* zone) { |
| 402 | move_operands_.Add(LMoveOperands(from, to), zone); |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 403 | } |
| 404 | |
| 405 | bool IsRedundant() const; |
| 406 | |
| 407 | const ZoneList<LMoveOperands>* move_operands() const { |
| 408 | return &move_operands_; |
| 409 | } |
| 410 | |
| 411 | void PrintDataTo(StringStream* stream) const; |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 412 | |
| 413 | private: |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 414 | ZoneList<LMoveOperands> move_operands_; |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 415 | }; |
| 416 | |
| 417 | |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 418 | class LPointerMap: public ZoneObject { |
| 419 | public: |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 420 | explicit LPointerMap(int position, Zone* zone) |
| 421 | : pointer_operands_(8, zone), |
| 422 | untagged_operands_(0, zone), |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 423 | position_(position), |
| 424 | lithium_position_(-1) { } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 425 | |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 426 | const ZoneList<LOperand*>* GetNormalizedOperands() { |
| 427 | for (int i = 0; i < untagged_operands_.length(); ++i) { |
| 428 | RemovePointer(untagged_operands_[i]); |
| 429 | } |
| 430 | untagged_operands_.Clear(); |
| 431 | return &pointer_operands_; |
| 432 | } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 433 | int position() const { return position_; } |
| 434 | int lithium_position() const { return lithium_position_; } |
| 435 | |
| 436 | void set_lithium_position(int pos) { |
| 437 | ASSERT(lithium_position_ == -1); |
| 438 | lithium_position_ = pos; |
| 439 | } |
| 440 | |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 441 | void RecordPointer(LOperand* op, Zone* zone); |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 442 | void RemovePointer(LOperand* op); |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 443 | void RecordUntagged(LOperand* op, Zone* zone); |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 444 | void PrintTo(StringStream* stream); |
| 445 | |
| 446 | private: |
| 447 | ZoneList<LOperand*> pointer_operands_; |
erik.corry@gmail.com | c3b670f | 2011-10-05 21:44:48 +0000 | [diff] [blame] | 448 | ZoneList<LOperand*> untagged_operands_; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 449 | int position_; |
| 450 | int lithium_position_; |
| 451 | }; |
| 452 | |
| 453 | |
| 454 | class LEnvironment: public ZoneObject { |
| 455 | public: |
| 456 | LEnvironment(Handle<JSFunction> closure, |
ulan@chromium.org | 967e270 | 2012-02-28 09:49:15 +0000 | [diff] [blame] | 457 | FrameType frame_type, |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 458 | int ast_id, |
| 459 | int parameter_count, |
| 460 | int argument_count, |
| 461 | int value_count, |
rossberg@chromium.org | 400388e | 2012-06-06 09:29:22 +0000 | [diff] [blame] | 462 | LEnvironment* outer, |
| 463 | Zone* zone) |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 464 | : closure_(closure), |
ulan@chromium.org | 967e270 | 2012-02-28 09:49:15 +0000 | [diff] [blame] | 465 | frame_type_(frame_type), |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 466 | arguments_stack_height_(argument_count), |
| 467 | deoptimization_index_(Safepoint::kNoDeoptimizationIndex), |
| 468 | translation_index_(-1), |
| 469 | ast_id_(ast_id), |
| 470 | parameter_count_(parameter_count), |
ricow@chromium.org | 27bf288 | 2011-11-17 08:34:43 +0000 | [diff] [blame] | 471 | pc_offset_(-1), |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 472 | values_(value_count, zone), |
yangguo@chromium.org | 5a11aaf | 2012-06-20 11:29:00 +0000 | [diff] [blame] | 473 | is_tagged_(value_count, zone), |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 474 | spilled_registers_(NULL), |
| 475 | spilled_double_registers_(NULL), |
rossberg@chromium.org | 400388e | 2012-06-06 09:29:22 +0000 | [diff] [blame] | 476 | outer_(outer), |
| 477 | zone_(zone) { } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 478 | |
| 479 | Handle<JSFunction> closure() const { return closure_; } |
ulan@chromium.org | 967e270 | 2012-02-28 09:49:15 +0000 | [diff] [blame] | 480 | FrameType frame_type() const { return frame_type_; } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 481 | int arguments_stack_height() const { return arguments_stack_height_; } |
| 482 | int deoptimization_index() const { return deoptimization_index_; } |
| 483 | int translation_index() const { return translation_index_; } |
| 484 | int ast_id() const { return ast_id_; } |
| 485 | int parameter_count() const { return parameter_count_; } |
ricow@chromium.org | 27bf288 | 2011-11-17 08:34:43 +0000 | [diff] [blame] | 486 | int pc_offset() const { return pc_offset_; } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 487 | LOperand** spilled_registers() const { return spilled_registers_; } |
| 488 | LOperand** spilled_double_registers() const { |
| 489 | return spilled_double_registers_; |
| 490 | } |
| 491 | const ZoneList<LOperand*>* values() const { return &values_; } |
| 492 | LEnvironment* outer() const { return outer_; } |
| 493 | |
| 494 | void AddValue(LOperand* operand, Representation representation) { |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 495 | values_.Add(operand, zone()); |
danno@chromium.org | fa458e4 | 2012-02-01 10:48:36 +0000 | [diff] [blame] | 496 | if (representation.IsTagged()) { |
| 497 | is_tagged_.Add(values_.length() - 1); |
| 498 | } |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 499 | } |
| 500 | |
| 501 | bool HasTaggedValueAt(int index) const { |
danno@chromium.org | fa458e4 | 2012-02-01 10:48:36 +0000 | [diff] [blame] | 502 | return is_tagged_.Contains(index); |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 503 | } |
| 504 | |
ricow@chromium.org | 27bf288 | 2011-11-17 08:34:43 +0000 | [diff] [blame] | 505 | void Register(int deoptimization_index, |
| 506 | int translation_index, |
| 507 | int pc_offset) { |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 508 | ASSERT(!HasBeenRegistered()); |
| 509 | deoptimization_index_ = deoptimization_index; |
| 510 | translation_index_ = translation_index; |
ricow@chromium.org | 27bf288 | 2011-11-17 08:34:43 +0000 | [diff] [blame] | 511 | pc_offset_ = pc_offset; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 512 | } |
| 513 | bool HasBeenRegistered() const { |
| 514 | return deoptimization_index_ != Safepoint::kNoDeoptimizationIndex; |
| 515 | } |
| 516 | |
| 517 | void SetSpilledRegisters(LOperand** registers, |
| 518 | LOperand** double_registers) { |
| 519 | spilled_registers_ = registers; |
| 520 | spilled_double_registers_ = double_registers; |
| 521 | } |
| 522 | |
| 523 | void PrintTo(StringStream* stream); |
| 524 | |
mmassi@chromium.org | 7028c05 | 2012-06-13 11:51:58 +0000 | [diff] [blame] | 525 | Zone* zone() const { return zone_; } |
rossberg@chromium.org | 400388e | 2012-06-06 09:29:22 +0000 | [diff] [blame] | 526 | |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 527 | private: |
| 528 | Handle<JSFunction> closure_; |
ulan@chromium.org | 967e270 | 2012-02-28 09:49:15 +0000 | [diff] [blame] | 529 | FrameType frame_type_; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 530 | int arguments_stack_height_; |
| 531 | int deoptimization_index_; |
| 532 | int translation_index_; |
| 533 | int ast_id_; |
| 534 | int parameter_count_; |
ricow@chromium.org | 27bf288 | 2011-11-17 08:34:43 +0000 | [diff] [blame] | 535 | int pc_offset_; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 536 | ZoneList<LOperand*> values_; |
danno@chromium.org | fa458e4 | 2012-02-01 10:48:36 +0000 | [diff] [blame] | 537 | BitVector is_tagged_; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 538 | |
| 539 | // Allocation index indexed arrays of spill slot operands for registers |
| 540 | // that are also in spill slots at an OSR entry. NULL for environments |
| 541 | // that do not correspond to an OSR entry. |
| 542 | LOperand** spilled_registers_; |
| 543 | LOperand** spilled_double_registers_; |
| 544 | |
| 545 | LEnvironment* outer_; |
rossberg@chromium.org | 400388e | 2012-06-06 09:29:22 +0000 | [diff] [blame] | 546 | |
| 547 | Zone* zone_; |
sgjesse@chromium.org | c6c5718 | 2011-01-17 12:24:25 +0000 | [diff] [blame] | 548 | }; |
| 549 | |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 550 | |
| 551 | // Iterates over the non-null, non-constant operands in an environment. |
| 552 | class ShallowIterator BASE_EMBEDDED { |
| 553 | public: |
| 554 | explicit ShallowIterator(LEnvironment* env) |
| 555 | : env_(env), |
| 556 | limit_(env != NULL ? env->values()->length() : 0), |
| 557 | current_(0) { |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 558 | SkipUninteresting(); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 559 | } |
| 560 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 561 | bool Done() { return current_ >= limit_; } |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 562 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 563 | LOperand* Current() { |
| 564 | ASSERT(!Done()); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 565 | return env_->values()->at(current_); |
| 566 | } |
| 567 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 568 | void Advance() { |
| 569 | ASSERT(!Done()); |
| 570 | ++current_; |
| 571 | SkipUninteresting(); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 572 | } |
| 573 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 574 | LEnvironment* env() { return env_; } |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 575 | |
| 576 | private: |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 577 | bool ShouldSkip(LOperand* op) { |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 578 | return op == NULL || op->IsConstantOperand() || op->IsArgument(); |
| 579 | } |
| 580 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 581 | // Skip until something interesting, beginning with and including current_. |
| 582 | void SkipUninteresting() { |
| 583 | while (current_ < limit_ && ShouldSkip(env_->values()->at(current_))) { |
| 584 | ++current_; |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 585 | } |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 586 | } |
| 587 | |
| 588 | LEnvironment* env_; |
| 589 | int limit_; |
| 590 | int current_; |
| 591 | }; |
| 592 | |
| 593 | |
| 594 | // Iterator for non-null, non-constant operands incl. outer environments. |
| 595 | class DeepIterator BASE_EMBEDDED { |
| 596 | public: |
| 597 | explicit DeepIterator(LEnvironment* env) |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 598 | : current_iterator_(env) { |
| 599 | SkipUninteresting(); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 600 | } |
| 601 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 602 | bool Done() { return current_iterator_.Done(); } |
| 603 | |
| 604 | LOperand* Current() { |
| 605 | ASSERT(!current_iterator_.Done()); |
| 606 | return current_iterator_.Current(); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 607 | } |
| 608 | |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 609 | void Advance() { |
| 610 | current_iterator_.Advance(); |
| 611 | SkipUninteresting(); |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 612 | } |
| 613 | |
| 614 | private: |
jkummerow@chromium.org | e297f59 | 2011-06-08 10:05:15 +0000 | [diff] [blame] | 615 | void SkipUninteresting() { |
| 616 | while (current_iterator_.env() != NULL && current_iterator_.Done()) { |
| 617 | current_iterator_ = ShallowIterator(current_iterator_.env()->outer()); |
| 618 | } |
ricow@chromium.org | 83aa549 | 2011-02-07 12:42:56 +0000 | [diff] [blame] | 619 | } |
| 620 | |
| 621 | ShallowIterator current_iterator_; |
| 622 | }; |
| 623 | |
karlklose@chromium.org | 83a4728 | 2011-05-11 11:54:09 +0000 | [diff] [blame] | 624 | |
jkummerow@chromium.org | 28583c9 | 2012-07-16 11:31:55 +0000 | [diff] [blame] | 625 | class LPlatformChunk; |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 626 | class LGap; |
| 627 | class LLabel; |
| 628 | |
| 629 | // Superclass providing data and behavior common to all the |
jkummerow@chromium.org | 28583c9 | 2012-07-16 11:31:55 +0000 | [diff] [blame] | 630 | // arch-specific LPlatformChunk classes. |
| 631 | class LChunk: public ZoneObject { |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 632 | public: |
jkummerow@chromium.org | 28583c9 | 2012-07-16 11:31:55 +0000 | [diff] [blame] | 633 | static LChunk* NewChunk(HGraph* graph); |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 634 | |
| 635 | void AddInstruction(LInstruction* instruction, HBasicBlock* block); |
| 636 | LConstantOperand* DefineConstantOperand(HConstant* constant); |
| 637 | HConstant* LookupConstant(LConstantOperand* operand) const; |
| 638 | Representation LookupLiteralRepresentation(LConstantOperand* operand) const; |
| 639 | |
| 640 | int ParameterAt(int index); |
| 641 | int GetParameterStackSlot(int index) const; |
| 642 | int spill_slot_count() const { return spill_slot_count_; } |
| 643 | CompilationInfo* info() const { return info_; } |
| 644 | HGraph* graph() const { return graph_; } |
| 645 | const ZoneList<LInstruction*>* instructions() const { return &instructions_; } |
| 646 | void AddGapMove(int index, LOperand* from, LOperand* to); |
| 647 | LGap* GetGapAt(int index) const; |
| 648 | bool IsGapAt(int index) const; |
| 649 | int NearestGapPos(int index) const; |
| 650 | void MarkEmptyBlocks(); |
| 651 | const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; } |
| 652 | LLabel* GetLabel(int block_id) const; |
| 653 | int LookupDestination(int block_id) const; |
| 654 | Label* GetAssemblyLabel(int block_id) const; |
| 655 | |
| 656 | const ZoneList<Handle<JSFunction> >* inlined_closures() const { |
| 657 | return &inlined_closures_; |
| 658 | } |
| 659 | |
| 660 | void AddInlinedClosure(Handle<JSFunction> closure) { |
| 661 | inlined_closures_.Add(closure, zone()); |
| 662 | } |
| 663 | |
| 664 | Zone* zone() const { return info_->zone(); } |
| 665 | |
jkummerow@chromium.org | 28583c9 | 2012-07-16 11:31:55 +0000 | [diff] [blame] | 666 | Handle<Code> Codegen(); |
| 667 | |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 668 | protected: |
jkummerow@chromium.org | 28583c9 | 2012-07-16 11:31:55 +0000 | [diff] [blame] | 669 | LChunk(CompilationInfo* info, HGraph* graph) |
| 670 | : spill_slot_count_(0), |
| 671 | info_(info), |
| 672 | graph_(graph), |
| 673 | instructions_(32, graph->zone()), |
| 674 | pointer_maps_(8, graph->zone()), |
| 675 | inlined_closures_(1, graph->zone()) { } |
| 676 | |
rossberg@chromium.org | 657d53b | 2012-07-12 11:06:03 +0000 | [diff] [blame] | 677 | int spill_slot_count_; |
| 678 | |
| 679 | private: |
| 680 | CompilationInfo* info_; |
| 681 | HGraph* const graph_; |
| 682 | ZoneList<LInstruction*> instructions_; |
| 683 | ZoneList<LPointerMap*> pointer_maps_; |
| 684 | ZoneList<Handle<JSFunction> > inlined_closures_; |
| 685 | }; |
| 686 | |
| 687 | |
kmillikin@chromium.org | 83e1682 | 2011-09-13 08:21:47 +0000 | [diff] [blame] | 688 | int ElementsKindToShiftSize(ElementsKind elements_kind); |
karlklose@chromium.org | 83a4728 | 2011-05-11 11:54:09 +0000 | [diff] [blame] | 689 | |
| 690 | |
kmillikin@chromium.org | d2c22f0 | 2011-01-10 08:15:37 +0000 | [diff] [blame] | 691 | } } // namespace v8::internal |
| 692 | |
| 693 | #endif // V8_LITHIUM_H_ |