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 <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 6161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6172 } | 6172 } |
6173 | 6173 |
6174 static HObjectAccess ForFunctionContextPointer() { | 6174 static HObjectAccess ForFunctionContextPointer() { |
6175 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 6175 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
6176 } | 6176 } |
6177 | 6177 |
6178 static HObjectAccess ForMap() { | 6178 static HObjectAccess ForMap() { |
6179 return HObjectAccess(kMaps, JSObject::kMapOffset); | 6179 return HObjectAccess(kMaps, JSObject::kMapOffset); |
6180 } | 6180 } |
6181 | 6181 |
| 6182 static HObjectAccess ForPrototype() { |
| 6183 return HObjectAccess(kMaps, Map::kPrototypeOffset); |
| 6184 } |
| 6185 |
6182 static HObjectAccess ForMapAsInteger32() { | 6186 static HObjectAccess ForMapAsInteger32() { |
6183 return HObjectAccess(kMaps, JSObject::kMapOffset, | 6187 return HObjectAccess(kMaps, JSObject::kMapOffset, |
6184 Representation::Integer32()); | 6188 Representation::Integer32()); |
6185 } | 6189 } |
6186 | 6190 |
6187 static HObjectAccess ForMapInObjectProperties() { | 6191 static HObjectAccess ForMapInObjectProperties() { |
6188 return HObjectAccess(kInobject, | 6192 return HObjectAccess(kInobject, |
6189 Map::kInObjectPropertiesOffset, | 6193 Map::kInObjectPropertiesOffset, |
6190 Representation::UInteger8()); | 6194 Representation::UInteger8()); |
6191 } | 6195 } |
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7996 }; | 8000 }; |
7997 | 8001 |
7998 | 8002 |
7999 | 8003 |
8000 #undef DECLARE_INSTRUCTION | 8004 #undef DECLARE_INSTRUCTION |
8001 #undef DECLARE_CONCRETE_INSTRUCTION | 8005 #undef DECLARE_CONCRETE_INSTRUCTION |
8002 | 8006 |
8003 } } // namespace v8::internal | 8007 } } // namespace v8::internal |
8004 | 8008 |
8005 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 8009 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |