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 6008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6019 | 6019 |
6020 static HObjectAccess ForOptimizedCodeMap() { | 6020 static HObjectAccess ForOptimizedCodeMap() { |
6021 return HObjectAccess(kInobject, | 6021 return HObjectAccess(kInobject, |
6022 SharedFunctionInfo::kOptimizedCodeMapOffset); | 6022 SharedFunctionInfo::kOptimizedCodeMapOffset); |
6023 } | 6023 } |
6024 | 6024 |
6025 static HObjectAccess ForFunctionContextPointer() { | 6025 static HObjectAccess ForFunctionContextPointer() { |
6026 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 6026 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
6027 } | 6027 } |
6028 | 6028 |
| 6029 static HObjectAccess ForFunctionConstantPoolPointer() { |
| 6030 return HObjectAccess(kInobject, JSFunction::kConstantPoolOffset); |
| 6031 } |
| 6032 |
6029 static HObjectAccess ForMap() { | 6033 static HObjectAccess ForMap() { |
6030 return HObjectAccess(kMaps, JSObject::kMapOffset); | 6034 return HObjectAccess(kMaps, JSObject::kMapOffset); |
6031 } | 6035 } |
6032 | 6036 |
6033 static HObjectAccess ForMapInstanceSize() { | 6037 static HObjectAccess ForMapInstanceSize() { |
6034 return HObjectAccess(kInobject, | 6038 return HObjectAccess(kInobject, |
6035 Map::kInstanceSizeOffset, | 6039 Map::kInstanceSizeOffset, |
6036 Representation::UInteger8()); | 6040 Representation::UInteger8()); |
6037 } | 6041 } |
6038 | 6042 |
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7485 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7489 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7486 }; | 7490 }; |
7487 | 7491 |
7488 | 7492 |
7489 #undef DECLARE_INSTRUCTION | 7493 #undef DECLARE_INSTRUCTION |
7490 #undef DECLARE_CONCRETE_INSTRUCTION | 7494 #undef DECLARE_CONCRETE_INSTRUCTION |
7491 | 7495 |
7492 } } // namespace v8::internal | 7496 } } // namespace v8::internal |
7493 | 7497 |
7494 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7498 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |