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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 return result; | 1101 return result; |
1102 } | 1102 } |
1103 | 1103 |
1104 | 1104 |
1105 MaybeObject* Object::GetProperty(Name* key) { | 1105 MaybeObject* Object::GetProperty(Name* key) { |
1106 PropertyAttributes attributes; | 1106 PropertyAttributes attributes; |
1107 return GetPropertyWithReceiver(this, key, &attributes); | 1107 return GetPropertyWithReceiver(this, key, &attributes); |
1108 } | 1108 } |
1109 | 1109 |
1110 | 1110 |
1111 MaybeObject* Object::GetProperty(Name* key, PropertyAttributes* attributes) { | |
1112 return GetPropertyWithReceiver(this, key, attributes); | |
1113 } | |
1114 | |
1115 | |
1116 #define FIELD_ADDR(p, offset) \ | 1111 #define FIELD_ADDR(p, offset) \ |
1117 (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag) | 1112 (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag) |
1118 | 1113 |
1119 #define READ_FIELD(p, offset) \ | 1114 #define READ_FIELD(p, offset) \ |
1120 (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset))) | 1115 (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset))) |
1121 | 1116 |
1122 #define ACQUIRE_READ_FIELD(p, offset) \ | 1117 #define ACQUIRE_READ_FIELD(p, offset) \ |
1123 reinterpret_cast<Object*>( \ | 1118 reinterpret_cast<Object*>( \ |
1124 Acquire_Load(reinterpret_cast<AtomicWord*>(FIELD_ADDR(p, offset)))) | 1119 Acquire_Load(reinterpret_cast<AtomicWord*>(FIELD_ADDR(p, offset)))) |
1125 | 1120 |
(...skipping 5965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7091 #undef READ_UINT32_FIELD | 7086 #undef READ_UINT32_FIELD |
7092 #undef WRITE_UINT32_FIELD | 7087 #undef WRITE_UINT32_FIELD |
7093 #undef READ_SHORT_FIELD | 7088 #undef READ_SHORT_FIELD |
7094 #undef WRITE_SHORT_FIELD | 7089 #undef WRITE_SHORT_FIELD |
7095 #undef READ_BYTE_FIELD | 7090 #undef READ_BYTE_FIELD |
7096 #undef WRITE_BYTE_FIELD | 7091 #undef WRITE_BYTE_FIELD |
7097 | 7092 |
7098 } } // namespace v8::internal | 7093 } } // namespace v8::internal |
7099 | 7094 |
7100 #endif // V8_OBJECTS_INL_H_ | 7095 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |