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 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 PropertyAttributes* attributes); | 2354 PropertyAttributes* attributes); |
2355 MUST_USE_RESULT MaybeObject* GetLocalPropertyPostInterceptor( | 2355 MUST_USE_RESULT MaybeObject* GetLocalPropertyPostInterceptor( |
2356 Object* receiver, | 2356 Object* receiver, |
2357 Name* name, | 2357 Name* name, |
2358 PropertyAttributes* attributes); | 2358 PropertyAttributes* attributes); |
2359 | 2359 |
2360 // Returns true if this is an instance of an api function and has | 2360 // Returns true if this is an instance of an api function and has |
2361 // been modified since it was created. May give false positives. | 2361 // been modified since it was created. May give false positives. |
2362 bool IsDirty(); | 2362 bool IsDirty(); |
2363 | 2363 |
2364 // If the receiver is a JSGlobalProxy this method will return its prototype, | |
2365 // otherwise the result is the receiver itself. | |
2366 inline Object* BypassGlobalProxy(); | |
2367 | |
2368 // Accessors for hidden properties object. | 2364 // Accessors for hidden properties object. |
2369 // | 2365 // |
2370 // Hidden properties are not local properties of the object itself. | 2366 // Hidden properties are not local properties of the object itself. |
2371 // Instead they are stored in an auxiliary structure kept as a local | 2367 // Instead they are stored in an auxiliary structure kept as a local |
2372 // property with a special name Heap::hidden_string(). But if the | 2368 // property with a special name Heap::hidden_string(). But if the |
2373 // receiver is a JSGlobalProxy then the auxiliary object is a property | 2369 // receiver is a JSGlobalProxy then the auxiliary object is a property |
2374 // of its prototype, and if it's a detached proxy, then you can't have | 2370 // of its prototype, and if it's a detached proxy, then you can't have |
2375 // hidden properties. | 2371 // hidden properties. |
2376 | 2372 |
2377 // Sets a hidden property on this object. Returns this object if successful, | 2373 // Sets a hidden property on this object. Returns this object if successful, |
(...skipping 8399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10777 } else { | 10773 } else { |
10778 value &= ~(1 << bit_position); | 10774 value &= ~(1 << bit_position); |
10779 } | 10775 } |
10780 return value; | 10776 return value; |
10781 } | 10777 } |
10782 }; | 10778 }; |
10783 | 10779 |
10784 } } // namespace v8::internal | 10780 } } // namespace v8::internal |
10785 | 10781 |
10786 #endif // V8_OBJECTS_H_ | 10782 #endif // V8_OBJECTS_H_ |
OLD | NEW |