Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/hydrogen-instructions.h

Issue 15692004: Update representation-from-uses to support smi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698