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 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 virtual void Verify(); | 2993 virtual void Verify(); |
2994 #endif | 2994 #endif |
2995 | 2995 |
2996 void InitRealUses(int id); | 2996 void InitRealUses(int id); |
2997 void AddNonPhiUsesFrom(HPhi* other); | 2997 void AddNonPhiUsesFrom(HPhi* other); |
2998 void AddIndirectUsesTo(int* use_count); | 2998 void AddIndirectUsesTo(int* use_count); |
2999 | 2999 |
3000 int tagged_non_phi_uses() const { | 3000 int tagged_non_phi_uses() const { |
3001 return non_phi_uses_[Representation::kTagged]; | 3001 return non_phi_uses_[Representation::kTagged]; |
3002 } | 3002 } |
| 3003 int smi_non_phi_uses() const { |
| 3004 return non_phi_uses_[Representation::kSmi]; |
| 3005 } |
3003 int int32_non_phi_uses() const { | 3006 int int32_non_phi_uses() const { |
3004 return non_phi_uses_[Representation::kInteger32]; | 3007 return non_phi_uses_[Representation::kInteger32]; |
3005 } | 3008 } |
3006 int double_non_phi_uses() const { | 3009 int double_non_phi_uses() const { |
3007 return non_phi_uses_[Representation::kDouble]; | 3010 return non_phi_uses_[Representation::kDouble]; |
3008 } | 3011 } |
3009 int tagged_indirect_uses() const { | 3012 int tagged_indirect_uses() const { |
3010 return indirect_uses_[Representation::kTagged]; | 3013 return indirect_uses_[Representation::kTagged]; |
3011 } | 3014 } |
| 3015 int smi_indirect_uses() const { |
| 3016 return indirect_uses_[Representation::kSmi]; |
| 3017 } |
3012 int int32_indirect_uses() const { | 3018 int int32_indirect_uses() const { |
3013 return indirect_uses_[Representation::kInteger32]; | 3019 return indirect_uses_[Representation::kInteger32]; |
3014 } | 3020 } |
3015 int double_indirect_uses() const { | 3021 int double_indirect_uses() const { |
3016 return indirect_uses_[Representation::kDouble]; | 3022 return indirect_uses_[Representation::kDouble]; |
3017 } | 3023 } |
3018 int phi_id() { return phi_id_; } | 3024 int phi_id() { return phi_id_; } |
3019 | 3025 |
3020 static HPhi* cast(HValue* value) { | 3026 static HPhi* cast(HValue* value) { |
3021 ASSERT(value->IsPhi()); | 3027 ASSERT(value->IsPhi()); |
(...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6507 virtual bool IsDeletable() const { return true; } | 6513 virtual bool IsDeletable() const { return true; } |
6508 }; | 6514 }; |
6509 | 6515 |
6510 | 6516 |
6511 #undef DECLARE_INSTRUCTION | 6517 #undef DECLARE_INSTRUCTION |
6512 #undef DECLARE_CONCRETE_INSTRUCTION | 6518 #undef DECLARE_CONCRETE_INSTRUCTION |
6513 | 6519 |
6514 } } // namespace v8::internal | 6520 } } // namespace v8::internal |
6515 | 6521 |
6516 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6522 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |