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

Side by Side Diff: src/contexts.h

Issue 2170743003: [api] Introduce fast instantiations cache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing uint issue under windows Created 4 years, 4 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
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(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 165 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
166 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ 166 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \
167 error_message_for_code_gen_from_strings) \ 167 error_message_for_code_gen_from_strings) \
168 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \ 168 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \
169 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \ 169 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \
170 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \ 170 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \
171 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ 171 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \
172 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ 172 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \
173 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \ 173 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \
174 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ 174 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \
175 V(TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ 175 V(FAST_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, FixedArray, \
176 template_instantiations_cache) \ 176 fast_template_instantiations_cache) \
177 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \
178 slow_template_instantiations_cache) \
177 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \ 179 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \
178 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \ 180 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \
179 generator_function_function) \ 181 generator_function_function) \
180 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ 182 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \
181 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ 183 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \
182 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \ 184 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \
183 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 185 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
184 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ 186 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \
185 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \ 187 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \
186 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ 188 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 #endif 572 #endif
571 573
572 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 574 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
573 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 575 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
574 }; 576 };
575 577
576 } // namespace internal 578 } // namespace internal
577 } // namespace v8 579 } // namespace v8
578 580
579 #endif // V8_CONTEXTS_H_ 581 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/debug/liveedit.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698