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

Side by Side Diff: src/objects.h

Issue 2311413002: Super property loads and stores should throw if [[Prototype]] is null (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); 1310 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
1311 MUST_USE_RESULT static inline MaybeHandle<Object> SetPropertyOrElement( 1311 MUST_USE_RESULT static inline MaybeHandle<Object> SetPropertyOrElement(
1312 Handle<Object> object, Handle<Name> name, Handle<Object> value, 1312 Handle<Object> object, Handle<Name> name, Handle<Object> value,
1313 LanguageMode language_mode, 1313 LanguageMode language_mode,
1314 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); 1314 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
1315 1315
1316 MUST_USE_RESULT static Maybe<bool> SetSuperProperty( 1316 MUST_USE_RESULT static Maybe<bool> SetSuperProperty(
1317 LookupIterator* it, Handle<Object> value, LanguageMode language_mode, 1317 LookupIterator* it, Handle<Object> value, LanguageMode language_mode,
1318 StoreFromKeyed store_mode); 1318 StoreFromKeyed store_mode);
1319 1319
1320 MUST_USE_RESULT static MaybeHandle<Object> ReadAbsentProperty(
1321 LookupIterator* it);
1322 MUST_USE_RESULT static MaybeHandle<Object> ReadAbsentProperty(
1323 Isolate* isolate, Handle<Object> receiver, Handle<Object> name);
1324 MUST_USE_RESULT static Maybe<bool> CannotCreateProperty( 1320 MUST_USE_RESULT static Maybe<bool> CannotCreateProperty(
1325 Isolate* isolate, Handle<Object> receiver, Handle<Object> name, 1321 Isolate* isolate, Handle<Object> receiver, Handle<Object> name,
1326 Handle<Object> value, ShouldThrow should_throw); 1322 Handle<Object> value, ShouldThrow should_throw);
1327 MUST_USE_RESULT static Maybe<bool> WriteToReadOnlyProperty( 1323 MUST_USE_RESULT static Maybe<bool> WriteToReadOnlyProperty(
1328 LookupIterator* it, Handle<Object> value, ShouldThrow should_throw); 1324 LookupIterator* it, Handle<Object> value, ShouldThrow should_throw);
1329 MUST_USE_RESULT static Maybe<bool> WriteToReadOnlyProperty( 1325 MUST_USE_RESULT static Maybe<bool> WriteToReadOnlyProperty(
1330 Isolate* isolate, Handle<Object> receiver, Handle<Object> name, 1326 Isolate* isolate, Handle<Object> receiver, Handle<Object> name,
1331 Handle<Object> value, ShouldThrow should_throw); 1327 Handle<Object> value, ShouldThrow should_throw);
1332 MUST_USE_RESULT static Maybe<bool> RedefineIncompatibleProperty( 1328 MUST_USE_RESULT static Maybe<bool> RedefineIncompatibleProperty(
1333 Isolate* isolate, Handle<Object> name, Handle<Object> value, 1329 Isolate* isolate, Handle<Object> name, Handle<Object> value,
(...skipping 9867 matching lines...) Expand 10 before | Expand all | Expand 10 after
11201 } 11197 }
11202 return value; 11198 return value;
11203 } 11199 }
11204 }; 11200 };
11205 11201
11206 11202
11207 } // NOLINT, false-positive due to second-order macros. 11203 } // NOLINT, false-positive due to second-order macros.
11208 } // NOLINT, false-positive due to second-order macros. 11204 } // NOLINT, false-positive due to second-order macros.
11209 11205
11210 #endif // V8_OBJECTS_H_ 11206 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698