| 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 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2442 | 2442 |
| 2443 private: | 2443 private: |
| 2444 virtual bool IsDeletable() const { return true; } | 2444 virtual bool IsDeletable() const { return true; } |
| 2445 }; | 2445 }; |
| 2446 | 2446 |
| 2447 | 2447 |
| 2448 class HMapEnumLength: public HUnaryOperation { | 2448 class HMapEnumLength: public HUnaryOperation { |
| 2449 public: | 2449 public: |
| 2450 explicit HMapEnumLength(HValue* value) : HUnaryOperation(value) { | 2450 explicit HMapEnumLength(HValue* value) : HUnaryOperation(value) { |
| 2451 set_type(HType::Smi()); | 2451 set_type(HType::Smi()); |
| 2452 set_representation(Representation::Tagged()); | 2452 set_representation(Representation::Smi()); |
| 2453 SetFlag(kUseGVN); | 2453 SetFlag(kUseGVN); |
| 2454 SetGVNFlag(kDependsOnMaps); | 2454 SetGVNFlag(kDependsOnMaps); |
| 2455 } | 2455 } |
| 2456 | 2456 |
| 2457 virtual Representation RequiredInputRepresentation(int index) { | 2457 virtual Representation RequiredInputRepresentation(int index) { |
| 2458 return Representation::Tagged(); | 2458 return Representation::Tagged(); |
| 2459 } | 2459 } |
| 2460 | 2460 |
| 2461 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength) | 2461 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength) |
| 2462 | 2462 |
| (...skipping 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6500 virtual bool IsDeletable() const { return true; } | 6500 virtual bool IsDeletable() const { return true; } |
| 6501 }; | 6501 }; |
| 6502 | 6502 |
| 6503 | 6503 |
| 6504 #undef DECLARE_INSTRUCTION | 6504 #undef DECLARE_INSTRUCTION |
| 6505 #undef DECLARE_CONCRETE_INSTRUCTION | 6505 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6506 | 6506 |
| 6507 } } // namespace v8::internal | 6507 } } // namespace v8::internal |
| 6508 | 6508 |
| 6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |