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

Side by Side Diff: src/contexts.h

Issue 1604243002: Revert of [runtime] Introduce maps for the likely cases of FromPropertyDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/bootstrapper.cc ('k') | src/objects.h » ('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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ 148 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
149 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ 149 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \
150 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ 150 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \
151 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ 151 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \
152 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) 152 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function)
153 153
154 #define NATIVE_CONTEXT_FIELDS(V) \ 154 #define NATIVE_CONTEXT_FIELDS(V) \
155 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 155 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
156 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 156 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
157 /* Below is alpha-sorted */ \ 157 /* Below is alpha-sorted */ \
158 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \
159 accessor_property_descriptor_map) \
160 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 158 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
161 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 159 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
162 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ 160 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
163 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 161 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
164 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ 162 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \
165 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ 163 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \
166 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ 164 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \
167 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 165 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
168 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ 166 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \
169 bound_function_with_constructor_map) \ 167 bound_function_with_constructor_map) \
170 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ 168 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \
171 bound_function_without_constructor_map) \ 169 bound_function_without_constructor_map) \
172 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 170 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
173 call_as_constructor_delegate) \ 171 call_as_constructor_delegate) \
174 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 172 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
175 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 173 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
176 V(DATA_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, data_property_descriptor_map) \
177 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \ 174 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \
178 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 175 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
179 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ 176 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \
180 error_message_for_code_gen_from_strings) \ 177 error_message_for_code_gen_from_strings) \
181 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \ 178 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \
182 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \ 179 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \
183 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \ 180 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \
184 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ 181 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \
185 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ 182 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \
186 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \ 183 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 #endif 583 #endif
587 584
588 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
589 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
590 }; 587 };
591 588
592 } // namespace internal 589 } // namespace internal
593 } // namespace v8 590 } // namespace v8
594 591
595 #endif // V8_CONTEXTS_H_ 592 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698