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

Side by Side Diff: src/heap.h

Issue 251293002: WeakHashTable::Lookup() handlified and ObjectHashTable's interface cleaned up. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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_H_ 5 #ifndef V8_HEAP_H_
6 #define V8_HEAP_H_ 6 #define V8_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "allocation.h" 10 #include "allocation.h"
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 heap_->relocation_mutex_.Unlock(); 1655 heap_->relocation_mutex_.Unlock();
1656 } 1656 }
1657 1657
1658 private: 1658 private:
1659 Heap* heap_; 1659 Heap* heap_;
1660 }; 1660 };
1661 1661
1662 void AddWeakObjectToCodeDependency(Handle<Object> obj, 1662 void AddWeakObjectToCodeDependency(Handle<Object> obj,
1663 Handle<DependentCode> dep); 1663 Handle<DependentCode> dep);
1664 1664
1665 DependentCode* LookupWeakObjectToCodeDependency(Object* obj); 1665 DependentCode* LookupWeakObjectToCodeDependency(Handle<Object> obj);
1666 1666
1667 void InitializeWeakObjectToCodeTable() { 1667 void InitializeWeakObjectToCodeTable() {
1668 set_weak_object_to_code_table(undefined_value()); 1668 set_weak_object_to_code_table(undefined_value());
1669 } 1669 }
1670 1670
1671 void EnsureWeakObjectToCodeTable(); 1671 void EnsureWeakObjectToCodeTable();
1672 1672
1673 static void FatalProcessOutOfMemory(const char* location, 1673 static void FatalProcessOutOfMemory(const char* location,
1674 bool take_snapshot = false); 1674 bool take_snapshot = false);
1675 1675
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2858 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2859 2859
2860 private: 2860 private:
2861 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2861 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2862 }; 2862 };
2863 #endif // DEBUG 2863 #endif // DEBUG
2864 2864
2865 } } // namespace v8::internal 2865 } } // namespace v8::internal
2866 2866
2867 #endif // V8_HEAP_H_ 2867 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698