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 |
1111 | |
Toon Verwaest
2013/04/18 18:14:11
remove space again
| |
1104 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, | 1112 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, |
1105 JSReceiver* getter); | 1113 JSReceiver* getter); |
1106 | 1114 |
1107 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); | 1115 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); |
1108 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); | 1116 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); |
1109 // For use when we know that no exception can be thrown. | 1117 // For use when we know that no exception can be thrown. |
1110 inline Object* GetElementNoExceptionThrown(uint32_t index); | 1118 inline Object* GetElementNoExceptionThrown(uint32_t index); |
1111 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, | 1119 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, |
1112 uint32_t index); | 1120 uint32_t index); |
1113 | 1121 |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1562 }; | 1570 }; |
1563 | 1571 |
1564 // Casting. | 1572 // Casting. |
1565 static inline JSReceiver* cast(Object* obj); | 1573 static inline JSReceiver* cast(Object* obj); |
1566 | 1574 |
1567 static Handle<Object> SetProperty(Handle<JSReceiver> object, | 1575 static Handle<Object> SetProperty(Handle<JSReceiver> object, |
1568 Handle<Name> key, | 1576 Handle<Name> key, |
1569 Handle<Object> value, | 1577 Handle<Object> value, |
1570 PropertyAttributes attributes, | 1578 PropertyAttributes attributes, |
1571 StrictModeFlag strict_mode); | 1579 StrictModeFlag strict_mode); |
1580 | |
1581 MUST_USE_RESULT static MaybeObject* SetPropertyOrFail( | |
1582 Handle<JSReceiver> object, | |
1583 Handle<Name> key, | |
1584 Handle<Object> value, | |
1585 PropertyAttributes attributes, | |
1586 StrictModeFlag strict_mode, | |
1587 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); | |
1588 | |
1572 // Can cause GC. | 1589 // Can cause GC. |
1573 MUST_USE_RESULT MaybeObject* SetProperty( | 1590 MUST_USE_RESULT MaybeObject* SetProperty( |
1574 Name* key, | 1591 Name* key, |
1575 Object* value, | 1592 Object* value, |
1576 PropertyAttributes attributes, | 1593 PropertyAttributes attributes, |
1577 StrictModeFlag strict_mode, | 1594 StrictModeFlag strict_mode, |
1578 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); | 1595 StoreFromKeyed store_from_keyed = MAY_BE_STORE_FROM_KEYED); |
1579 MUST_USE_RESULT MaybeObject* SetProperty( | 1596 MUST_USE_RESULT MaybeObject* SetProperty( |
1580 LookupResult* result, | 1597 LookupResult* result, |
1581 Name* key, | 1598 Name* key, |
(...skipping 7810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
9392 } else { | 9409 } else { |
9393 value &= ~(1 << bit_position); | 9410 value &= ~(1 << bit_position); |
9394 } | 9411 } |
9395 return value; | 9412 return value; |
9396 } | 9413 } |
9397 }; | 9414 }; |
9398 | 9415 |
9399 } } // namespace v8::internal | 9416 } } // namespace v8::internal |
9400 | 9417 |
9401 #endif // V8_OBJECTS_H_ | 9418 #endif // V8_OBJECTS_H_ |
OLD | NEW |