| 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 2820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2831 SetFlag(kUseGVN); | 2831 SetFlag(kUseGVN); |
| 2832 target_in_new_space_ = Isolate::Current()->heap()->InNewSpace(*function); | 2832 target_in_new_space_ = Isolate::Current()->heap()->InNewSpace(*function); |
| 2833 } | 2833 } |
| 2834 | 2834 |
| 2835 virtual Representation RequiredInputRepresentation(int index) { | 2835 virtual Representation RequiredInputRepresentation(int index) { |
| 2836 return Representation::Tagged(); | 2836 return Representation::Tagged(); |
| 2837 } | 2837 } |
| 2838 virtual void PrintDataTo(StringStream* stream); | 2838 virtual void PrintDataTo(StringStream* stream); |
| 2839 virtual HType CalculateInferredType(); | 2839 virtual HType CalculateInferredType(); |
| 2840 | 2840 |
| 2841 virtual HValue* Canonicalize(); |
| 2842 |
| 2841 #ifdef DEBUG | 2843 #ifdef DEBUG |
| 2842 virtual void Verify(); | 2844 virtual void Verify(); |
| 2843 #endif | 2845 #endif |
| 2844 | 2846 |
| 2845 virtual void FinalizeUniqueValueId() { | 2847 virtual void FinalizeUniqueValueId() { |
| 2846 target_unique_id_ = UniqueValueId(target_); | 2848 target_unique_id_ = UniqueValueId(target_); |
| 2847 } | 2849 } |
| 2848 | 2850 |
| 2849 Handle<JSFunction> target() const { return target_; } | 2851 Handle<JSFunction> target() const { return target_; } |
| 2850 bool target_in_new_space() const { return target_in_new_space_; } | 2852 bool target_in_new_space() const { return target_in_new_space_; } |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3404 } | 3406 } |
| 3405 } | 3407 } |
| 3406 | 3408 |
| 3407 virtual void FinalizeUniqueValueId() { | 3409 virtual void FinalizeUniqueValueId() { |
| 3408 if (!has_double_value_) { | 3410 if (!has_double_value_) { |
| 3409 ASSERT(!handle_.is_null()); | 3411 ASSERT(!handle_.is_null()); |
| 3410 unique_id_ = UniqueValueId(handle_); | 3412 unique_id_ = UniqueValueId(handle_); |
| 3411 } | 3413 } |
| 3412 } | 3414 } |
| 3413 | 3415 |
| 3416 bool UniqueValueIdsMatch(UniqueValueId other) { |
| 3417 if (!has_double_value_) return unique_id_ == other; |
| 3418 return false; |
| 3419 } |
| 3420 |
| 3414 #ifdef DEBUG | 3421 #ifdef DEBUG |
| 3415 virtual void Verify() { } | 3422 virtual void Verify() { } |
| 3416 #endif | 3423 #endif |
| 3417 | 3424 |
| 3418 DECLARE_CONCRETE_INSTRUCTION(Constant) | 3425 DECLARE_CONCRETE_INSTRUCTION(Constant) |
| 3419 | 3426 |
| 3420 protected: | 3427 protected: |
| 3421 virtual Range* InferRange(Zone* zone); | 3428 virtual Range* InferRange(Zone* zone); |
| 3422 | 3429 |
| 3423 virtual bool DataEquals(HValue* other) { | 3430 virtual bool DataEquals(HValue* other) { |
| (...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6682 virtual bool IsDeletable() const { return true; } | 6689 virtual bool IsDeletable() const { return true; } |
| 6683 }; | 6690 }; |
| 6684 | 6691 |
| 6685 | 6692 |
| 6686 #undef DECLARE_INSTRUCTION | 6693 #undef DECLARE_INSTRUCTION |
| 6687 #undef DECLARE_CONCRETE_INSTRUCTION | 6694 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6688 | 6695 |
| 6689 } } // namespace v8::internal | 6696 } } // namespace v8::internal |
| 6690 | 6697 |
| 6691 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6698 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |