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

Side by Side Diff: src/heap/heap.h

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: relax dchecks 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
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_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 /* Oddballs */ \ 70 /* Oddballs */ \
71 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 71 V(Oddball, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
72 V(Oddball, arguments_marker, ArgumentsMarker) \ 72 V(Oddball, arguments_marker, ArgumentsMarker) \
73 V(Oddball, exception, Exception) \ 73 V(Oddball, exception, Exception) \
74 V(Oddball, termination_exception, TerminationException) \ 74 V(Oddball, termination_exception, TerminationException) \
75 V(Oddball, optimized_out, OptimizedOut) \ 75 V(Oddball, optimized_out, OptimizedOut) \
76 V(Oddball, stale_register, StaleRegister) \ 76 V(Oddball, stale_register, StaleRegister) \
77 /* Context maps */ \ 77 /* Context maps */ \
78 V(Map, native_context_map, NativeContextMap) \ 78 V(Map, native_context_map, NativeContextMap) \
79 V(Map, module_context_map, ModuleContextMap) \ 79 V(Map, module_context_map, ModuleContextMap) \
80 V(Map, eval_context_map, EvalContextMap) \
80 V(Map, script_context_map, ScriptContextMap) \ 81 V(Map, script_context_map, ScriptContextMap) \
81 V(Map, block_context_map, BlockContextMap) \ 82 V(Map, block_context_map, BlockContextMap) \
82 V(Map, catch_context_map, CatchContextMap) \ 83 V(Map, catch_context_map, CatchContextMap) \
83 V(Map, with_context_map, WithContextMap) \ 84 V(Map, with_context_map, WithContextMap) \
84 V(Map, debug_evaluate_context_map, DebugEvaluateContextMap) \ 85 V(Map, debug_evaluate_context_map, DebugEvaluateContextMap) \
85 V(Map, script_context_table_map, ScriptContextTableMap) \ 86 V(Map, script_context_table_map, ScriptContextTableMap) \
86 /* Maps */ \ 87 /* Maps */ \
87 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 88 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
88 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \ 89 V(Map, mutable_heap_number_map, MutableHeapNumberMap) \
89 V(Map, ordered_hash_table_map, OrderedHashTableMap) \ 90 V(Map, ordered_hash_table_map, OrderedHashTableMap) \
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 V(EmptyByteArray) \ 289 V(EmptyByteArray) \
289 V(EmptyDescriptorArray) \ 290 V(EmptyDescriptorArray) \
290 V(ArgumentsMarker) \ 291 V(ArgumentsMarker) \
291 V(SymbolMap) \ 292 V(SymbolMap) \
292 V(SloppyArgumentsElementsMap) \ 293 V(SloppyArgumentsElementsMap) \
293 V(FunctionContextMap) \ 294 V(FunctionContextMap) \
294 V(CatchContextMap) \ 295 V(CatchContextMap) \
295 V(WithContextMap) \ 296 V(WithContextMap) \
296 V(BlockContextMap) \ 297 V(BlockContextMap) \
297 V(ModuleContextMap) \ 298 V(ModuleContextMap) \
299 V(EvalContextMap) \
298 V(ScriptContextMap) \ 300 V(ScriptContextMap) \
299 V(UndefinedMap) \ 301 V(UndefinedMap) \
300 V(TheHoleMap) \ 302 V(TheHoleMap) \
301 V(NullMap) \ 303 V(NullMap) \
302 V(BooleanMap) \ 304 V(BooleanMap) \
303 V(UninitializedMap) \ 305 V(UninitializedMap) \
304 V(ArgumentsMarkerMap) \ 306 V(ArgumentsMarkerMap) \
305 V(JSMessageObjectMap) \ 307 V(JSMessageObjectMap) \
306 V(ForeignMap) \ 308 V(ForeignMap) \
307 V(NanValue) \ 309 V(NanValue) \
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 friend class LargeObjectSpace; 2652 friend class LargeObjectSpace;
2651 friend class NewSpace; 2653 friend class NewSpace;
2652 friend class PagedSpace; 2654 friend class PagedSpace;
2653 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2655 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2654 }; 2656 };
2655 2657
2656 } // namespace internal 2658 } // namespace internal
2657 } // namespace v8 2659 } // namespace v8
2658 2660
2659 #endif // V8_HEAP_HEAP_H_ 2661 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698