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

Side by Side Diff: src/objects.h

Issue 2697013009: Move ArrayBuffer.prototype.slice implementation to C++ (Closed)
Patch Set: Created 3 years, 10 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
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 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 // Checks whether this object has the same value as the given one. 1431 // Checks whether this object has the same value as the given one.
1432 // +0 and -0 are treated equal. Everything else is the same as SameValue. 1432 // +0 and -0 are treated equal. Everything else is the same as SameValue.
1433 // This function is implemented according to ES6, section 7.2.4 and is used 1433 // This function is implemented according to ES6, section 7.2.4 and is used
1434 // by ES6 Map and Set. 1434 // by ES6 Map and Set.
1435 bool SameValueZero(Object* other); 1435 bool SameValueZero(Object* other);
1436 1436
1437 // ES6 section 9.4.2.3 ArraySpeciesCreate (part of it) 1437 // ES6 section 9.4.2.3 ArraySpeciesCreate (part of it)
1438 MUST_USE_RESULT static MaybeHandle<Object> ArraySpeciesConstructor( 1438 MUST_USE_RESULT static MaybeHandle<Object> ArraySpeciesConstructor(
1439 Isolate* isolate, Handle<Object> original_array); 1439 Isolate* isolate, Handle<Object> original_array);
1440 1440
1441 // ES6 section 7.3.20 SpeciesConstructor ( O, defaultConstructor )
1442 MUST_USE_RESULT static MaybeHandle<Object> SpeciesConstructor(
1443 Isolate* isolate, Handle<JSReceiver> recv,
1444 Handle<JSFunction> default_ctor);
1445
1441 // Tries to convert an object to an array length. Returns true and sets the 1446 // Tries to convert an object to an array length. Returns true and sets the
1442 // output parameter if it succeeds. 1447 // output parameter if it succeeds.
1443 inline bool ToArrayLength(uint32_t* index); 1448 inline bool ToArrayLength(uint32_t* index);
1444 1449
1445 // Tries to convert an object to an array index. Returns true and sets the 1450 // Tries to convert an object to an array index. Returns true and sets the
1446 // output parameter if it succeeds. Equivalent to ToArrayLength, but does not 1451 // output parameter if it succeeds. Equivalent to ToArrayLength, but does not
1447 // allow kMaxUInt32. 1452 // allow kMaxUInt32.
1448 inline bool ToArrayIndex(uint32_t* index); 1453 inline bool ToArrayIndex(uint32_t* index);
1449 1454
1450 // Returns true if the result of iterating over the object is the same 1455 // Returns true if the result of iterating over the object is the same
(...skipping 10097 matching lines...) Expand 10 before | Expand all | Expand 10 after
11548 } 11553 }
11549 }; 11554 };
11550 11555
11551 11556
11552 } // NOLINT, false-positive due to second-order macros. 11557 } // NOLINT, false-positive due to second-order macros.
11553 } // NOLINT, false-positive due to second-order macros. 11558 } // NOLINT, false-positive due to second-order macros.
11554 11559
11555 #include "src/objects/object-macros-undef.h" 11560 #include "src/objects/object-macros-undef.h"
11556 11561
11557 #endif // V8_OBJECTS_H_ 11562 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698