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

Side by Side Diff: src/contexts.h

Issue 1508703002: Use WeakCells in the optimized code map rather than traversing in pause. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed nit. Created 5 years 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/code-stubs-hydrogen.cc ('k') | src/deoptimizer.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \ 223 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \
224 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ 224 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \
225 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ 225 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \
226 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ 226 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \
227 V(PROXY_MAP_INDEX, Map, proxy_map) \ 227 V(PROXY_MAP_INDEX, Map, proxy_map) \
228 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 228 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
229 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 229 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
230 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 230 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
231 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 231 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
232 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 232 V(SECURITY_TOKEN_INDEX, Object, security_token) \
233 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \
233 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 234 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
234 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ 235 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \
235 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ 236 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \
236 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ 237 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \
237 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 238 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
238 sloppy_function_without_prototype_map) \ 239 sloppy_function_without_prototype_map) \
239 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ 240 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \
240 sloppy_function_with_readonly_prototype_map) \ 241 sloppy_function_with_readonly_prototype_map) \
241 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 242 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
242 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ 243 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 #endif 558 #endif
558 559
559 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 560 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
560 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 561 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
561 }; 562 };
562 563
563 } // namespace internal 564 } // namespace internal
564 } // namespace v8 565 } // namespace v8
565 566
566 #endif // V8_CONTEXTS_H_ 567 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698