| 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 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 explicit LForInPrepareMap(LOperand* object) { | 2391 explicit LForInPrepareMap(LOperand* object) { |
| 2392 inputs_[0] = object; | 2392 inputs_[0] = object; |
| 2393 } | 2393 } |
| 2394 | 2394 |
| 2395 LOperand* object() { return inputs_[0]; } | 2395 LOperand* object() { return inputs_[0]; } |
| 2396 | 2396 |
| 2397 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") | 2397 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") |
| 2398 }; | 2398 }; |
| 2399 | 2399 |
| 2400 | 2400 |
| 2401 class LForInCacheArray: public LTemplateInstruction<1, 1, 1> { | 2401 class LForInCacheArray: public LTemplateInstruction<1, 1, 0> { |
| 2402 public: | 2402 public: |
| 2403 explicit LForInCacheArray(LOperand* map, LOperand* scratch) { | 2403 explicit LForInCacheArray(LOperand* map) { |
| 2404 inputs_[0] = map; | 2404 inputs_[0] = map; |
| 2405 temps_[0] = scratch; | |
| 2406 } | 2405 } |
| 2407 | 2406 |
| 2408 LOperand* map() { return inputs_[0]; } | 2407 LOperand* map() { return inputs_[0]; } |
| 2409 LOperand* scratch() { return temps_[0]; } | |
| 2410 | 2408 |
| 2411 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") | 2409 DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") |
| 2412 | 2410 |
| 2413 int idx() { | 2411 int idx() { |
| 2414 return HForInCacheArray::cast(this->hydrogen_value())->idx(); | 2412 return HForInCacheArray::cast(this->hydrogen_value())->idx(); |
| 2415 } | 2413 } |
| 2416 }; | 2414 }; |
| 2417 | 2415 |
| 2418 | 2416 |
| 2419 class LCheckMapValue: public LTemplateInstruction<0, 2, 0> { | 2417 class LCheckMapValue: public LTemplateInstruction<0, 2, 0> { |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2608 | 2606 |
| 2609 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2607 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2610 }; | 2608 }; |
| 2611 | 2609 |
| 2612 #undef DECLARE_HYDROGEN_ACCESSOR | 2610 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2613 #undef DECLARE_CONCRETE_INSTRUCTION | 2611 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2614 | 2612 |
| 2615 } } // namespace v8::internal | 2613 } } // namespace v8::internal |
| 2616 | 2614 |
| 2617 #endif // V8_ARM_LITHIUM_ARM_H_ | 2615 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |