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

Side by Side Diff: src/contexts.h

Issue 2430273007: [runtime] Object.create(null) creates a slow object (Closed)
Patch Set: fix GC mole issue 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
« no previous file with comments | « src/compiler/code-assembler.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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 V(MAP_CACHE_INDEX, Object, map_cache) \ 256 V(MAP_CACHE_INDEX, Object, map_cache) \
257 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 257 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
258 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \ 258 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \
259 V(MATH_RANDOM_INDEX_INDEX, Smi, math_random_index) \ 259 V(MATH_RANDOM_INDEX_INDEX, Smi, math_random_index) \
260 V(MATH_RANDOM_CACHE_INDEX, Object, math_random_cache) \ 260 V(MATH_RANDOM_CACHE_INDEX, Object, math_random_cache) \
261 V(MESSAGE_LISTENERS_INDEX, TemplateList, message_listeners) \ 261 V(MESSAGE_LISTENERS_INDEX, TemplateList, message_listeners) \
262 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ 262 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \
263 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ 263 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \
264 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 264 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
265 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 265 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
266 V(OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, object_with_null_prototype_map) \ 266 V(SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, \
267 slow_object_with_null_prototype_map) \
267 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \ 268 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \
268 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 269 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
269 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \ 270 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \
270 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ 271 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \
271 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ 272 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \
272 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ 273 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \
273 V(PROXY_MAP_INDEX, Map, proxy_map) \ 274 V(PROXY_MAP_INDEX, Map, proxy_map) \
274 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \ 275 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \
275 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 276 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
276 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \ 277 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 643 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
643 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 644 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
644 }; 645 };
645 646
646 typedef Context::Field ContextField; 647 typedef Context::Field ContextField;
647 648
648 } // namespace internal 649 } // namespace internal
649 } // namespace v8 650 } // namespace v8
650 651
651 #endif // V8_CONTEXTS_H_ 652 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698