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 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5185 } | 5185 } |
5186 | 5186 |
5187 static HObjectAccess ForFixedArrayLength() { | 5187 static HObjectAccess ForFixedArrayLength() { |
5188 return HObjectAccess(kArrayLengths, FixedArray::kLengthOffset); | 5188 return HObjectAccess(kArrayLengths, FixedArray::kLengthOffset); |
5189 } | 5189 } |
5190 | 5190 |
5191 static HObjectAccess ForPropertiesPointer() { | 5191 static HObjectAccess ForPropertiesPointer() { |
5192 return HObjectAccess(kInobject, JSObject::kPropertiesOffset); | 5192 return HObjectAccess(kInobject, JSObject::kPropertiesOffset); |
5193 } | 5193 } |
5194 | 5194 |
| 5195 static HObjectAccess ForPrototypeOrInitialMap() { |
| 5196 return HObjectAccess(kInobject, JSFunction::kPrototypeOrInitialMapOffset); |
| 5197 } |
| 5198 |
5195 static HObjectAccess ForMap() { | 5199 static HObjectAccess ForMap() { |
5196 return HObjectAccess(kMaps, JSObject::kMapOffset); | 5200 return HObjectAccess(kMaps, JSObject::kMapOffset); |
5197 } | 5201 } |
5198 | 5202 |
5199 static HObjectAccess ForAllocationSitePayload() { | 5203 static HObjectAccess ForAllocationSitePayload() { |
5200 return HObjectAccess(kInobject, AllocationSiteInfo::kPayloadOffset); | 5204 return HObjectAccess(kInobject, AllocationSiteInfo::kPayloadOffset); |
5201 } | 5205 } |
5202 | 5206 |
5203 // Create an access to an offset in a fixed array header. | 5207 // Create an access to an offset in a fixed array header. |
5204 static HObjectAccess ForFixedArrayHeader(int offset); | 5208 static HObjectAccess ForFixedArrayHeader(int offset); |
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6500 virtual bool IsDeletable() const { return true; } | 6504 virtual bool IsDeletable() const { return true; } |
6501 }; | 6505 }; |
6502 | 6506 |
6503 | 6507 |
6504 #undef DECLARE_INSTRUCTION | 6508 #undef DECLARE_INSTRUCTION |
6505 #undef DECLARE_CONCRETE_INSTRUCTION | 6509 #undef DECLARE_CONCRETE_INSTRUCTION |
6506 | 6510 |
6507 } } // namespace v8::internal | 6511 } } // namespace v8::internal |
6508 | 6512 |
6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6513 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |