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

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

Issue 1361763004: Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: gcc 4.8 doesn't understand #pragma ignored Created 5 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 unified diff | Download patch
« no previous file with comments | « src/base/platform/platform.h ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_SPACES_INL_H_ 5 #ifndef V8_HEAP_SPACES_INL_H_
6 #define V8_HEAP_SPACES_INL_H_ 6 #define V8_HEAP_SPACES_INL_H_
7 7
8 #include "src/heap/spaces.h" 8 #include "src/heap/spaces.h"
9 #include "src/heap-profiler.h" 9 #include "src/heap-profiler.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 } 439 }
440 440
441 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(obj->address(), size_in_bytes); 441 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(obj->address(), size_in_bytes);
442 442
443 return obj; 443 return obj;
444 } 444 }
445 445
446 446
447 AllocationResult NewSpace::AllocateRawUnaligned(int size_in_bytes) { 447 AllocationResult NewSpace::AllocateRawUnaligned(int size_in_bytes) {
448 Address top = allocation_info_.top(); 448 Address top = allocation_info_.top();
449 if (allocation_info_.limit() - top < size_in_bytes) { 449 if (allocation_info_.limit() < top + size_in_bytes) {
450 // See if we can create room. 450 // See if we can create room.
451 if (!EnsureAllocation(size_in_bytes, kWordAligned)) { 451 if (!EnsureAllocation(size_in_bytes, kWordAligned)) {
452 return AllocationResult::Retry(); 452 return AllocationResult::Retry();
453 } 453 }
454 454
455 top = allocation_info_.top(); 455 top = allocation_info_.top();
456 } 456 }
457 457
458 HeapObject* obj = HeapObject::FromAddress(top); 458 HeapObject* obj = HeapObject::FromAddress(top);
459 allocation_info_.set_top(top + size_in_bytes); 459 allocation_info_.set_top(top + size_in_bytes);
(...skipping 24 matching lines...) Expand all
484 484
485 485
486 intptr_t LargeObjectSpace::Available() { 486 intptr_t LargeObjectSpace::Available() {
487 return ObjectSizeFor(heap()->isolate()->memory_allocator()->Available()); 487 return ObjectSizeFor(heap()->isolate()->memory_allocator()->Available());
488 } 488 }
489 489
490 } 490 }
491 } // namespace v8::internal 491 } // namespace v8::internal
492 492
493 #endif // V8_HEAP_SPACES_INL_H_ 493 #endif // V8_HEAP_SPACES_INL_H_
OLDNEW
« no previous file with comments | « src/base/platform/platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698