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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 5106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5117 | 5117 |
5118 static HObjectAccess ForOddballTypeOf() { | 5118 static HObjectAccess ForOddballTypeOf() { |
5119 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, | 5119 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, |
5120 Representation::HeapObject()); | 5120 Representation::HeapObject()); |
5121 } | 5121 } |
5122 | 5122 |
5123 static HObjectAccess ForElementsPointer() { | 5123 static HObjectAccess ForElementsPointer() { |
5124 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5124 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5125 } | 5125 } |
5126 | 5126 |
5127 static HObjectAccess ForLiteralsPointer() { | |
5128 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); | |
5129 } | |
5130 | |
5131 static HObjectAccess ForNextFunctionLinkPointer() { | 5127 static HObjectAccess ForNextFunctionLinkPointer() { |
5132 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); | 5128 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); |
5133 } | 5129 } |
5134 | 5130 |
5135 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { | 5131 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { |
5136 return HObjectAccess( | 5132 return HObjectAccess( |
5137 kArrayLengths, | 5133 kArrayLengths, |
5138 JSArray::kLengthOffset, | 5134 JSArray::kLengthOffset, |
5139 IsFastElementsKind(elements_kind) | 5135 IsFastElementsKind(elements_kind) |
5140 ? Representation::Smi() : Representation::Tagged()); | 5136 ? Representation::Smi() : Representation::Tagged()); |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6756 bool IsDeletable() const override { return true; } | 6752 bool IsDeletable() const override { return true; } |
6757 }; | 6753 }; |
6758 | 6754 |
6759 #undef DECLARE_INSTRUCTION | 6755 #undef DECLARE_INSTRUCTION |
6760 #undef DECLARE_CONCRETE_INSTRUCTION | 6756 #undef DECLARE_CONCRETE_INSTRUCTION |
6761 | 6757 |
6762 } // namespace internal | 6758 } // namespace internal |
6763 } // namespace v8 | 6759 } // namespace v8 |
6764 | 6760 |
6765 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6761 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |