Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: src/objects.h

Issue 386027: Merge r3294 and r3295 to 1.3 branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.3/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 Object* GetPropertyWithFailedAccessCheck(Object* receiver, 1483 Object* GetPropertyWithFailedAccessCheck(Object* receiver,
1484 LookupResult* result, 1484 LookupResult* result,
1485 String* name, 1485 String* name,
1486 PropertyAttributes* attributes); 1486 PropertyAttributes* attributes);
1487 Object* GetPropertyWithInterceptor(JSObject* receiver, 1487 Object* GetPropertyWithInterceptor(JSObject* receiver,
1488 String* name, 1488 String* name,
1489 PropertyAttributes* attributes); 1489 PropertyAttributes* attributes);
1490 Object* GetPropertyPostInterceptor(JSObject* receiver, 1490 Object* GetPropertyPostInterceptor(JSObject* receiver,
1491 String* name, 1491 String* name,
1492 PropertyAttributes* attributes); 1492 PropertyAttributes* attributes);
1493 Object* GetLocalPropertyPostInterceptor(JSObject* receiver,
1494 String* name,
1495 PropertyAttributes* attributes);
1493 Object* GetLazyProperty(Object* receiver, 1496 Object* GetLazyProperty(Object* receiver,
1494 LookupResult* result, 1497 LookupResult* result,
1495 String* name, 1498 String* name,
1496 PropertyAttributes* attributes); 1499 PropertyAttributes* attributes);
1497 1500
1498 // Tells whether this object needs to be loaded. 1501 // Tells whether this object needs to be loaded.
1499 inline bool IsLoaded(); 1502 inline bool IsLoaded();
1500 1503
1501 // Returns true if this is an instance of an api function and has 1504 // Returns true if this is an instance of an api function and has
1502 // been modified since it was created. May give false positives. 1505 // been modified since it was created. May give false positives.
1503 bool IsDirty(); 1506 bool IsDirty();
1504 1507
1505 bool HasProperty(String* name) { 1508 bool HasProperty(String* name) {
1506 return GetPropertyAttribute(name) != ABSENT; 1509 return GetPropertyAttribute(name) != ABSENT;
1507 } 1510 }
1508 1511
1509 // Can cause a GC if it hits an interceptor. 1512 // Can cause a GC if it hits an interceptor.
1510 bool HasLocalProperty(String* name) { 1513 bool HasLocalProperty(String* name) {
1511 return GetLocalPropertyAttribute(name) != ABSENT; 1514 return GetLocalPropertyAttribute(name) != ABSENT;
1512 } 1515 }
1513 1516
1517 // If the receiver is a JSGlobalProxy this method will return its prototype,
1518 // otherwise the result is the receiver itself.
1519 inline Object* BypassGlobalProxy();
1520
1521 // Accessors for hidden properties object.
1522 //
1523 // Hidden properties are not local properties of the object itself.
1524 // Instead they are stored on an auxiliary JSObject stored as a local
1525 // property with a special name Heap::hidden_symbol(). But if the
1526 // receiver is a JSGlobalProxy then the auxiliary object is a property
1527 // of its prototype.
1528 //
1529 // Has/Get/SetHiddenPropertiesObject methods don't allow the holder to be
1530 // a JSGlobalProxy. Use BypassGlobalProxy method above to get to the real
1531 // holder.
1532 //
1533 // These accessors do not touch interceptors or accessors.
1534 inline bool HasHiddenPropertiesObject();
1535 inline Object* GetHiddenPropertiesObject();
1536 inline Object* SetHiddenPropertiesObject(Object* hidden_obj);
1537
1514 Object* DeleteProperty(String* name, DeleteMode mode); 1538 Object* DeleteProperty(String* name, DeleteMode mode);
1515 Object* DeleteElement(uint32_t index, DeleteMode mode); 1539 Object* DeleteElement(uint32_t index, DeleteMode mode);
1516 Object* DeleteLazyProperty(LookupResult* result, 1540 Object* DeleteLazyProperty(LookupResult* result,
1517 String* name, 1541 String* name,
1518 DeleteMode mode); 1542 DeleteMode mode);
1519 1543
1520 // Tests for the fast common case for property enumeration. 1544 // Tests for the fast common case for property enumeration.
1521 bool IsSimpleEnum(); 1545 bool IsSimpleEnum();
1522 1546
1523 // Do we want to keep the elements in fast case when increasing the 1547 // Do we want to keep the elements in fast case when increasing the
(...skipping 3614 matching lines...) Expand 10 before | Expand all | Expand 10 after
5138 } else { 5162 } else {
5139 value &= ~(1 << bit_position); 5163 value &= ~(1 << bit_position);
5140 } 5164 }
5141 return value; 5165 return value;
5142 } 5166 }
5143 }; 5167 };
5144 5168
5145 } } // namespace v8::internal 5169 } } // namespace v8::internal
5146 5170
5147 #endif // V8_OBJECTS_H_ 5171 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698