OLD | NEW |
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 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 1215 matching lines...) Loading... |
1226 MUST_USE_RESULT static MaybeHandle<Object> BitwiseAnd(Isolate* isolate, | 1226 MUST_USE_RESULT static MaybeHandle<Object> BitwiseAnd(Isolate* isolate, |
1227 Handle<Object> lhs, | 1227 Handle<Object> lhs, |
1228 Handle<Object> rhs); | 1228 Handle<Object> rhs); |
1229 MUST_USE_RESULT static MaybeHandle<Object> BitwiseOr(Isolate* isolate, | 1229 MUST_USE_RESULT static MaybeHandle<Object> BitwiseOr(Isolate* isolate, |
1230 Handle<Object> lhs, | 1230 Handle<Object> lhs, |
1231 Handle<Object> rhs); | 1231 Handle<Object> rhs); |
1232 MUST_USE_RESULT static MaybeHandle<Object> BitwiseXor(Isolate* isolate, | 1232 MUST_USE_RESULT static MaybeHandle<Object> BitwiseXor(Isolate* isolate, |
1233 Handle<Object> lhs, | 1233 Handle<Object> lhs, |
1234 Handle<Object> rhs); | 1234 Handle<Object> rhs); |
1235 | 1235 |
| 1236 // ES6 section 7.3.19 OrdinaryHasInstance (C, O). |
| 1237 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryHasInstance( |
| 1238 Isolate* isolate, Handle<Object> callable, Handle<Object> object); |
| 1239 |
| 1240 // ES6 section 12.10.4 Runtime Semantics: InstanceofOperator(O, C) |
| 1241 MUST_USE_RESULT static MaybeHandle<Object> InstanceOf( |
| 1242 Isolate* isolate, Handle<Object> object, Handle<Object> callable); |
| 1243 |
1236 MUST_USE_RESULT static MaybeHandle<Object> GetProperty(LookupIterator* it); | 1244 MUST_USE_RESULT static MaybeHandle<Object> GetProperty(LookupIterator* it); |
1237 | 1245 |
1238 // ES6 [[Set]] (when passed DONT_THROW) | 1246 // ES6 [[Set]] (when passed DONT_THROW) |
1239 // Invariants for this and related functions (unless stated otherwise): | 1247 // Invariants for this and related functions (unless stated otherwise): |
1240 // 1) When the result is Nothing, an exception is pending. | 1248 // 1) When the result is Nothing, an exception is pending. |
1241 // 2) When passed THROW_ON_ERROR, the result is never Just(false). | 1249 // 2) When passed THROW_ON_ERROR, the result is never Just(false). |
1242 // In some cases, an exception is thrown regardless of the ShouldThrow | 1250 // In some cases, an exception is thrown regardless of the ShouldThrow |
1243 // argument. These cases are either in accordance with the spec or not | 1251 // argument. These cases are either in accordance with the spec or not |
1244 // covered by it (eg., concerning API callbacks). | 1252 // covered by it (eg., concerning API callbacks). |
1245 MUST_USE_RESULT static Maybe<bool> SetProperty(LookupIterator* it, | 1253 MUST_USE_RESULT static Maybe<bool> SetProperty(LookupIterator* it, |
(...skipping 9495 matching lines...) Loading... |
10741 } | 10749 } |
10742 return value; | 10750 return value; |
10743 } | 10751 } |
10744 }; | 10752 }; |
10745 | 10753 |
10746 | 10754 |
10747 } // NOLINT, false-positive due to second-order macros. | 10755 } // NOLINT, false-positive due to second-order macros. |
10748 } // NOLINT, false-positive due to second-order macros. | 10756 } // NOLINT, false-positive due to second-order macros. |
10749 | 10757 |
10750 #endif // V8_OBJECTS_H_ | 10758 #endif // V8_OBJECTS_H_ |
OLD | NEW |