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

Side by Side Diff: src/objects.h

Issue 11266011: Delivery logic for Object.observe (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamed and added comment Created 8 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/object-observe.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 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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 static const int kElementsOffset = kPropertiesOffset + kPointerSize; 2183 static const int kElementsOffset = kPropertiesOffset + kPointerSize;
2184 static const int kHeaderSize = kElementsOffset + kPointerSize; 2184 static const int kHeaderSize = kElementsOffset + kPointerSize;
2185 2185
2186 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize); 2186 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize);
2187 2187
2188 class BodyDescriptor : public FlexibleBodyDescriptor<kPropertiesOffset> { 2188 class BodyDescriptor : public FlexibleBodyDescriptor<kPropertiesOffset> {
2189 public: 2189 public:
2190 static inline int SizeOf(Map* map, HeapObject* object); 2190 static inline int SizeOf(Map* map, HeapObject* object);
2191 }; 2191 };
2192 2192
2193 // Deliver change records to observers. May cause GC.
2194 static void DeliverChangeRecords(Isolate* isolate);
2195
2193 private: 2196 private:
2194 friend class DictionaryElementsAccessor; 2197 friend class DictionaryElementsAccessor;
2195 2198
2196 MUST_USE_RESULT MaybeObject* GetElementWithCallback(Object* receiver, 2199 MUST_USE_RESULT MaybeObject* GetElementWithCallback(Object* receiver,
2197 Object* structure, 2200 Object* structure,
2198 uint32_t index, 2201 uint32_t index,
2199 Object* holder); 2202 Object* holder);
2200 MUST_USE_RESULT MaybeObject* SetElementWithCallback( 2203 MUST_USE_RESULT MaybeObject* SetElementWithCallback(
2201 Object* structure, 2204 Object* structure,
2202 uint32_t index, 2205 uint32_t index,
(...skipping 6773 matching lines...) Expand 10 before | Expand all | Expand 10 after
8976 } else { 8979 } else {
8977 value &= ~(1 << bit_position); 8980 value &= ~(1 << bit_position);
8978 } 8981 }
8979 return value; 8982 return value;
8980 } 8983 }
8981 }; 8984 };
8982 8985
8983 } } // namespace v8::internal 8986 } } // namespace v8::internal
8984 8987
8985 #endif // V8_OBJECTS_H_ 8988 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698