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 | |
5682 static HObjectAccess ForElementsPointer() { | 5670 static HObjectAccess ForElementsPointer() { |
5683 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5671 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5684 } | 5672 } |
5685 | 5673 |
5686 static HObjectAccess ForLiteralsPointer() { | 5674 static HObjectAccess ForLiteralsPointer() { |
5687 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); | 5675 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); |
5688 } | 5676 } |
5689 | 5677 |
5690 static HObjectAccess ForNextFunctionLinkPointer() { | 5678 static HObjectAccess ForNextFunctionLinkPointer() { |
5691 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); | 5679 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7076 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7077 }; | 7065 }; |
7078 | 7066 |
7079 | 7067 |
7080 #undef DECLARE_INSTRUCTION | 7068 #undef DECLARE_INSTRUCTION |
7081 #undef DECLARE_CONCRETE_INSTRUCTION | 7069 #undef DECLARE_CONCRETE_INSTRUCTION |
7082 | 7070 |
7083 } } // namespace v8::internal | 7071 } } // namespace v8::internal |
7084 | 7072 |
7085 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |