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 5975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5986 static HObjectAccess ForJSArrayBufferViewByteOffset() { | 5986 static HObjectAccess ForJSArrayBufferViewByteOffset() { |
5987 return HObjectAccess::ForJSObjectOffset( | 5987 return HObjectAccess::ForJSObjectOffset( |
5988 JSArrayBufferView::kByteOffsetOffset); | 5988 JSArrayBufferView::kByteOffsetOffset); |
5989 } | 5989 } |
5990 | 5990 |
5991 static HObjectAccess ForJSArrayBufferViewByteLength() { | 5991 static HObjectAccess ForJSArrayBufferViewByteLength() { |
5992 return HObjectAccess::ForJSObjectOffset( | 5992 return HObjectAccess::ForJSObjectOffset( |
5993 JSArrayBufferView::kByteLengthOffset); | 5993 JSArrayBufferView::kByteLengthOffset); |
5994 } | 5994 } |
5995 | 5995 |
| 5996 static HObjectAccess ForGlobalObjectNativeContext() { |
| 5997 return HObjectAccess(kInobject, GlobalObject::kNativeContextOffset); |
| 5998 } |
| 5999 |
5996 void PrintTo(StringStream* stream); | 6000 void PrintTo(StringStream* stream); |
5997 | 6001 |
5998 inline bool Equals(HObjectAccess that) const { | 6002 inline bool Equals(HObjectAccess that) const { |
5999 return value_ == that.value_; // portion and offset must match | 6003 return value_ == that.value_; // portion and offset must match |
6000 } | 6004 } |
6001 | 6005 |
6002 protected: | 6006 protected: |
6003 void SetGVNFlags(HValue *instr, bool is_store); | 6007 void SetGVNFlags(HValue *instr, bool is_store); |
6004 | 6008 |
6005 private: | 6009 private: |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7468 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7472 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7469 }; | 7473 }; |
7470 | 7474 |
7471 | 7475 |
7472 #undef DECLARE_INSTRUCTION | 7476 #undef DECLARE_INSTRUCTION |
7473 #undef DECLARE_CONCRETE_INSTRUCTION | 7477 #undef DECLARE_CONCRETE_INSTRUCTION |
7474 | 7478 |
7475 } } // namespace v8::internal | 7479 } } // namespace v8::internal |
7476 | 7480 |
7477 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7481 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |