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

Side by Side Diff: src/contexts.h

Issue 1493393002: Revert "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: 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 217 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
218 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 218 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
219 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \ 219 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \
220 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 220 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
221 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ 221 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \
222 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 222 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
223 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 223 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
224 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 224 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
225 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 225 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
226 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 226 V(SECURITY_TOKEN_INDEX, Object, security_token) \
227 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \
228 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 227 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
229 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ 228 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \
230 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ 229 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \
231 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ 230 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \
232 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 231 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
233 sloppy_function_without_prototype_map) \ 232 sloppy_function_without_prototype_map) \
234 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ 233 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \
235 sloppy_function_with_readonly_prototype_map) \ 234 sloppy_function_with_readonly_prototype_map) \
236 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 235 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
237 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ 236 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 #endif 551 #endif
553 552
554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 553 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 554 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
556 }; 555 };
557 556
558 } // namespace internal 557 } // namespace internal
559 } // namespace v8 558 } // namespace v8
560 559
561 #endif // V8_CONTEXTS_H_ 560 #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