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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 return JSProxy::cast(holder_); | 261 return JSProxy::cast(holder_); |
262 } | 262 } |
263 | 263 |
264 PropertyType type() { | 264 PropertyType type() { |
265 ASSERT(IsFound()); | 265 ASSERT(IsFound()); |
266 return details_.type(); | 266 return details_.type(); |
267 } | 267 } |
268 | 268 |
269 Representation representation() { | 269 Representation representation() { |
270 ASSERT(IsFound()); | 270 ASSERT(IsFound()); |
| 271 ASSERT(!IsTransition()); |
| 272 ASSERT(details_.type() != NONEXISTENT); |
271 return details_.representation(); | 273 return details_.representation(); |
272 } | 274 } |
273 | 275 |
274 PropertyAttributes GetAttributes() { | 276 PropertyAttributes GetAttributes() { |
275 ASSERT(!IsTransition()); | 277 ASSERT(!IsTransition()); |
276 ASSERT(IsFound()); | 278 ASSERT(IsFound()); |
277 ASSERT(details_.type() != NONEXISTENT); | 279 ASSERT(details_.type() != NONEXISTENT); |
278 return details_.attributes(); | 280 return details_.attributes(); |
279 } | 281 } |
280 | 282 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 JSReceiver* holder_; | 494 JSReceiver* holder_; |
493 int number_; | 495 int number_; |
494 bool cacheable_; | 496 bool cacheable_; |
495 PropertyDetails details_; | 497 PropertyDetails details_; |
496 }; | 498 }; |
497 | 499 |
498 | 500 |
499 } } // namespace v8::internal | 501 } } // namespace v8::internal |
500 | 502 |
501 #endif // V8_PROPERTY_H_ | 503 #endif // V8_PROPERTY_H_ |
OLD | NEW |