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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 // Checks whether this object has the same value as the given one. | 1430 // Checks whether this object has the same value as the given one. |
1431 // +0 and -0 are treated equal. Everything else is the same as SameValue. | 1431 // +0 and -0 are treated equal. Everything else is the same as SameValue. |
1432 // This function is implemented according to ES6, section 7.2.4 and is used | 1432 // This function is implemented according to ES6, section 7.2.4 and is used |
1433 // by ES6 Map and Set. | 1433 // by ES6 Map and Set. |
1434 bool SameValueZero(Object* other); | 1434 bool SameValueZero(Object* other); |
1435 | 1435 |
1436 // ES6 section 9.4.2.3 ArraySpeciesCreate (part of it) | 1436 // ES6 section 9.4.2.3 ArraySpeciesCreate (part of it) |
1437 MUST_USE_RESULT static MaybeHandle<Object> ArraySpeciesConstructor( | 1437 MUST_USE_RESULT static MaybeHandle<Object> ArraySpeciesConstructor( |
1438 Isolate* isolate, Handle<Object> original_array); | 1438 Isolate* isolate, Handle<Object> original_array); |
1439 | 1439 |
| 1440 // ES6 section 7.3.20 SpeciesConstructor ( O, defaultConstructor ) |
| 1441 MUST_USE_RESULT static MaybeHandle<Object> SpeciesConstructor( |
| 1442 Isolate* isolate, Handle<JSReceiver> recv, |
| 1443 Handle<JSFunction> default_ctor); |
| 1444 |
1440 // Tries to convert an object to an array length. Returns true and sets the | 1445 // Tries to convert an object to an array length. Returns true and sets the |
1441 // output parameter if it succeeds. | 1446 // output parameter if it succeeds. |
1442 inline bool ToArrayLength(uint32_t* index); | 1447 inline bool ToArrayLength(uint32_t* index); |
1443 | 1448 |
1444 // Tries to convert an object to an array index. Returns true and sets the | 1449 // Tries to convert an object to an array index. Returns true and sets the |
1445 // output parameter if it succeeds. Equivalent to ToArrayLength, but does not | 1450 // output parameter if it succeeds. Equivalent to ToArrayLength, but does not |
1446 // allow kMaxUInt32. | 1451 // allow kMaxUInt32. |
1447 inline bool ToArrayIndex(uint32_t* index); | 1452 inline bool ToArrayIndex(uint32_t* index); |
1448 | 1453 |
1449 // Returns true if the result of iterating over the object is the same | 1454 // Returns true if the result of iterating over the object is the same |
(...skipping 10126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11576 } | 11581 } |
11577 }; | 11582 }; |
11578 | 11583 |
11579 | 11584 |
11580 } // NOLINT, false-positive due to second-order macros. | 11585 } // NOLINT, false-positive due to second-order macros. |
11581 } // NOLINT, false-positive due to second-order macros. | 11586 } // NOLINT, false-positive due to second-order macros. |
11582 | 11587 |
11583 #include "src/objects/object-macros-undef.h" | 11588 #include "src/objects/object-macros-undef.h" |
11584 | 11589 |
11585 #endif // V8_OBJECTS_H_ | 11590 #endif // V8_OBJECTS_H_ |
OLD | NEW |