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

Side by Side Diff: src/heap-inl.h

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some cleanup Created 7 years, 6 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
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 return; 473 return;
474 } 474 }
475 475
476 // Call the slow part of scavenge object. 476 // Call the slow part of scavenge object.
477 return ScavengeObjectSlow(p, object); 477 return ScavengeObjectSlow(p, object);
478 } 478 }
479 479
480 480
481 MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite( 481 MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite(
482 ElementsKind elements_kind, 482 ElementsKind elements_kind,
483 Handle<Object> allocation_site_payload) { 483 Handle<AllocationSite> allocation_site) {
484 return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0, 484 return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0,
485 allocation_site_payload, 485 allocation_site, DONT_INITIALIZE_ARRAY_ELEMENTS);
486 DONT_INITIALIZE_ARRAY_ELEMENTS);
487 } 486 }
488 487
489 488
490 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) { 489 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) {
491 const char* collector_reason = NULL; 490 const char* collector_reason = NULL;
492 GarbageCollector collector = SelectGarbageCollector(space, &collector_reason); 491 GarbageCollector collector = SelectGarbageCollector(space, &collector_reason);
493 return CollectGarbage(space, collector, gc_reason, collector_reason); 492 return CollectGarbage(space, collector, gc_reason, collector_reason);
494 } 493 }
495 494
496 495
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 DisallowAllocationFailure::~DisallowAllocationFailure() { 846 DisallowAllocationFailure::~DisallowAllocationFailure() {
848 #ifdef DEBUG 847 #ifdef DEBUG
849 HEAP->disallow_allocation_failure_ = old_state_; 848 HEAP->disallow_allocation_failure_ = old_state_;
850 #endif 849 #endif
851 } 850 }
852 851
853 852
854 } } // namespace v8::internal 853 } } // namespace v8::internal
855 854
856 #endif // V8_HEAP_INL_H_ 855 #endif // V8_HEAP_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698