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

Side by Side Diff: src/objects.h

Issue 6815029: Merge (7180:7265] from bleeding_edge to the experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/messages.js ('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 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 bool HasRealNamedCallbackProperty(String* key); 1490 bool HasRealNamedCallbackProperty(String* key);
1491 1491
1492 // Initializes the array to a certain length 1492 // Initializes the array to a certain length
1493 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length); 1493 MUST_USE_RESULT MaybeObject* SetElementsLength(Object* length);
1494 1494
1495 // Get the header size for a JSObject. Used to compute the index of 1495 // Get the header size for a JSObject. Used to compute the index of
1496 // internal fields as well as the number of internal fields. 1496 // internal fields as well as the number of internal fields.
1497 inline int GetHeaderSize(); 1497 inline int GetHeaderSize();
1498 1498
1499 inline int GetInternalFieldCount(); 1499 inline int GetInternalFieldCount();
1500 inline int GetInternalFieldOffset(int index);
1500 inline Object* GetInternalField(int index); 1501 inline Object* GetInternalField(int index);
1501 inline void SetInternalField(int index, Object* value); 1502 inline void SetInternalField(int index, Object* value);
1502 1503
1503 // Lookup a property. If found, the result is valid and has 1504 // Lookup a property. If found, the result is valid and has
1504 // detailed information. 1505 // detailed information.
1505 void LocalLookup(String* name, LookupResult* result); 1506 void LocalLookup(String* name, LookupResult* result);
1506 void Lookup(String* name, LookupResult* result); 1507 void Lookup(String* name, LookupResult* result);
1507 1508
1508 // The following lookup functions skip interceptors. 1509 // The following lookup functions skip interceptors.
1509 void LocalLookupRealNamedProperty(String* name, LookupResult* result); 1510 void LocalLookupRealNamedProperty(String* name, LookupResult* result);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 // Transform slow named properties to fast variants. 1608 // Transform slow named properties to fast variants.
1608 // Returns failure if allocation failed. 1609 // Returns failure if allocation failed.
1609 MUST_USE_RESULT MaybeObject* TransformToFastProperties( 1610 MUST_USE_RESULT MaybeObject* TransformToFastProperties(
1610 int unused_property_fields); 1611 int unused_property_fields);
1611 1612
1612 // Access fast-case object properties at index. 1613 // Access fast-case object properties at index.
1613 inline Object* FastPropertyAt(int index); 1614 inline Object* FastPropertyAt(int index);
1614 inline Object* FastPropertyAtPut(int index, Object* value); 1615 inline Object* FastPropertyAtPut(int index, Object* value);
1615 1616
1616 // Access to in object properties. 1617 // Access to in object properties.
1618 inline int GetInObjectPropertyOffset(int index);
1617 inline Object* InObjectPropertyAt(int index); 1619 inline Object* InObjectPropertyAt(int index);
1618 inline Object* InObjectPropertyAtPut(int index, 1620 inline Object* InObjectPropertyAtPut(int index,
1619 Object* value, 1621 Object* value,
1620 WriteBarrierMode mode 1622 WriteBarrierMode mode
1621 = UPDATE_WRITE_BARRIER); 1623 = UPDATE_WRITE_BARRIER);
1622 1624
1623 // initializes the body after properties slot, properties slot is 1625 // initializes the body after properties slot, properties slot is
1624 // initialized by set_properties 1626 // initialized by set_properties
1625 // Note: this call does not update write barrier, it is caller's 1627 // Note: this call does not update write barrier, it is caller's
1626 // reponsibility to ensure that *v* can be collected without WB here. 1628 // reponsibility to ensure that *v* can be collected without WB here.
(...skipping 4906 matching lines...) Expand 10 before | Expand all | Expand 10 after
6533 } else { 6535 } else {
6534 value &= ~(1 << bit_position); 6536 value &= ~(1 << bit_position);
6535 } 6537 }
6536 return value; 6538 return value;
6537 } 6539 }
6538 }; 6540 };
6539 6541
6540 } } // namespace v8::internal 6542 } } // namespace v8::internal
6541 6543
6542 #endif // V8_OBJECTS_H_ 6544 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698