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

Side by Side Diff: src/objects.h

Issue 2090353003: Amend DataView, ArrayBuffer, and TypedArray methods to use ToIndex. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comment Created 4 years, 5 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 | « src/messages.h ('k') | 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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
11 #include "src/bailout-reason.h" 11 #include "src/bailout-reason.h"
12 #include "src/base/bits.h" 12 #include "src/base/bits.h"
13 #include "src/base/flags.h" 13 #include "src/base/flags.h"
14 #include "src/base/smart-pointers.h" 14 #include "src/base/smart-pointers.h"
15 #include "src/builtins.h" 15 #include "src/builtins.h"
16 #include "src/checks.h" 16 #include "src/checks.h"
17 #include "src/elements-kind.h" 17 #include "src/elements-kind.h"
18 #include "src/field-index.h" 18 #include "src/field-index.h"
19 #include "src/flags.h" 19 #include "src/flags.h"
20 #include "src/list.h" 20 #include "src/list.h"
21 #include "src/messages.h"
21 #include "src/property-details.h" 22 #include "src/property-details.h"
23 #include "src/unicode-decoder.h"
22 #include "src/unicode.h" 24 #include "src/unicode.h"
23 #include "src/unicode-decoder.h"
24 #include "src/zone.h" 25 #include "src/zone.h"
25 26
26 #if V8_TARGET_ARCH_ARM 27 #if V8_TARGET_ARCH_ARM
27 #include "src/arm/constants-arm.h" // NOLINT 28 #include "src/arm/constants-arm.h" // NOLINT
28 #elif V8_TARGET_ARCH_ARM64 29 #elif V8_TARGET_ARCH_ARM64
29 #include "src/arm64/constants-arm64.h" // NOLINT 30 #include "src/arm64/constants-arm64.h" // NOLINT
30 #elif V8_TARGET_ARCH_MIPS 31 #elif V8_TARGET_ARCH_MIPS
31 #include "src/mips/constants-mips.h" // NOLINT 32 #include "src/mips/constants-mips.h" // NOLINT
32 #elif V8_TARGET_ARCH_MIPS64 33 #elif V8_TARGET_ARCH_MIPS64
33 #include "src/mips64/constants-mips64.h" // NOLINT 34 #include "src/mips64/constants-mips64.h" // NOLINT
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 Handle<Object> input); 1171 Handle<Object> input);
1171 1172
1172 // ES6 section 7.1.14 ToPropertyKey 1173 // ES6 section 7.1.14 ToPropertyKey
1173 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey( 1174 MUST_USE_RESULT static MaybeHandle<Object> ToPropertyKey(
1174 Isolate* isolate, Handle<Object> value); 1175 Isolate* isolate, Handle<Object> value);
1175 1176
1176 // ES6 section 7.1.15 ToLength 1177 // ES6 section 7.1.15 ToLength
1177 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, 1178 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
1178 Handle<Object> input); 1179 Handle<Object> input);
1179 1180
1181 // ES6 section 7.1.17 ToIndex
1182 MUST_USE_RESULT static MaybeHandle<Object> ToIndex(
1183 Isolate* isolate, Handle<Object> input,
1184 MessageTemplate::Template error_index);
1185
1180 // ES6 section 7.3.9 GetMethod 1186 // ES6 section 7.3.9 GetMethod
1181 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( 1187 MUST_USE_RESULT static MaybeHandle<Object> GetMethod(
1182 Handle<JSReceiver> receiver, Handle<Name> name); 1188 Handle<JSReceiver> receiver, Handle<Name> name);
1183 1189
1184 // ES6 section 7.3.17 CreateListFromArrayLike 1190 // ES6 section 7.3.17 CreateListFromArrayLike
1185 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike( 1191 MUST_USE_RESULT static MaybeHandle<FixedArray> CreateListFromArrayLike(
1186 Isolate* isolate, Handle<Object> object, ElementTypes element_types); 1192 Isolate* isolate, Handle<Object> object, ElementTypes element_types);
1187 1193
1188 // Get length property and apply ToLength. 1194 // Get length property and apply ToLength.
1189 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike( 1195 MUST_USE_RESULT static MaybeHandle<Object> GetLengthFromArrayLike(
(...skipping 9732 matching lines...) Expand 10 before | Expand all | Expand 10 after
10922 } 10928 }
10923 return value; 10929 return value;
10924 } 10930 }
10925 }; 10931 };
10926 10932
10927 10933
10928 } // NOLINT, false-positive due to second-order macros. 10934 } // NOLINT, false-positive due to second-order macros.
10929 } // NOLINT, false-positive due to second-order macros. 10935 } // NOLINT, false-positive due to second-order macros.
10930 10936
10931 #endif // V8_OBJECTS_H_ 10937 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698