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

Side by Side Diff: src/contexts.h

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Don't install spread on global obj Created 4 years, 1 month 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \ 51 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \
52 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ 52 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \
53 V(OBJECT_KEYS, JSFunction, object_keys) \ 53 V(OBJECT_KEYS, JSFunction, object_keys) \
54 V(REGEXP_INTERNAL_MATCH, JSFunction, regexp_internal_match) \ 54 V(REGEXP_INTERNAL_MATCH, JSFunction, regexp_internal_match) \
55 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ 55 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \
56 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 56 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
57 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ 57 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \
58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ 58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \
59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ 59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \
60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ 60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \
61 V(SPREAD_ITERABLE_PREPARE_INDEX, JSFunction, spread_iterable_prepare) \
61 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ 62 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \
62 V(MATH_POW_INDEX, JSFunction, math_pow) 63 V(MATH_POW_INDEX, JSFunction, math_pow)
63 64
64 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 65 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
65 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 66 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
66 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 67 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
67 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 68 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
68 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 69 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
69 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ 70 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
70 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ 71 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \ 218 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \
218 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ 219 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \
219 V(FAST_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, FixedArray, \ 220 V(FAST_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, FixedArray, \
220 fast_template_instantiations_cache) \ 221 fast_template_instantiations_cache) \
221 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ 222 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \
222 slow_template_instantiations_cache) \ 223 slow_template_instantiations_cache) \
223 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \ 224 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \
224 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \ 225 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \
225 generator_function_function) \ 226 generator_function_function) \
226 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ 227 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \
228 V(INITIAL_ARRAY_ITERATOR_INDEX, JSObject, initial_array_iterator) \
227 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ 229 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \
228 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \ 230 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \
229 V(INITIAL_ITERATOR_PROTOTYPE_INDEX, JSObject, initial_iterator_prototype) \ 231 V(INITIAL_ITERATOR_PROTOTYPE_INDEX, JSObject, initial_iterator_prototype) \
230 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 232 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
231 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ 233 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \
232 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \ 234 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \
233 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ 235 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \
234 V(INT32X4_FUNCTION_INDEX, JSFunction, int32x4_function) \ 236 V(INT32X4_FUNCTION_INDEX, JSFunction, int32x4_function) \
235 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ 237 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \
236 V(INT8X16_FUNCTION_INDEX, JSFunction, int8x16_function) \ 238 V(INT8X16_FUNCTION_INDEX, JSFunction, int8x16_function) \
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 646 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
645 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 647 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
646 }; 648 };
647 649
648 typedef Context::Field ContextField; 650 typedef Context::Field ContextField;
649 651
650 } // namespace internal 652 } // namespace internal
651 } // namespace v8 653 } // namespace v8
652 654
653 #endif // V8_CONTEXTS_H_ 655 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698