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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 int actual_scale = decomposition.scale() + scale(); | 1051 int actual_scale = decomposition.scale() + scale(); |
1052 | 1052 |
1053 if (actual_offset != 0) { | 1053 if (actual_offset != 0) { |
1054 HConstant* add_offset = new(block()->graph()->zone()) HConstant( | 1054 HConstant* add_offset = new(block()->graph()->zone()) HConstant( |
1055 actual_offset, index()->representation()); | 1055 actual_offset, index()->representation()); |
1056 add_offset->InsertBefore(this); | 1056 add_offset->InsertBefore(this); |
1057 HInstruction* add = HAdd::New(block()->graph()->zone(), | 1057 HInstruction* add = HAdd::New(block()->graph()->zone(), |
1058 block()->graph()->GetInvalidContext(), current_index, add_offset); | 1058 block()->graph()->GetInvalidContext(), current_index, add_offset); |
1059 add->InsertBefore(this); | 1059 add->InsertBefore(this); |
1060 add->AssumeRepresentation(index()->representation()); | 1060 add->AssumeRepresentation(index()->representation()); |
| 1061 add->ClearFlag(kCanOverflow); |
1061 current_index = add; | 1062 current_index = add; |
1062 } | 1063 } |
1063 | 1064 |
1064 if (actual_scale != 0) { | 1065 if (actual_scale != 0) { |
1065 HConstant* sar_scale = new(block()->graph()->zone()) HConstant( | 1066 HConstant* sar_scale = new(block()->graph()->zone()) HConstant( |
1066 actual_scale, index()->representation()); | 1067 actual_scale, index()->representation()); |
1067 sar_scale->InsertBefore(this); | 1068 sar_scale->InsertBefore(this); |
1068 HInstruction* sar = HSar::New(block()->graph()->zone(), | 1069 HInstruction* sar = HSar::New(block()->graph()->zone(), |
1069 block()->graph()->GetInvalidContext(), current_index, sar_scale); | 1070 block()->graph()->GetInvalidContext(), current_index, sar_scale); |
1070 sar->InsertBefore(this); | 1071 sar->InsertBefore(this); |
(...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3838 case kBackingStore: | 3839 case kBackingStore: |
3839 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3840 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3840 stream->Add("[backing-store]"); | 3841 stream->Add("[backing-store]"); |
3841 break; | 3842 break; |
3842 } | 3843 } |
3843 | 3844 |
3844 stream->Add("@%d", offset()); | 3845 stream->Add("@%d", offset()); |
3845 } | 3846 } |
3846 | 3847 |
3847 } } // namespace v8::internal | 3848 } } // namespace v8::internal |
OLD | NEW |