| 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 2921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2932 } | 2932 } |
| 2933 if (access().IsStringLength()) { | 2933 if (access().IsStringLength()) { |
| 2934 return new(zone) Range(0, String::kMaxLength); | 2934 return new(zone) Range(0, String::kMaxLength); |
| 2935 } | 2935 } |
| 2936 return HValue::InferRange(zone); | 2936 return HValue::InferRange(zone); |
| 2937 } | 2937 } |
| 2938 | 2938 |
| 2939 | 2939 |
| 2940 Range* HLoadKeyed::InferRange(Zone* zone) { | 2940 Range* HLoadKeyed::InferRange(Zone* zone) { |
| 2941 switch (elements_kind()) { | 2941 switch (elements_kind()) { |
| 2942 case EXTERNAL_BYTE_ELEMENTS: | 2942 case EXTERNAL_INT8_ELEMENTS: |
| 2943 return new(zone) Range(kMinInt8, kMaxInt8); | 2943 return new(zone) Range(kMinInt8, kMaxInt8); |
| 2944 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: | 2944 case EXTERNAL_UINT8_ELEMENTS: |
| 2945 case EXTERNAL_PIXEL_ELEMENTS: | 2945 case EXTERNAL_UINT8_CLAMPED_ELEMENTS: |
| 2946 return new(zone) Range(kMinUInt8, kMaxUInt8); | 2946 return new(zone) Range(kMinUInt8, kMaxUInt8); |
| 2947 case EXTERNAL_SHORT_ELEMENTS: | 2947 case EXTERNAL_INT16_ELEMENTS: |
| 2948 return new(zone) Range(kMinInt16, kMaxInt16); | 2948 return new(zone) Range(kMinInt16, kMaxInt16); |
| 2949 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 2949 case EXTERNAL_UINT16_ELEMENTS: |
| 2950 return new(zone) Range(kMinUInt16, kMaxUInt16); | 2950 return new(zone) Range(kMinUInt16, kMaxUInt16); |
| 2951 default: | 2951 default: |
| 2952 return HValue::InferRange(zone); | 2952 return HValue::InferRange(zone); |
| 2953 } | 2953 } |
| 2954 } | 2954 } |
| 2955 | 2955 |
| 2956 | 2956 |
| 2957 void HCompareGeneric::PrintDataTo(StringStream* stream) { | 2957 void HCompareGeneric::PrintDataTo(StringStream* stream) { |
| 2958 stream->Add(Token::Name(token())); | 2958 stream->Add(Token::Name(token())); |
| 2959 stream->Add(" "); | 2959 stream->Add(" "); |
| (...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4439 break; | 4439 break; |
| 4440 case kExternalMemory: | 4440 case kExternalMemory: |
| 4441 stream->Add("[external-memory]"); | 4441 stream->Add("[external-memory]"); |
| 4442 break; | 4442 break; |
| 4443 } | 4443 } |
| 4444 | 4444 |
| 4445 stream->Add("@%d", offset()); | 4445 stream->Add("@%d", offset()); |
| 4446 } | 4446 } |
| 4447 | 4447 |
| 4448 } } // namespace v8::internal | 4448 } } // namespace v8::internal |
| OLD | NEW |