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

Unified Diff: src/heap-inl.h

Issue 4061002: [Isolates] Clean up some usages of the heap macro. (Closed)
Patch Set: Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index 95e5c3c45997ef00f756afc910b844fca3074b23..80d97213d2f642d9d2590487926f6fe49e4a592b 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -478,7 +478,7 @@ inline bool Heap::allow_allocation(bool new_state) {
void ExternalStringTable::AddString(String* string) {
ASSERT(string->IsExternalString());
- if (HEAP->InNewSpace(string)) {
+ if (heap_->InNewSpace(string)) {
new_space_strings_.Add(string);
} else {
old_space_strings_.Add(string);
@@ -503,11 +503,11 @@ void ExternalStringTable::Iterate(ObjectVisitor* v) {
void ExternalStringTable::Verify() {
#ifdef DEBUG
for (int i = 0; i < new_space_strings_.length(); ++i) {
- ASSERT(HEAP->InNewSpace(new_space_strings_[i]));
+ ASSERT(heap_->InNewSpace(new_space_strings_[i]));
ASSERT(new_space_strings_[i] != HEAP->raw_unchecked_null_value());
}
for (int i = 0; i < old_space_strings_.length(); ++i) {
- ASSERT(!HEAP->InNewSpace(old_space_strings_[i]));
+ ASSERT(!heap_->InNewSpace(old_space_strings_[i]));
ASSERT(old_space_strings_[i] != HEAP->raw_unchecked_null_value());
}
#endif
@@ -516,7 +516,7 @@ void ExternalStringTable::Verify() {
void ExternalStringTable::AddOldString(String* string) {
ASSERT(string->IsExternalString());
- ASSERT(!HEAP->InNewSpace(string));
+ ASSERT(!heap_->InNewSpace(string));
old_space_strings_.Add(string);
}
@@ -528,7 +528,7 @@ void ExternalStringTable::ShrinkNewStrings(int position) {
void Heap::ClearInstanceofCache() {
- set_instanceof_cache_function(HEAP->the_hole_value());
+ set_instanceof_cache_function(the_hole_value());
}
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698