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 5649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5660 | 5660 |
5661 inline HObjectAccess WithRepresentation(Representation representation) { | 5661 inline HObjectAccess WithRepresentation(Representation representation) { |
5662 return HObjectAccess(portion(), offset(), representation, name()); | 5662 return HObjectAccess(portion(), offset(), representation, name()); |
5663 } | 5663 } |
5664 | 5664 |
5665 static HObjectAccess ForHeapNumberValue() { | 5665 static HObjectAccess ForHeapNumberValue() { |
5666 return HObjectAccess( | 5666 return HObjectAccess( |
5667 kDouble, HeapNumber::kValueOffset, Representation::Double()); | 5667 kDouble, HeapNumber::kValueOffset, Representation::Double()); |
5668 } | 5668 } |
5669 | 5669 |
| 5670 static HObjectAccess ForHeapNumberValueLowestBits() { |
| 5671 return HObjectAccess(kDouble, |
| 5672 HeapNumber::kValueOffset, |
| 5673 Representation::Integer32()); |
| 5674 } |
| 5675 |
| 5676 static HObjectAccess ForHeapNumberValueHighestBits() { |
| 5677 return HObjectAccess(kDouble, |
| 5678 HeapNumber::kValueOffset + kIntSize, |
| 5679 Representation::Integer32()); |
| 5680 } |
| 5681 |
5670 static HObjectAccess ForElementsPointer() { | 5682 static HObjectAccess ForElementsPointer() { |
5671 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5683 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5672 } | 5684 } |
5673 | 5685 |
5674 static HObjectAccess ForLiteralsPointer() { | 5686 static HObjectAccess ForLiteralsPointer() { |
5675 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); | 5687 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); |
5676 } | 5688 } |
5677 | 5689 |
5678 static HObjectAccess ForNextFunctionLinkPointer() { | 5690 static HObjectAccess ForNextFunctionLinkPointer() { |
5679 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); | 5691 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7076 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7065 }; | 7077 }; |
7066 | 7078 |
7067 | 7079 |
7068 #undef DECLARE_INSTRUCTION | 7080 #undef DECLARE_INSTRUCTION |
7069 #undef DECLARE_CONCRETE_INSTRUCTION | 7081 #undef DECLARE_CONCRETE_INSTRUCTION |
7070 | 7082 |
7071 } } // namespace v8::internal | 7083 } } // namespace v8::internal |
7072 | 7084 |
7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7085 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |