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

Side by Side Diff: src/objects.h

Issue 11194080: Get the target field index when transitioning. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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/json-parser.h ('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 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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 Handle<JSObject> object, 1619 Handle<JSObject> object,
1620 Handle<String> key, 1620 Handle<String> key,
1621 Handle<Object> value, 1621 Handle<Object> value,
1622 PropertyAttributes attributes); 1622 PropertyAttributes attributes);
1623 1623
1624 // Try to follow an existing transition to a field with attributes NONE. The 1624 // Try to follow an existing transition to a field with attributes NONE. The
1625 // return value indicates whether the transition was successful. 1625 // return value indicates whether the transition was successful.
1626 static inline bool TryTransitionToField(Handle<JSObject> object, 1626 static inline bool TryTransitionToField(Handle<JSObject> object,
1627 Handle<String> key); 1627 Handle<String> key);
1628 1628
1629 inline int LastAddedFieldIndex();
1630
1629 // Extend the receiver with a single fast property appeared first in the 1631 // Extend the receiver with a single fast property appeared first in the
1630 // passed map. This also extends the property backing store if necessary. 1632 // passed map. This also extends the property backing store if necessary.
1631 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map); 1633 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map);
1632 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map); 1634 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map);
1633 1635
1634 // Can cause GC. 1636 // Can cause GC.
1635 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( 1637 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes(
1636 String* key, 1638 String* key,
1637 Object* value, 1639 Object* value,
1638 PropertyAttributes attributes); 1640 PropertyAttributes attributes);
(...skipping 7314 matching lines...) Expand 10 before | Expand all | Expand 10 after
8953 } else { 8955 } else {
8954 value &= ~(1 << bit_position); 8956 value &= ~(1 << bit_position);
8955 } 8957 }
8956 return value; 8958 return value;
8957 } 8959 }
8958 }; 8960 };
8959 8961
8960 } } // namespace v8::internal 8962 } } // namespace v8::internal
8961 8963
8962 #endif // V8_OBJECTS_H_ 8964 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json-parser.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698