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

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

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 #include "src/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) 2331 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table)
2332 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) 2332 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table)
2333 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary) 2333 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary)
2334 2334
2335 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) 2335 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context)
2336 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) 2336 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context)
2337 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) 2337 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context)
2338 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) 2338 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context)
2339 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) 2339 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context)
2340 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) 2340 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context)
2341 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, eval_context)
2341 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) 2342 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context)
2342 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) 2343 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table)
2343 2344
2344 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) 2345 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context)
2345 native_context_map()->set_dictionary_map(true); 2346 native_context_map()->set_dictionary_map(true);
2346 native_context_map()->set_visitor_id( 2347 native_context_map()->set_visitor_id(
2347 StaticVisitorBase::kVisitNativeContext); 2348 StaticVisitorBase::kVisitNativeContext);
2348 2349
2349 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, 2350 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize,
2350 shared_function_info) 2351 shared_function_info)
(...skipping 4114 matching lines...) Expand 10 before | Expand all | Expand 10 after
6465 } 6466 }
6466 6467
6467 6468
6468 // static 6469 // static
6469 int Heap::GetStaticVisitorIdForMap(Map* map) { 6470 int Heap::GetStaticVisitorIdForMap(Map* map) {
6470 return StaticVisitorBase::GetVisitorId(map); 6471 return StaticVisitorBase::GetVisitorId(map);
6471 } 6472 }
6472 6473
6473 } // namespace internal 6474 } // namespace internal
6474 } // namespace v8 6475 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698