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