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

Side by Side Diff: src/heap.cc

Issue 8883023: Revert 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
« no previous file with comments | « src/heap.h ('k') | src/hydrogen.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 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
2421 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size 2420 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size
2422 // is set to avoid expanding the dictionary during bootstrapping. 2421 // is set to avoid expanding the dictionary during bootstrapping.
2423 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); 2422 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64);
2424 if (!maybe_obj->ToObject(&obj)) return false; 2423 if (!maybe_obj->ToObject(&obj)) return false;
2425 } 2424 }
2426 set_non_monomorphic_cache(NumberDictionary::cast(obj)); 2425 set_non_monomorphic_cache(NumberDictionary::cast(obj));
2427 2426
2428 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); 2427 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache();
2429 if (!maybe_obj->ToObject(&obj)) return false; 2428 if (!maybe_obj->ToObject(&obj)) return false;
2430 } 2429 }
(...skipping 4160 matching lines...) Expand 10 before | Expand all | Expand 10 after
6591 isolate_->heap()->store_buffer()->Compact(); 6590 isolate_->heap()->store_buffer()->Compact();
6592 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6591 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6593 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6592 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6594 next = chunk->next_chunk(); 6593 next = chunk->next_chunk();
6595 isolate_->memory_allocator()->Free(chunk); 6594 isolate_->memory_allocator()->Free(chunk);
6596 } 6595 }
6597 chunks_queued_for_free_ = NULL; 6596 chunks_queued_for_free_ = NULL;
6598 } 6597 }
6599 6598
6600 } } // namespace v8::internal 6599 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698