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

Side by Side Diff: src/objects.h

Issue 653593002: Catch exceptions thrown when enqueuing change records. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 Handle<Object> object, Handle<Name> key, Handle<Object> value, 1119 Handle<Object> object, Handle<Name> key, Handle<Object> value,
1120 StrictMode strict_mode, 1120 StrictMode strict_mode,
1121 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); 1121 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
1122 1122
1123 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( 1123 MUST_USE_RESULT static MaybeHandle<Object> SetProperty(
1124 LookupIterator* it, Handle<Object> value, StrictMode strict_mode, 1124 LookupIterator* it, Handle<Object> value, StrictMode strict_mode,
1125 StoreFromKeyed store_mode, 1125 StoreFromKeyed store_mode,
1126 StorePropertyMode data_store_mode = NORMAL_PROPERTY); 1126 StorePropertyMode data_store_mode = NORMAL_PROPERTY);
1127 MUST_USE_RESULT static MaybeHandle<Object> WriteToReadOnlyProperty( 1127 MUST_USE_RESULT static MaybeHandle<Object> WriteToReadOnlyProperty(
1128 LookupIterator* it, Handle<Object> value, StrictMode strict_mode); 1128 LookupIterator* it, Handle<Object> value, StrictMode strict_mode);
1129 static Handle<Object> SetDataProperty(LookupIterator* it, 1129 MUST_USE_RESULT static MaybeHandle<Object> SetDataProperty(
1130 Handle<Object> value); 1130 LookupIterator* it, Handle<Object> value);
1131 MUST_USE_RESULT static MaybeHandle<Object> AddDataProperty( 1131 MUST_USE_RESULT static MaybeHandle<Object> AddDataProperty(
1132 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes, 1132 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes,
1133 StrictMode strict_mode, StoreFromKeyed store_mode); 1133 StrictMode strict_mode, StoreFromKeyed store_mode);
1134 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement( 1134 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement(
1135 Handle<Object> object, 1135 Handle<Object> object,
1136 Handle<Name> key); 1136 Handle<Name> key);
1137 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( 1137 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty(
1138 Isolate* isolate, 1138 Isolate* isolate,
1139 Handle<Object> object, 1139 Handle<Object> object,
1140 const char* key); 1140 const char* key);
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 STATIC_ASSERT(kHeaderSize == Internals::kJSObjectHeaderSize); 2204 STATIC_ASSERT(kHeaderSize == Internals::kJSObjectHeaderSize);
2205 2205
2206 class BodyDescriptor : public FlexibleBodyDescriptor<kPropertiesOffset> { 2206 class BodyDescriptor : public FlexibleBodyDescriptor<kPropertiesOffset> {
2207 public: 2207 public:
2208 static inline int SizeOf(Map* map, HeapObject* object); 2208 static inline int SizeOf(Map* map, HeapObject* object);
2209 }; 2209 };
2210 2210
2211 Context* GetCreationContext(); 2211 Context* GetCreationContext();
2212 2212
2213 // Enqueue change record for Object.observe. May cause GC. 2213 // Enqueue change record for Object.observe. May cause GC.
2214 static void EnqueueChangeRecord(Handle<JSObject> object, 2214 static MaybeHandle<Object> EnqueueChangeRecord(Handle<JSObject> object,
Igor Sheludko 2014/10/13 10:47:24 MUST_USE_RESULT?
2215 const char* type, 2215 const char* type,
2216 Handle<Name> name, 2216 Handle<Name> name,
2217 Handle<Object> old_value); 2217 Handle<Object> old_value);
2218 2218
2219 private: 2219 private:
2220 friend class DictionaryElementsAccessor; 2220 friend class DictionaryElementsAccessor;
2221 friend class JSReceiver; 2221 friend class JSReceiver;
2222 friend class Object; 2222 friend class Object;
2223 2223
2224 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); 2224 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map);
2225 static void MigrateFastToSlow(Handle<JSObject> object, 2225 static void MigrateFastToSlow(Handle<JSObject> object,
2226 Handle<Map> new_map, 2226 Handle<Map> new_map,
2227 int expected_additional_properties); 2227 int expected_additional_properties);
(...skipping 8630 matching lines...) Expand 10 before | Expand all | Expand 10 after
10858 } else { 10858 } else {
10859 value &= ~(1 << bit_position); 10859 value &= ~(1 << bit_position);
10860 } 10860 }
10861 return value; 10861 return value;
10862 } 10862 }
10863 }; 10863 };
10864 10864
10865 } } // namespace v8::internal 10865 } } // namespace v8::internal
10866 10866
10867 #endif // V8_OBJECTS_H_ 10867 #endif // V8_OBJECTS_H_
OLDNEW
« src/accessors.cc ('K') | « src/bootstrapper.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698