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

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: Comment response Created 7 years, 5 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
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.h » ('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 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 return; 488 return;
489 } 489 }
490 490
491 // Call the slow part of scavenge object. 491 // Call the slow part of scavenge object.
492 return ScavengeObjectSlow(p, object); 492 return ScavengeObjectSlow(p, object);
493 } 493 }
494 494
495 495
496 MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite( 496 MaybeObject* Heap::AllocateEmptyJSArrayWithAllocationSite(
497 ElementsKind elements_kind, 497 ElementsKind elements_kind,
498 Handle<Object> allocation_site_payload) { 498 Handle<AllocationSite> allocation_site) {
499 return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0, 499 return AllocateJSArrayAndStorageWithAllocationSite(elements_kind, 0, 0,
500 allocation_site_payload, 500 allocation_site, DONT_INITIALIZE_ARRAY_ELEMENTS);
501 DONT_INITIALIZE_ARRAY_ELEMENTS);
502 } 501 }
503 502
504 503
505 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) { 504 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) {
506 const char* collector_reason = NULL; 505 const char* collector_reason = NULL;
507 GarbageCollector collector = SelectGarbageCollector(space, &collector_reason); 506 GarbageCollector collector = SelectGarbageCollector(space, &collector_reason);
508 return CollectGarbage(space, collector, gc_reason, collector_reason); 507 return CollectGarbage(space, collector, gc_reason, collector_reason);
509 } 508 }
510 509
511 510
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 DisallowAllocationFailure::~DisallowAllocationFailure() { 859 DisallowAllocationFailure::~DisallowAllocationFailure() {
861 #ifdef DEBUG 860 #ifdef DEBUG
862 HEAP->disallow_allocation_failure_ = old_state_; 861 HEAP->disallow_allocation_failure_ = old_state_;
863 #endif 862 #endif
864 } 863 }
865 864
866 865
867 } } // namespace v8::internal 866 } } // namespace v8::internal
868 867
869 #endif // V8_HEAP_INL_H_ 868 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698