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 7209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7220 | 7220 |
7221 // List of builtin functions we want to identify to improve code | 7221 // List of builtin functions we want to identify to improve code |
7222 // generation. | 7222 // generation. |
7223 // | 7223 // |
7224 // Each entry has a name of a global object property holding an object | 7224 // Each entry has a name of a global object property holding an object |
7225 // optionally followed by ".prototype", a name of a builtin function | 7225 // optionally followed by ".prototype", a name of a builtin function |
7226 // on the object (the one the id is set for), and a label. | 7226 // on the object (the one the id is set for), and a label. |
7227 // | 7227 // |
7228 // Installation of ids for the selected builtin functions is handled | 7228 // Installation of ids for the selected builtin functions is handled |
7229 // by the bootstrapper. | 7229 // by the bootstrapper. |
7230 #define FUNCTIONS_WITH_ID_LIST(V) \ | 7230 #define FUNCTIONS_WITH_ID_LIST(V) \ |
Yang
2016/11/28 07:58:11
We should move this to somewhere else than objects
Benedikt Meurer
2016/11/28 07:59:05
I'd rather stick to the plan of dropping this list
| |
7231 V(Array.prototype, concat, ArrayConcat) \ | |
7232 V(Array.prototype, every, ArrayEvery) \ | |
7233 V(Array.prototype, fill, ArrayFill) \ | |
7234 V(Array.prototype, filter, ArrayFilter) \ | |
7235 V(Array.prototype, findIndex, ArrayFindIndex) \ | |
7236 V(Array.prototype, forEach, ArrayForEach) \ | |
7237 V(Array.prototype, includes, ArrayIncludes) \ | |
7231 V(Array.prototype, indexOf, ArrayIndexOf) \ | 7238 V(Array.prototype, indexOf, ArrayIndexOf) \ |
7239 V(Array.prototype, join, ArrayJoin) \ | |
7232 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \ | 7240 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \ |
7241 V(Array.prototype, map, ArrayMap) \ | |
7242 V(Array.prototype, pop, ArrayPop) \ | |
7233 V(Array.prototype, push, ArrayPush) \ | 7243 V(Array.prototype, push, ArrayPush) \ |
7234 V(Array.prototype, pop, ArrayPop) \ | 7244 V(Array.prototype, reverse, ArrayReverse) \ |
7235 V(Array.prototype, shift, ArrayShift) \ | 7245 V(Array.prototype, shift, ArrayShift) \ |
7246 V(Array.prototype, slice, ArraySlice) \ | |
7247 V(Array.prototype, some, ArraySome) \ | |
7248 V(Array.prototype, splice, ArraySplice) \ | |
7249 V(Array.prototype, unshift, ArrayUnshift) \ | |
7236 V(Date, now, DateNow) \ | 7250 V(Date, now, DateNow) \ |
7237 V(Date.prototype, getDate, DateGetDate) \ | 7251 V(Date.prototype, getDate, DateGetDate) \ |
7238 V(Date.prototype, getDay, DateGetDay) \ | 7252 V(Date.prototype, getDay, DateGetDay) \ |
7239 V(Date.prototype, getFullYear, DateGetFullYear) \ | 7253 V(Date.prototype, getFullYear, DateGetFullYear) \ |
7240 V(Date.prototype, getHours, DateGetHours) \ | 7254 V(Date.prototype, getHours, DateGetHours) \ |
7241 V(Date.prototype, getMilliseconds, DateGetMilliseconds) \ | 7255 V(Date.prototype, getMilliseconds, DateGetMilliseconds) \ |
7242 V(Date.prototype, getMinutes, DateGetMinutes) \ | 7256 V(Date.prototype, getMinutes, DateGetMinutes) \ |
7243 V(Date.prototype, getMonth, DateGetMonth) \ | 7257 V(Date.prototype, getMonth, DateGetMonth) \ |
7244 V(Date.prototype, getSeconds, DateGetSeconds) \ | 7258 V(Date.prototype, getSeconds, DateGetSeconds) \ |
7245 V(Date.prototype, getTime, DateGetTime) \ | 7259 V(Date.prototype, getTime, DateGetTime) \ |
(...skipping 4647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11893 } | 11907 } |
11894 return value; | 11908 return value; |
11895 } | 11909 } |
11896 }; | 11910 }; |
11897 | 11911 |
11898 | 11912 |
11899 } // NOLINT, false-positive due to second-order macros. | 11913 } // NOLINT, false-positive due to second-order macros. |
11900 } // NOLINT, false-positive due to second-order macros. | 11914 } // NOLINT, false-positive due to second-order macros. |
11901 | 11915 |
11902 #endif // V8_OBJECTS_H_ | 11916 #endif // V8_OBJECTS_H_ |
OLD | NEW |