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 10155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10166 PropertyDescriptor* desc, ShouldThrow should_throw); | 10166 PropertyDescriptor* desc, ShouldThrow should_throw); |
10167 | 10167 |
10168 static bool AnythingToArrayLength(Isolate* isolate, | 10168 static bool AnythingToArrayLength(Isolate* isolate, |
10169 Handle<Object> length_object, | 10169 Handle<Object> length_object, |
10170 uint32_t* output); | 10170 uint32_t* output); |
10171 MUST_USE_RESULT static Maybe<bool> ArraySetLength(Isolate* isolate, | 10171 MUST_USE_RESULT static Maybe<bool> ArraySetLength(Isolate* isolate, |
10172 Handle<JSArray> a, | 10172 Handle<JSArray> a, |
10173 PropertyDescriptor* desc, | 10173 PropertyDescriptor* desc, |
10174 ShouldThrow should_throw); | 10174 ShouldThrow should_throw); |
10175 | 10175 |
10176 // Checks whether the Array has the current realm's Array.prototype as its | |
10177 // prototype. | |
10178 MUST_USE_RESULT inline bool HasArrayPrototype(Isolate* isolate); | |
adamk
2016/05/03 00:45:31
This doesn't need MUST_USE_RESULT (that's used to
Dan Ehrenberg
2016/05/04 00:18:50
Done
| |
10179 | |
10176 DECLARE_CAST(JSArray) | 10180 DECLARE_CAST(JSArray) |
10177 | 10181 |
10178 // Dispatched behavior. | 10182 // Dispatched behavior. |
10179 DECLARE_PRINTER(JSArray) | 10183 DECLARE_PRINTER(JSArray) |
10180 DECLARE_VERIFIER(JSArray) | 10184 DECLARE_VERIFIER(JSArray) |
10181 | 10185 |
10182 // Number of element slots to pre-allocate for an empty array. | 10186 // Number of element slots to pre-allocate for an empty array. |
10183 static const int kPreallocatedArrayElements = 4; | 10187 static const int kPreallocatedArrayElements = 4; |
10184 | 10188 |
10185 // Layout description. | 10189 // Layout description. |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10782 } | 10786 } |
10783 return value; | 10787 return value; |
10784 } | 10788 } |
10785 }; | 10789 }; |
10786 | 10790 |
10787 | 10791 |
10788 } // NOLINT, false-positive due to second-order macros. | 10792 } // NOLINT, false-positive due to second-order macros. |
10789 } // NOLINT, false-positive due to second-order macros. | 10793 } // NOLINT, false-positive due to second-order macros. |
10790 | 10794 |
10791 #endif // V8_OBJECTS_H_ | 10795 #endif // V8_OBJECTS_H_ |
OLD | NEW |