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

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

Issue 1041483004: Fix JSON parser Handle leak (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix int width issue Created 5 years, 8 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('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_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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 } 975 }
976 976
977 // Generated code can embed this address to get access to the roots. 977 // Generated code can embed this address to get access to the roots.
978 Object** roots_array_start() { return roots_; } 978 Object** roots_array_start() { return roots_; }
979 979
980 Address* store_buffer_top_address() { 980 Address* store_buffer_top_address() {
981 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 981 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
982 } 982 }
983 983
984 static bool RootIsImmortalImmovable(int root_index); 984 static bool RootIsImmortalImmovable(int root_index);
985 void CheckHandleCount();
985 986
986 #ifdef VERIFY_HEAP 987 #ifdef VERIFY_HEAP
987 // Verify the heap is in its normal state before or after a GC. 988 // Verify the heap is in its normal state before or after a GC.
988 void Verify(); 989 void Verify();
989 #endif 990 #endif
990 991
991 #ifdef DEBUG 992 #ifdef DEBUG
992 void Print(); 993 void Print();
993 void PrintHandles(); 994 void PrintHandles();
994 995
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2627 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2627 2628
2628 private: 2629 private:
2629 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2630 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2630 }; 2631 };
2631 #endif // DEBUG 2632 #endif // DEBUG
2632 } 2633 }
2633 } // namespace v8::internal 2634 } // namespace v8::internal
2634 2635
2635 #endif // V8_HEAP_HEAP_H_ 2636 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698