| 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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3123 HType HCompareGeneric::CalculateInferredType() { | 3123 HType HCompareGeneric::CalculateInferredType() { |
| 3124 return HType::Boolean(); | 3124 return HType::Boolean(); |
| 3125 } | 3125 } |
| 3126 | 3126 |
| 3127 | 3127 |
| 3128 HType HInstanceOf::CalculateInferredType() { | 3128 HType HInstanceOf::CalculateInferredType() { |
| 3129 return HType::Boolean(); | 3129 return HType::Boolean(); |
| 3130 } | 3130 } |
| 3131 | 3131 |
| 3132 | 3132 |
| 3133 HType HDeleteProperty::CalculateInferredType() { | |
| 3134 return HType::Boolean(); | |
| 3135 } | |
| 3136 | |
| 3137 | |
| 3138 HType HInstanceOfKnownGlobal::CalculateInferredType() { | 3133 HType HInstanceOfKnownGlobal::CalculateInferredType() { |
| 3139 return HType::Boolean(); | 3134 return HType::Boolean(); |
| 3140 } | 3135 } |
| 3141 | 3136 |
| 3142 | 3137 |
| 3143 HType HChange::CalculateInferredType() { | 3138 HType HChange::CalculateInferredType() { |
| 3144 if (from().IsDouble() && to().IsTagged()) return HType::HeapNumber(); | 3139 if (from().IsDouble() && to().IsTagged()) return HType::HeapNumber(); |
| 3145 return type(); | 3140 return type(); |
| 3146 } | 3141 } |
| 3147 | 3142 |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3644 } | 3639 } |
| 3645 } | 3640 } |
| 3646 return new(zone) HShr(context, left, right); | 3641 return new(zone) HShr(context, left, right); |
| 3647 } | 3642 } |
| 3648 | 3643 |
| 3649 | 3644 |
| 3650 #undef H_CONSTANT_INT32 | 3645 #undef H_CONSTANT_INT32 |
| 3651 #undef H_CONSTANT_DOUBLE | 3646 #undef H_CONSTANT_DOUBLE |
| 3652 | 3647 |
| 3653 | 3648 |
| 3654 void HIn::PrintDataTo(StringStream* stream) { | |
| 3655 key()->PrintNameTo(stream); | |
| 3656 stream->Add(" "); | |
| 3657 object()->PrintNameTo(stream); | |
| 3658 } | |
| 3659 | |
| 3660 | |
| 3661 void HBitwise::PrintDataTo(StringStream* stream) { | 3649 void HBitwise::PrintDataTo(StringStream* stream) { |
| 3662 stream->Add(Token::Name(op_)); | 3650 stream->Add(Token::Name(op_)); |
| 3663 stream->Add(" "); | 3651 stream->Add(" "); |
| 3664 HBitwiseBinaryOperation::PrintDataTo(stream); | 3652 HBitwiseBinaryOperation::PrintDataTo(stream); |
| 3665 } | 3653 } |
| 3666 | 3654 |
| 3667 | 3655 |
| 3668 void HPhi::SimplifyConstantInputs() { | 3656 void HPhi::SimplifyConstantInputs() { |
| 3669 // Convert constant inputs to integers when all uses are truncating. | 3657 // Convert constant inputs to integers when all uses are truncating. |
| 3670 // This must happen before representation inference takes place. | 3658 // This must happen before representation inference takes place. |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3915 case kBackingStore: | 3903 case kBackingStore: |
| 3916 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3904 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
| 3917 stream->Add("[backing-store]"); | 3905 stream->Add("[backing-store]"); |
| 3918 break; | 3906 break; |
| 3919 } | 3907 } |
| 3920 | 3908 |
| 3921 stream->Add("@%d", offset()); | 3909 stream->Add("@%d", offset()); |
| 3922 } | 3910 } |
| 3923 | 3911 |
| 3924 } } // namespace v8::internal | 3912 } } // namespace v8::internal |
| OLD | NEW |