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

Side by Side Diff: src/heap.h

Issue 253393006: WeakHashTable::Put() and callers handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments Created 6 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 | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 1696
1697 1697
1698 ~RelocationLock() { 1698 ~RelocationLock() {
1699 heap_->relocation_mutex_.Unlock(); 1699 heap_->relocation_mutex_.Unlock();
1700 } 1700 }
1701 1701
1702 private: 1702 private:
1703 Heap* heap_; 1703 Heap* heap_;
1704 }; 1704 };
1705 1705
1706 MaybeObject* AddWeakObjectToCodeDependency(Object* obj, DependentCode* dep); 1706 void AddWeakObjectToCodeDependency(Handle<Object> obj,
1707 Handle<DependentCode> dep);
1707 1708
1708 DependentCode* LookupWeakObjectToCodeDependency(Object* obj); 1709 DependentCode* LookupWeakObjectToCodeDependency(Object* obj);
1709 1710
1710 void InitializeWeakObjectToCodeTable() { 1711 void InitializeWeakObjectToCodeTable() {
1711 set_weak_object_to_code_table(undefined_value()); 1712 set_weak_object_to_code_table(undefined_value());
1712 } 1713 }
1713 1714
1714 void EnsureWeakObjectToCodeTable(); 1715 void EnsureWeakObjectToCodeTable();
1715 1716
1716 static void FatalProcessOutOfMemory(const char* location, 1717 static void FatalProcessOutOfMemory(const char* location,
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2907 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2907 2908
2908 private: 2909 private:
2909 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2910 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2910 }; 2911 };
2911 #endif // DEBUG 2912 #endif // DEBUG
2912 2913
2913 } } // namespace v8::internal 2914 } } // namespace v8::internal
2914 2915
2915 #endif // V8_HEAP_H_ 2916 #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