| OLD | NEW |
| 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 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2372 explicit LForInPrepareMap(LOperand* object) { | 2372 explicit LForInPrepareMap(LOperand* object) { |
| 2373 inputs_[0] = object; | 2373 inputs_[0] = object; |
| 2374 } | 2374 } |
| 2375 | 2375 |
| 2376 LOperand* object() { return inputs_[0]; } | 2376 LOperand* object() { return inputs_[0]; } |
| 2377 | 2377 |
| 2378 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") | 2378 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") |
| 2379 }; | 2379 }; |
| 2380 | 2380 |
| 2381 | 2381 |
| 2382 class LForInCacheArray: public LTemplateInstruction<1, 1, 1> { | 2382 class LForInCacheArray: public LTemplateInstruction<1, 1, 0> { |
| 2383 public: | 2383 public: |
| 2384 explicit LForInCacheArray(LOperand* map, LOperand* scratch) { | 2384 explicit LForInCacheArray(LOperand* map) { |
| 2385 inputs_[0] = map; | 2385 inputs_[0] = map; |
| 2386 temps_[0] = scratch; | |
| 2387 } | 2386 } |
| 2388 | 2387 |
| 2389 LOperand* map() { return inputs_[0]; } | 2388 LOperand* map() { return inputs_[0]; } |
| 2390 LOperand* scratch() { return temps_[0]; } | |
| 2391 | 2389 |
| 2392 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") | 2390 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") |
| 2393 | 2391 |
| 2394 int idx() { | 2392 int idx() { |
| 2395 return HForInCacheArray::cast(this->hydrogen_value())->idx(); | 2393 return HForInCacheArray::cast(this->hydrogen_value())->idx(); |
| 2396 } | 2394 } |
| 2397 }; | 2395 }; |
| 2398 | 2396 |
| 2399 | 2397 |
| 2400 class LCheckMapValue: public LTemplateInstruction<0, 2, 0> { | 2398 class LCheckMapValue: public LTemplateInstruction<0, 2, 0> { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2586 | 2584 |
| 2587 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2585 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2588 }; | 2586 }; |
| 2589 | 2587 |
| 2590 #undef DECLARE_HYDROGEN_ACCESSOR | 2588 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2591 #undef DECLARE_CONCRETE_INSTRUCTION | 2589 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2592 | 2590 |
| 2593 } } // namespace v8::internal | 2591 } } // namespace v8::internal |
| 2594 | 2592 |
| 2595 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2593 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |