OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 6825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6836 HObjectAccess access() const { return access_; } | 6836 HObjectAccess access() const { return access_; } |
6837 HValue* dominator() const { return dominator_; } | 6837 HValue* dominator() const { return dominator_; } |
6838 bool has_transition() const { return HasTransitionField::decode(bit_field_); } | 6838 bool has_transition() const { return HasTransitionField::decode(bit_field_); } |
6839 StoreFieldOrKeyedMode store_mode() const { | 6839 StoreFieldOrKeyedMode store_mode() const { |
6840 return StoreModeField::decode(bit_field_); | 6840 return StoreModeField::decode(bit_field_); |
6841 } | 6841 } |
6842 | 6842 |
6843 Handle<Map> transition_map() const { | 6843 Handle<Map> transition_map() const { |
6844 if (has_transition()) { | 6844 if (has_transition()) { |
6845 return Handle<Map>::cast( | 6845 return Handle<Map>::cast( |
6846 HConstant::cast(transition())->handle(Isolate::Current())); | 6846 HConstant::cast(transition())->handle(isolate())); |
6847 } else { | 6847 } else { |
6848 return Handle<Map>(); | 6848 return Handle<Map>(); |
6849 } | 6849 } |
6850 } | 6850 } |
6851 | 6851 |
6852 void SetTransition(HConstant* transition) { | 6852 void SetTransition(HConstant* transition) { |
6853 DCHECK(!has_transition()); // Only set once. | 6853 DCHECK(!has_transition()); // Only set once. |
6854 SetOperandAt(2, transition); | 6854 SetOperandAt(2, transition); |
6855 bit_field_ = HasTransitionField::update(bit_field_, true); | 6855 bit_field_ = HasTransitionField::update(bit_field_, true); |
6856 SetChangesFlag(kMaps); | 6856 SetChangesFlag(kMaps); |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7945 }; | 7945 }; |
7946 | 7946 |
7947 | 7947 |
7948 | 7948 |
7949 #undef DECLARE_INSTRUCTION | 7949 #undef DECLARE_INSTRUCTION |
7950 #undef DECLARE_CONCRETE_INSTRUCTION | 7950 #undef DECLARE_CONCRETE_INSTRUCTION |
7951 | 7951 |
7952 } } // namespace v8::internal | 7952 } } // namespace v8::internal |
7953 | 7953 |
7954 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7954 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |