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

Side by Side Diff: src/contexts.h

Issue 988283003: use a hash table for the function cache as blink is leaking functiontemplates (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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') | test/cctest/test-api.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ 133 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \
134 V(BOUND_FUNCTION_MAP_INDEX, Map, bound_function_map) \ 134 V(BOUND_FUNCTION_MAP_INDEX, Map, bound_function_map) \
135 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 135 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
136 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ 136 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \
137 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \ 137 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \
138 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ 138 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \
139 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ 139 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \
140 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ 140 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \
141 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 141 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
142 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ 142 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \
143 V(FUNCTION_CACHE_INDEX, FixedArray, function_cache) \ 143 V(FUNCTION_CACHE_INDEX, ObjectHashTable, function_cache) \
144 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ 144 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \
145 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ 145 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \
146 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 146 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \
147 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 147 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
149 call_as_constructor_delegate) \ 149 call_as_constructor_delegate) \
150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
153 V(MAP_CACHE_INDEX, Object, map_cache) \ 153 V(MAP_CACHE_INDEX, Object, map_cache) \
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 621 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
622 #endif 622 #endif
623 623
624 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 624 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
625 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 625 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
626 }; 626 };
627 627
628 } } // namespace v8::internal 628 } } // namespace v8::internal
629 629
630 #endif // V8_CONTEXTS_H_ 630 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698