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

Side by Side Diff: src/objects.h

Issue 6711034: [Isolates] Merge (7253,7263] from bleeding_edge. (Closed)
Patch Set: Created 9 years, 9 months 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
« no previous file with comments | « src/messages.js ('k') | src/objects-inl.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 bool HasRealNamedCallbackProperty(String* key); 1589 bool HasRealNamedCallbackProperty(String* key);
1590 1590
1591 // Initializes the array to a certain length 1591 // Initializes the array to a certain length
1592 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length); 1592 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length);
1593 1593
1594 // Get the header size for a JSObject. Used to compute the index of 1594 // Get the header size for a JSObject. Used to compute the index of
1595 // internal fields as well as the number of internal fields. 1595 // internal fields as well as the number of internal fields.
1596 inline int GetHeaderSize(); 1596 inline int GetHeaderSize();
1597 1597
1598 inline int GetInternalFieldCount(); 1598 inline int GetInternalFieldCount();
1599 inline int GetInternalFieldOffset(int index);
1599 inline Object* GetInternalField(int index); 1600 inline Object* GetInternalField(int index);
1600 inline void SetInternalField(int index, Object* value); 1601 inline void SetInternalField(int index, Object* value);
1601 1602
1602 // Lookup a property. If found, the result is valid and has 1603 // Lookup a property. If found, the result is valid and has
1603 // detailed information. 1604 // detailed information.
1604 void LocalLookup(String* name, LookupResult* result); 1605 void LocalLookup(String* name, LookupResult* result);
1605 void Lookup(String* name, LookupResult* result); 1606 void Lookup(String* name, LookupResult* result);
1606 1607
1607 // The following lookup functions skip interceptors. 1608 // The following lookup functions skip interceptors.
1608 void LocalLookupRealNamedProperty(String* name, LookupResult* result); 1609 void LocalLookupRealNamedProperty(String* name, LookupResult* result);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 // Transform slow named properties to fast variants. 1707 // Transform slow named properties to fast variants.
1707 // Returns failure if allocation failed. 1708 // Returns failure if allocation failed.
1708 MUST_USE_RESULT MaybeObject* TransformToFastProperties( 1709 MUST_USE_RESULT MaybeObject* TransformToFastProperties(
1709 int unused_property_fields); 1710 int unused_property_fields);
1710 1711
1711 // Access fast-case object properties at index. 1712 // Access fast-case object properties at index.
1712 inline Object* FastPropertyAt(int index); 1713 inline Object* FastPropertyAt(int index);
1713 inline Object* FastPropertyAtPut(int index, Object* value); 1714 inline Object* FastPropertyAtPut(int index, Object* value);
1714 1715
1715 // Access to in object properties. 1716 // Access to in object properties.
1717 inline int GetInObjectPropertyOffset(int index);
1716 inline Object* InObjectPropertyAt(int index); 1718 inline Object* InObjectPropertyAt(int index);
1717 inline Object* InObjectPropertyAtPut(int index, 1719 inline Object* InObjectPropertyAtPut(int index,
1718 Object* value, 1720 Object* value,
1719 WriteBarrierMode mode 1721 WriteBarrierMode mode
1720 = UPDATE_WRITE_BARRIER); 1722 = UPDATE_WRITE_BARRIER);
1721 1723
1722 // initializes the body after properties slot, properties slot is 1724 // initializes the body after properties slot, properties slot is
1723 // initialized by set_properties 1725 // initialized by set_properties
1724 // Note: this call does not update write barrier, it is caller's 1726 // Note: this call does not update write barrier, it is caller's
1725 // reponsibility to ensure that *v* can be collected without WB here. 1727 // reponsibility to ensure that *v* can be collected without WB here.
(...skipping 4889 matching lines...) Expand 10 before | Expand all | Expand 10 after
6615 } else { 6617 } else {
6616 value &= ~(1 << bit_position); 6618 value &= ~(1 << bit_position);
6617 } 6619 }
6618 return value; 6620 return value;
6619 } 6621 }
6620 }; 6622 };
6621 6623
6622 } } // namespace v8::internal 6624 } } // namespace v8::internal
6623 6625
6624 #endif // V8_OBJECTS_H_ 6626 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698