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

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

Issue 2808093003: [heap] Introduce HeapVisitor interface. (Closed)
Patch Set: fix compile error Created 3 years, 7 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
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/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/ast/context-slot-cache.h" 10 #include "src/ast/context-slot-cache.h"
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) 2434 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context)
2435 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) 2435 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context)
2436 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) 2436 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context)
2437 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) 2437 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context)
2438 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, eval_context) 2438 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, eval_context)
2439 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) 2439 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context)
2440 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) 2440 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table)
2441 2441
2442 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) 2442 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context)
2443 native_context_map()->set_dictionary_map(true); 2443 native_context_map()->set_dictionary_map(true);
2444 native_context_map()->set_visitor_id( 2444 native_context_map()->set_visitor_id(kVisitNativeContext);
2445 StaticVisitorBase::kVisitNativeContext);
2446 2445
2447 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, 2446 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize,
2448 shared_function_info) 2447 shared_function_info)
2449 2448
2450 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) 2449 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object)
2451 ALLOCATE_MAP(JS_OBJECT_TYPE, JSObject::kHeaderSize + kPointerSize, external) 2450 ALLOCATE_MAP(JS_OBJECT_TYPE, JSObject::kHeaderSize + kPointerSize, external)
2452 external_map()->set_is_extensible(false); 2451 external_map()->set_is_extensible(false);
2453 #undef ALLOCATE_PRIMITIVE_MAP 2452 #undef ALLOCATE_PRIMITIVE_MAP
2454 #undef ALLOCATE_VARSIZE_MAP 2453 #undef ALLOCATE_VARSIZE_MAP
2455 #undef ALLOCATE_MAP 2454 #undef ALLOCATE_MAP
(...skipping 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after
6435 case LO_SPACE: 6434 case LO_SPACE:
6436 return "LO_SPACE"; 6435 return "LO_SPACE";
6437 default: 6436 default:
6438 UNREACHABLE(); 6437 UNREACHABLE();
6439 } 6438 }
6440 return NULL; 6439 return NULL;
6441 } 6440 }
6442 6441
6443 } // namespace internal 6442 } // namespace internal
6444 } // namespace v8 6443 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698