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 5631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5642 | 5642 |
5643 inline HObjectAccess WithRepresentation(Representation representation) { | 5643 inline HObjectAccess WithRepresentation(Representation representation) { |
5644 return HObjectAccess(portion(), offset(), representation, name()); | 5644 return HObjectAccess(portion(), offset(), representation, name()); |
5645 } | 5645 } |
5646 | 5646 |
5647 static HObjectAccess ForHeapNumberValue() { | 5647 static HObjectAccess ForHeapNumberValue() { |
5648 return HObjectAccess( | 5648 return HObjectAccess( |
5649 kDouble, HeapNumber::kValueOffset, Representation::Double()); | 5649 kDouble, HeapNumber::kValueOffset, Representation::Double()); |
5650 } | 5650 } |
5651 | 5651 |
| 5652 static HObjectAccess ForHeapNumberValueLowestBits() { |
| 5653 return HObjectAccess(kDouble, |
| 5654 HeapNumber::kValueOffset, |
| 5655 Representation::Integer32()); |
| 5656 } |
| 5657 |
| 5658 static HObjectAccess ForHeapNumberValueHighestBits() { |
| 5659 return HObjectAccess(kDouble, |
| 5660 HeapNumber::kValueOffset + kIntSize, |
| 5661 Representation::Integer32()); |
| 5662 } |
| 5663 |
5652 static HObjectAccess ForElementsPointer() { | 5664 static HObjectAccess ForElementsPointer() { |
5653 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5665 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5654 } | 5666 } |
5655 | 5667 |
5656 static HObjectAccess ForLiteralsPointer() { | 5668 static HObjectAccess ForLiteralsPointer() { |
5657 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); | 5669 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); |
5658 } | 5670 } |
5659 | 5671 |
5660 static HObjectAccess ForNextFunctionLinkPointer() { | 5672 static HObjectAccess ForNextFunctionLinkPointer() { |
5661 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); | 5673 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7048 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7060 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7049 }; | 7061 }; |
7050 | 7062 |
7051 | 7063 |
7052 #undef DECLARE_INSTRUCTION | 7064 #undef DECLARE_INSTRUCTION |
7053 #undef DECLARE_CONCRETE_INSTRUCTION | 7065 #undef DECLARE_CONCRETE_INSTRUCTION |
7054 | 7066 |
7055 } } // namespace v8::internal | 7067 } } // namespace v8::internal |
7056 | 7068 |
7057 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7069 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |