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 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength( | 2407 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength( |
2408 int capacity, | 2408 int capacity, |
2409 int length); | 2409 int length); |
2410 | 2410 |
2411 // Lookup interceptors are used for handling properties controlled by host | 2411 // Lookup interceptors are used for handling properties controlled by host |
2412 // objects. | 2412 // objects. |
2413 inline bool HasNamedInterceptor(); | 2413 inline bool HasNamedInterceptor(); |
2414 inline bool HasIndexedInterceptor(); | 2414 inline bool HasIndexedInterceptor(); |
2415 | 2415 |
2416 // Support functions for v8 api (needed for correct interceptor behavior). | 2416 // Support functions for v8 api (needed for correct interceptor behavior). |
2417 bool HasRealNamedProperty(Isolate* isolate, Name* key); | 2417 static bool HasRealNamedProperty(Handle<JSObject> object, |
2418 bool HasRealElementProperty(Isolate* isolate, uint32_t index); | 2418 Handle<Name> key); |
2419 bool HasRealNamedCallbackProperty(Isolate* isolate, Name* key); | 2419 static bool HasRealElementProperty(Handle<JSObject> object, uint32_t index); |
| 2420 static bool HasRealNamedCallbackProperty(Handle<JSObject> object, |
| 2421 Handle<Name> key); |
2420 | 2422 |
2421 // Get the header size for a JSObject. Used to compute the index of | 2423 // Get the header size for a JSObject. Used to compute the index of |
2422 // internal fields as well as the number of internal fields. | 2424 // internal fields as well as the number of internal fields. |
2423 inline int GetHeaderSize(); | 2425 inline int GetHeaderSize(); |
2424 | 2426 |
2425 inline int GetInternalFieldCount(); | 2427 inline int GetInternalFieldCount(); |
2426 inline int GetInternalFieldOffset(int index); | 2428 inline int GetInternalFieldOffset(int index); |
2427 inline Object* GetInternalField(int index); | 2429 inline Object* GetInternalField(int index); |
2428 inline void SetInternalField(int index, Object* value); | 2430 inline void SetInternalField(int index, Object* value); |
2429 inline void SetInternalField(int index, Smi* value); | 2431 inline void SetInternalField(int index, Smi* value); |
(...skipping 7988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10418 } else { | 10420 } else { |
10419 value &= ~(1 << bit_position); | 10421 value &= ~(1 << bit_position); |
10420 } | 10422 } |
10421 return value; | 10423 return value; |
10422 } | 10424 } |
10423 }; | 10425 }; |
10424 | 10426 |
10425 } } // namespace v8::internal | 10427 } } // namespace v8::internal |
10426 | 10428 |
10427 #endif // V8_OBJECTS_H_ | 10429 #endif // V8_OBJECTS_H_ |
OLD | NEW |