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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 Name* key, | 1089 Name* key, |
1090 PropertyAttributes* attributes); | 1090 PropertyAttributes* attributes); |
1091 | 1091 |
1092 static Handle<Object> GetProperty(Handle<Object> object, Handle<Name> key); | 1092 static Handle<Object> GetProperty(Handle<Object> object, Handle<Name> key); |
1093 static Handle<Object> GetProperty(Handle<Object> object, | 1093 static Handle<Object> GetProperty(Handle<Object> object, |
1094 Handle<Object> receiver, | 1094 Handle<Object> receiver, |
1095 LookupResult* result, | 1095 LookupResult* result, |
1096 Handle<Name> key, | 1096 Handle<Name> key, |
1097 PropertyAttributes* attributes); | 1097 PropertyAttributes* attributes); |
1098 | 1098 |
| 1099 MUST_USE_RESULT static MaybeObject* GetPropertyOrFail( |
| 1100 Handle<Object> object, |
| 1101 Handle<Object> receiver, |
| 1102 LookupResult* result, |
| 1103 Handle<Name> key, |
| 1104 PropertyAttributes* attributes); |
| 1105 |
1099 MUST_USE_RESULT MaybeObject* GetProperty(Object* receiver, | 1106 MUST_USE_RESULT MaybeObject* GetProperty(Object* receiver, |
1100 LookupResult* result, | 1107 LookupResult* result, |
1101 Name* key, | 1108 Name* key, |
1102 PropertyAttributes* attributes); | 1109 PropertyAttributes* attributes); |
1103 | 1110 |
1104 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, | 1111 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, |
1105 JSReceiver* getter); | 1112 JSReceiver* getter); |
1106 | 1113 |
1107 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); | 1114 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); |
1108 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); | 1115 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 }; | 1569 }; |
1563 | 1570 |
1564 // Casting. | 1571 // Casting. |
1565 static inline JSReceiver* cast(Object* obj); | 1572 static inline JSReceiver* cast(Object* obj); |
1566 | 1573 |
1567 static Handle<Object> SetProperty(Handle<JSReceiver> object, | 1574 static Handle<Object> SetProperty(Handle<JSReceiver> object, |
1568 Handle<Name> key, | 1575 Handle<Name> key, |
1569 Handle<Object> value, | 1576 Handle<Object> value, |
1570 PropertyAttributes attributes, | 1577 PropertyAttributes attributes, |
1571 StrictModeFlag strict_mode); | 1578 StrictModeFlag strict_mode); |
| 1579 |
| 1580 MUST_USE_RESULT static MaybeObject* SetPropertyOrFail( |
| 1581 Handle<JSReceiver> object, |
| 1582 Handle<Name> key, |
| 1583 Handle<Object> value, |
| 1584 PropertyAttributes attributes, |
| 1585 StrictModeFlag strict_mode, |
| 1586 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); |
| 1587 |
1572 // Can cause GC. | 1588 // Can cause GC. |
1573 MUST_USE_RESULT MaybeObject* SetProperty( | 1589 MUST_USE_RESULT MaybeObject* SetProperty( |
1574 Name* key, | 1590 Name* key, |
1575 Object* value, | 1591 Object* value, |
1576 PropertyAttributes attributes, | 1592 PropertyAttributes attributes, |
1577 StrictModeFlag strict_mode, | 1593 StrictModeFlag strict_mode, |
1578 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); | 1594 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); |
1579 MUST_USE_RESULT MaybeObject* SetProperty( | 1595 MUST_USE_RESULT MaybeObject* SetProperty( |
1580 LookupResult* result, | 1596 LookupResult* result, |
1581 Name* key, | 1597 Name* key, |
(...skipping 7823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9405 } else { | 9421 } else { |
9406 value &= ~(1 << bit_position); | 9422 value &= ~(1 << bit_position); |
9407 } | 9423 } |
9408 return value; | 9424 return value; |
9409 } | 9425 } |
9410 }; | 9426 }; |
9411 | 9427 |
9412 } } // namespace v8::internal | 9428 } } // namespace v8::internal |
9413 | 9429 |
9414 #endif // V8_OBJECTS_H_ | 9430 #endif // V8_OBJECTS_H_ |
OLD | NEW |