OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 void HPhi::AddInput(HValue* value) { | 921 void HPhi::AddInput(HValue* value) { |
922 inputs_.Add(NULL); | 922 inputs_.Add(NULL); |
923 SetOperandAt(OperandCount() - 1, value); | 923 SetOperandAt(OperandCount() - 1, value); |
924 // Mark phis that may have 'arguments' directly or indirectly as an operand. | 924 // Mark phis that may have 'arguments' directly or indirectly as an operand. |
925 if (!CheckFlag(kIsArguments) && value->CheckFlag(kIsArguments)) { | 925 if (!CheckFlag(kIsArguments) && value->CheckFlag(kIsArguments)) { |
926 SetFlag(kIsArguments); | 926 SetFlag(kIsArguments); |
927 } | 927 } |
928 } | 928 } |
929 | 929 |
930 | 930 |
931 HValue* HPhi::GetRedundantReplacement() const { | 931 HValue* HPhi::GetRedundantReplacement() { |
932 HValue* candidate = NULL; | 932 HValue* candidate = NULL; |
933 int count = OperandCount(); | 933 int count = OperandCount(); |
934 int position = 0; | 934 int position = 0; |
935 while (position < count && candidate == NULL) { | 935 while (position < count && candidate == NULL) { |
936 HValue* current = OperandAt(position++); | 936 HValue* current = OperandAt(position++); |
937 if (current != this) candidate = current; | 937 if (current != this) candidate = current; |
938 } | 938 } |
939 while (position < count) { | 939 while (position < count) { |
940 HValue* current = OperandAt(position++); | 940 HValue* current = OperandAt(position++); |
941 if (current != this && current != candidate) return NULL; | 941 if (current != this && current != candidate) return NULL; |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 | 1491 |
1492 | 1492 |
1493 void HCheckPrototypeMaps::Verify() { | 1493 void HCheckPrototypeMaps::Verify() { |
1494 HInstruction::Verify(); | 1494 HInstruction::Verify(); |
1495 ASSERT(HasNoUses()); | 1495 ASSERT(HasNoUses()); |
1496 } | 1496 } |
1497 | 1497 |
1498 #endif | 1498 #endif |
1499 | 1499 |
1500 } } // namespace v8::internal | 1500 } } // namespace v8::internal |
OLD | NEW |