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

Side by Side Diff: src/contexts.h

Issue 1379323002: [runtime] Share constructor/non-constructor bound function maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/runtime/runtime-function.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 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
166 /* Below is alpha-sorted */ \ 166 /* Below is alpha-sorted */ \
167 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 167 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
168 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 168 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
169 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ 169 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
170 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 170 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
171 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ 171 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \
172 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ 172 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \
173 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ 173 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \
174 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 174 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
175 V(BOUND_FUNCTION_MAP_INDEX, Map, bound_function_map) \ 175 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \
176 bound_function_with_constructor_map) \
177 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \
178 bound_function_without_constructor_map) \
176 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 179 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
177 call_as_constructor_delegate) \ 180 call_as_constructor_delegate) \
178 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 181 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
179 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 182 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
180 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \ 183 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \
181 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ 184 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \
182 error_message_for_code_gen_from_strings) \ 185 error_message_for_code_gen_from_strings) \
183 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \ 186 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \
184 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \ 187 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \
185 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ 188 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 #endif 550 #endif
548 551
549 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 552 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
550 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 553 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
551 }; 554 };
552 555
553 } // namespace internal 556 } // namespace internal
554 } // namespace v8 557 } // namespace v8
555 558
556 #endif // V8_CONTEXTS_H_ 559 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698