Chromium Code Reviews| 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 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2830 SetFlag(kUseGVN); | 2830 SetFlag(kUseGVN); |
| 2831 target_in_new_space_ = Isolate::Current()->heap()->InNewSpace(*function); | 2831 target_in_new_space_ = Isolate::Current()->heap()->InNewSpace(*function); |
| 2832 } | 2832 } |
| 2833 | 2833 |
| 2834 virtual Representation RequiredInputRepresentation(int index) { | 2834 virtual Representation RequiredInputRepresentation(int index) { |
| 2835 return Representation::Tagged(); | 2835 return Representation::Tagged(); |
| 2836 } | 2836 } |
| 2837 virtual void PrintDataTo(StringStream* stream); | 2837 virtual void PrintDataTo(StringStream* stream); |
| 2838 virtual HType CalculateInferredType(); | 2838 virtual HType CalculateInferredType(); |
| 2839 | 2839 |
| 2840 virtual HValue* Canonicalize(); | |
| 2841 | |
| 2840 #ifdef DEBUG | 2842 #ifdef DEBUG |
| 2841 virtual void Verify(); | 2843 virtual void Verify(); |
| 2842 #endif | 2844 #endif |
| 2843 | 2845 |
| 2844 virtual void FinalizeUniqueValueId() { | 2846 virtual void FinalizeUniqueValueId() { |
| 2845 target_unique_id_ = UniqueValueId(target_); | 2847 target_unique_id_ = UniqueValueId(target_); |
| 2846 } | 2848 } |
| 2847 | 2849 |
| 2848 Handle<JSFunction> target() const { return target_; } | 2850 Handle<JSFunction> target() const { return target_; } |
| 2849 bool target_in_new_space() const { return target_in_new_space_; } | 2851 bool target_in_new_space() const { return target_in_new_space_; } |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3403 } | 3405 } |
| 3404 } | 3406 } |
| 3405 | 3407 |
| 3406 virtual void FinalizeUniqueValueId() { | 3408 virtual void FinalizeUniqueValueId() { |
| 3407 if (!has_double_value_) { | 3409 if (!has_double_value_) { |
| 3408 ASSERT(!handle_.is_null()); | 3410 ASSERT(!handle_.is_null()); |
| 3409 unique_id_ = UniqueValueId(handle_); | 3411 unique_id_ = UniqueValueId(handle_); |
| 3410 } | 3412 } |
| 3411 } | 3413 } |
| 3412 | 3414 |
| 3415 bool UniqueValueIdsMatch(UniqueValueId other) { | |
| 3416 if (!has_double_value_) return unique_id_ == other; | |
|
Sven Panne
2013/07/17 08:09:56
return !has_double_value_ && unique_id_ == other;
mvstanton
2013/07/17 08:45:46
Done.
| |
| 3417 return false; | |
| 3418 } | |
| 3419 | |
| 3413 #ifdef DEBUG | 3420 #ifdef DEBUG |
| 3414 virtual void Verify() { } | 3421 virtual void Verify() { } |
| 3415 #endif | 3422 #endif |
| 3416 | 3423 |
| 3417 DECLARE_CONCRETE_INSTRUCTION(Constant) | 3424 DECLARE_CONCRETE_INSTRUCTION(Constant) |
| 3418 | 3425 |
| 3419 protected: | 3426 protected: |
| 3420 virtual Range* InferRange(Zone* zone); | 3427 virtual Range* InferRange(Zone* zone); |
| 3421 | 3428 |
| 3422 virtual bool DataEquals(HValue* other) { | 3429 virtual bool DataEquals(HValue* other) { |
| (...skipping 3215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6638 virtual bool IsDeletable() const { return true; } | 6645 virtual bool IsDeletable() const { return true; } |
| 6639 }; | 6646 }; |
| 6640 | 6647 |
| 6641 | 6648 |
| 6642 #undef DECLARE_INSTRUCTION | 6649 #undef DECLARE_INSTRUCTION |
| 6643 #undef DECLARE_CONCRETE_INSTRUCTION | 6650 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6644 | 6651 |
| 6645 } } // namespace v8::internal | 6652 } } // namespace v8::internal |
| 6646 | 6653 |
| 6647 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6654 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |