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 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2734 boolean_value_(double_value != 0 && !std::isnan(double_value)), | 2734 boolean_value_(double_value != 0 && !std::isnan(double_value)), |
2735 int32_value_(DoubleToInt32(double_value)), | 2735 int32_value_(DoubleToInt32(double_value)), |
2736 double_value_(double_value) { | 2736 double_value_(double_value) { |
2737 has_smi_value_ = has_int32_value_ && Smi::IsValid(int32_value_); | 2737 has_smi_value_ = has_int32_value_ && Smi::IsValid(int32_value_); |
2738 set_type(has_smi_value_ ? HType::Smi() : HType::TaggedNumber()); | 2738 set_type(has_smi_value_ ? HType::Smi() : HType::TaggedNumber()); |
2739 Initialize(r); | 2739 Initialize(r); |
2740 } | 2740 } |
2741 | 2741 |
2742 | 2742 |
2743 HConstant::HConstant(ExternalReference reference) | 2743 HConstant::HConstant(ExternalReference reference) |
2744 : HTemplateInstruction(HType::None()), | 2744 : HTemplateInstruction<0>(HType::None()), |
2745 has_smi_value_(false), | 2745 has_smi_value_(false), |
2746 has_int32_value_(false), | 2746 has_int32_value_(false), |
2747 has_double_value_(false), | 2747 has_double_value_(false), |
2748 has_external_reference_value_(true), | 2748 has_external_reference_value_(true), |
2749 is_internalized_string_(false), | 2749 is_internalized_string_(false), |
2750 is_not_in_new_space_(true), | 2750 is_not_in_new_space_(true), |
2751 is_cell_(false), | 2751 is_cell_(false), |
2752 boolean_value_(true), | 2752 boolean_value_(true), |
2753 external_reference_value_(reference) { | 2753 external_reference_value_(reference) { |
2754 Initialize(Representation::External()); | 2754 Initialize(Representation::External()); |
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4500 break; | 4500 break; |
4501 case kExternalMemory: | 4501 case kExternalMemory: |
4502 stream->Add("[external-memory]"); | 4502 stream->Add("[external-memory]"); |
4503 break; | 4503 break; |
4504 } | 4504 } |
4505 | 4505 |
4506 stream->Add("@%d", offset()); | 4506 stream->Add("@%d", offset()); |
4507 } | 4507 } |
4508 | 4508 |
4509 } } // namespace v8::internal | 4509 } } // namespace v8::internal |
OLD | NEW |