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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length); | 1676 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length); |
1677 | 1677 |
1678 // Get the header size for a JSObject. Used to compute the index of | 1678 // Get the header size for a JSObject. Used to compute the index of |
1679 // internal fields as well as the number of internal fields. | 1679 // internal fields as well as the number of internal fields. |
1680 inline int GetHeaderSize(); | 1680 inline int GetHeaderSize(); |
1681 | 1681 |
1682 inline int GetInternalFieldCount(); | 1682 inline int GetInternalFieldCount(); |
1683 inline int GetInternalFieldOffset(int index); | 1683 inline int GetInternalFieldOffset(int index); |
1684 inline Object* GetInternalField(int index); | 1684 inline Object* GetInternalField(int index); |
1685 inline void SetInternalField(int index, Object* value); | 1685 inline void SetInternalField(int index, Object* value); |
| 1686 inline void SetInternalField(int index, Smi* value); |
1686 | 1687 |
1687 // The following lookup functions skip interceptors. | 1688 // The following lookup functions skip interceptors. |
1688 void LocalLookupRealNamedProperty(String* name, LookupResult* result); | 1689 void LocalLookupRealNamedProperty(String* name, LookupResult* result); |
1689 void LookupRealNamedProperty(String* name, LookupResult* result); | 1690 void LookupRealNamedProperty(String* name, LookupResult* result); |
1690 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result); | 1691 void LookupRealNamedPropertyInPrototypes(String* name, LookupResult* result); |
1691 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result); | 1692 void LookupCallbackSetterInPrototypes(String* name, LookupResult* result); |
1692 MUST_USE_RESULT MaybeObject* SetElementWithCallbackSetterInPrototypes( | 1693 MUST_USE_RESULT MaybeObject* SetElementWithCallbackSetterInPrototypes( |
1693 uint32_t index, Object* value, bool* found, StrictModeFlag strict_mode); | 1694 uint32_t index, Object* value, bool* found, StrictModeFlag strict_mode); |
1694 void LookupCallback(String* name, LookupResult* result); | 1695 void LookupCallback(String* name, LookupResult* result); |
1695 | 1696 |
(...skipping 6179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7875 } else { | 7876 } else { |
7876 value &= ~(1 << bit_position); | 7877 value &= ~(1 << bit_position); |
7877 } | 7878 } |
7878 return value; | 7879 return value; |
7879 } | 7880 } |
7880 }; | 7881 }; |
7881 | 7882 |
7882 } } // namespace v8::internal | 7883 } } // namespace v8::internal |
7883 | 7884 |
7884 #endif // V8_OBJECTS_H_ | 7885 #endif // V8_OBJECTS_H_ |
OLD | NEW |