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

Side by Side Diff: src/contexts.h

Issue 1309503003: Install js intrinsic fallbacks for array functions on the native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@context_intrinsics
Patch Set: Created 5 years, 3 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/builtins.cc ('k') | src/i18n.js » ('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 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ 84 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \
85 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ 85 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \
86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ 86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \
87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ 87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \
88 V(TO_NAME_INDEX, JSFunction, to_name) \ 88 V(TO_NAME_INDEX, JSFunction, to_name) \
89 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 89 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
90 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \ 90 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \
91 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) 91 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun)
92 92
93 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 93 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
94 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
95 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
96 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
97 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
98 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
99 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
100 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \
94 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 101 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
95 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 102 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
96 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ 103 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \
97 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ 104 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \
98 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ 105 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \
99 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ 106 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \
100 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ 107 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \
101 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 108 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
102 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ 109 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \
103 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ 110 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 589 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
583 #endif 590 #endif
584 591
585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 592 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 593 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
587 }; 594 };
588 595
589 } } // namespace v8::internal 596 } } // namespace v8::internal
590 597
591 #endif // V8_CONTEXTS_H_ 598 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698