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

Side by Side Diff: src/heap.cc

Issue 8872060: Reland 10216 - Optimize the equality check case of ICCompare stubs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 } 2410 }
2411 set_prototype_accessors(Foreign::cast(obj)); 2411 set_prototype_accessors(Foreign::cast(obj));
2412 2412
2413 // Allocate the code_stubs dictionary. The initial size is set to avoid 2413 // Allocate the code_stubs dictionary. The initial size is set to avoid
2414 // expanding the dictionary during bootstrapping. 2414 // expanding the dictionary during bootstrapping.
2415 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); 2415 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128);
2416 if (!maybe_obj->ToObject(&obj)) return false; 2416 if (!maybe_obj->ToObject(&obj)) return false;
2417 } 2417 }
2418 set_code_stubs(NumberDictionary::cast(obj)); 2418 set_code_stubs(NumberDictionary::cast(obj));
2419 2419
2420
2420 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size 2421 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size
2421 // is set to avoid expanding the dictionary during bootstrapping. 2422 // is set to avoid expanding the dictionary during bootstrapping.
2422 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); 2423 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64);
2423 if (!maybe_obj->ToObject(&obj)) return false; 2424 if (!maybe_obj->ToObject(&obj)) return false;
2424 } 2425 }
2425 set_non_monomorphic_cache(NumberDictionary::cast(obj)); 2426 set_non_monomorphic_cache(NumberDictionary::cast(obj));
2426 2427
2427 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); 2428 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache();
2428 if (!maybe_obj->ToObject(&obj)) return false; 2429 if (!maybe_obj->ToObject(&obj)) return false;
2429 } 2430 }
(...skipping 4160 matching lines...) Expand 10 before | Expand all | Expand 10 after
6590 isolate_->heap()->store_buffer()->Compact(); 6591 isolate_->heap()->store_buffer()->Compact();
6591 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6592 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6592 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6593 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6593 next = chunk->next_chunk(); 6594 next = chunk->next_chunk();
6594 isolate_->memory_allocator()->Free(chunk); 6595 isolate_->memory_allocator()->Free(chunk);
6595 } 6596 }
6596 chunks_queued_for_free_ = NULL; 6597 chunks_queued_for_free_ = NULL;
6597 } 6598 }
6598 6599
6599 } } // namespace v8::internal 6600 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698