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

Unified Diff: src/heap/heap-inl.h

Issue 645533003: Use hash map to look for objects in the root array when serializing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make use of the hash map more often. Created 6 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/heap.cc ('k') | src/isolate.cc » ('j') | src/serialize.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap-inl.h
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
index e658224aca11190003676d9bbd2df945e1c88508..9e3421e3220fdd8606cfe2f3445f92b91f3f97d9 100644
--- a/src/heap/heap-inl.h
+++ b/src/heap/heap-inl.h
@@ -699,7 +699,7 @@ void ExternalStringTable::ShrinkNewStrings(int position) {
void Heap::ClearInstanceofCache() {
- set_instanceof_cache_function(the_hole_value());
+ set_instanceof_cache_function(Smi::FromInt(0));
}
@@ -709,8 +709,8 @@ Object* Heap::ToBoolean(bool condition) {
void Heap::CompletelyClearInstanceofCache() {
- set_instanceof_cache_map(the_hole_value());
- set_instanceof_cache_function(the_hole_value());
+ set_instanceof_cache_map(Smi::FromInt(0));
+ set_instanceof_cache_function(Smi::FromInt(0));
}
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.cc » ('j') | src/serialize.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698