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 6057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6068 static HObjectAccess ForJSArrayBufferViewByteOffset() { | 6068 static HObjectAccess ForJSArrayBufferViewByteOffset() { |
6069 return HObjectAccess::ForJSObjectOffset( | 6069 return HObjectAccess::ForJSObjectOffset( |
6070 JSArrayBufferView::kByteOffsetOffset); | 6070 JSArrayBufferView::kByteOffsetOffset); |
6071 } | 6071 } |
6072 | 6072 |
6073 static HObjectAccess ForJSArrayBufferViewByteLength() { | 6073 static HObjectAccess ForJSArrayBufferViewByteLength() { |
6074 return HObjectAccess::ForJSObjectOffset( | 6074 return HObjectAccess::ForJSObjectOffset( |
6075 JSArrayBufferView::kByteLengthOffset); | 6075 JSArrayBufferView::kByteLengthOffset); |
6076 } | 6076 } |
6077 | 6077 |
| 6078 static HObjectAccess ForGlobalObjectNativeContext() { |
| 6079 return HObjectAccess(kInobject, GlobalObject::kNativeContextOffset); |
| 6080 } |
| 6081 |
6078 void PrintTo(StringStream* stream); | 6082 void PrintTo(StringStream* stream); |
6079 | 6083 |
6080 inline bool Equals(HObjectAccess that) const { | 6084 inline bool Equals(HObjectAccess that) const { |
6081 return value_ == that.value_; // portion and offset must match | 6085 return value_ == that.value_; // portion and offset must match |
6082 } | 6086 } |
6083 | 6087 |
6084 protected: | 6088 protected: |
6085 void SetGVNFlags(HValue *instr, bool is_store); | 6089 void SetGVNFlags(HValue *instr, bool is_store); |
6086 | 6090 |
6087 private: | 6091 private: |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7529 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7533 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7530 }; | 7534 }; |
7531 | 7535 |
7532 | 7536 |
7533 #undef DECLARE_INSTRUCTION | 7537 #undef DECLARE_INSTRUCTION |
7534 #undef DECLARE_CONCRETE_INSTRUCTION | 7538 #undef DECLARE_CONCRETE_INSTRUCTION |
7535 | 7539 |
7536 } } // namespace v8::internal | 7540 } } // namespace v8::internal |
7537 | 7541 |
7538 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7542 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |