| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4322 DONT_ENUM, | 4322 DONT_ENUM, |
| 4323 kNonStrictMode); | 4323 kNonStrictMode); |
| 4324 } | 4324 } |
| 4325 | 4325 |
| 4326 | 4326 |
| 4327 bool JSObject::HasHiddenProperties() { | 4327 bool JSObject::HasHiddenProperties() { |
| 4328 return !GetHiddenProperties(OMIT_CREATION)->ToObjectChecked()->IsUndefined(); | 4328 return !GetHiddenProperties(OMIT_CREATION)->ToObjectChecked()->IsUndefined(); |
| 4329 } | 4329 } |
| 4330 | 4330 |
| 4331 | 4331 |
| 4332 bool JSObject::HasElement(uint32_t index) { | 4332 bool JSReceiver::HasElement(uint32_t index) { |
| 4333 return HasElementWithReceiver(this, index); | 4333 if (IsJSProxy()) { |
| 4334 return JSProxy::cast(this)->HasElementWithHandler(index); |
| 4335 } |
| 4336 return JSObject::cast(this)->HasElementWithReceiver(this, index); |
| 4334 } | 4337 } |
| 4335 | 4338 |
| 4336 | 4339 |
| 4337 bool AccessorInfo::all_can_read() { | 4340 bool AccessorInfo::all_can_read() { |
| 4338 return BooleanBit::get(flag(), kAllCanReadBit); | 4341 return BooleanBit::get(flag(), kAllCanReadBit); |
| 4339 } | 4342 } |
| 4340 | 4343 |
| 4341 | 4344 |
| 4342 void AccessorInfo::set_all_can_read(bool value) { | 4345 void AccessorInfo::set_all_can_read(bool value) { |
| 4343 set_flag(BooleanBit::set(flag(), kAllCanReadBit, value)); | 4346 set_flag(BooleanBit::set(flag(), kAllCanReadBit, value)); |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4618 #undef WRITE_INT_FIELD | 4621 #undef WRITE_INT_FIELD |
| 4619 #undef READ_SHORT_FIELD | 4622 #undef READ_SHORT_FIELD |
| 4620 #undef WRITE_SHORT_FIELD | 4623 #undef WRITE_SHORT_FIELD |
| 4621 #undef READ_BYTE_FIELD | 4624 #undef READ_BYTE_FIELD |
| 4622 #undef WRITE_BYTE_FIELD | 4625 #undef WRITE_BYTE_FIELD |
| 4623 | 4626 |
| 4624 | 4627 |
| 4625 } } // namespace v8::internal | 4628 } } // namespace v8::internal |
| 4626 | 4629 |
| 4627 #endif // V8_OBJECTS_INL_H_ | 4630 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |