| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2891 HLoadContextSlot* b = HLoadContextSlot::cast(other); | 2891 HLoadContextSlot* b = HLoadContextSlot::cast(other); |
| 2892 return (slot_index() == b->slot_index()); | 2892 return (slot_index() == b->slot_index()); |
| 2893 } | 2893 } |
| 2894 | 2894 |
| 2895 private: | 2895 private: |
| 2896 int slot_index_; | 2896 int slot_index_; |
| 2897 }; | 2897 }; |
| 2898 | 2898 |
| 2899 | 2899 |
| 2900 static inline bool StoringValueNeedsWriteBarrier(HValue* value) { | 2900 static inline bool StoringValueNeedsWriteBarrier(HValue* value) { |
| 2901 return !value->type().IsSmi() && | 2901 return !value->type().IsSmi(); |
| 2902 !(value->IsConstant() && HConstant::cast(value)->InOldSpace()); | |
| 2903 } | 2902 } |
| 2904 | 2903 |
| 2905 | 2904 |
| 2906 class HStoreContextSlot: public HBinaryOperation { | 2905 class HStoreContextSlot: public HBinaryOperation { |
| 2907 public: | 2906 public: |
| 2908 HStoreContextSlot(HValue* context, int slot_index, HValue* value) | 2907 HStoreContextSlot(HValue* context, int slot_index, HValue* value) |
| 2909 : HBinaryOperation(context, value), slot_index_(slot_index) { | 2908 : HBinaryOperation(context, value), slot_index_(slot_index) { |
| 2910 SetFlag(kChangesContextSlots); | 2909 SetFlag(kChangesContextSlots); |
| 2911 } | 2910 } |
| 2912 | 2911 |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3497 HValue* object() { return left(); } | 3496 HValue* object() { return left(); } |
| 3498 HValue* key() { return right(); } | 3497 HValue* key() { return right(); } |
| 3499 }; | 3498 }; |
| 3500 | 3499 |
| 3501 #undef DECLARE_INSTRUCTION | 3500 #undef DECLARE_INSTRUCTION |
| 3502 #undef DECLARE_CONCRETE_INSTRUCTION | 3501 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3503 | 3502 |
| 3504 } } // namespace v8::internal | 3503 } } // namespace v8::internal |
| 3505 | 3504 |
| 3506 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3505 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |