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

Side by Side Diff: src/base/platform/platform.h

Issue 1393023003: Reland: 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: avoid gcc 4.8 arm compiler bug on release and debug by moving checks to the bottom 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/logging.h ('k') | src/heap/spaces-inl.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 // 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 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Generate a random address to be used for hinting mmap(). 187 // Generate a random address to be used for hinting mmap().
188 static void* GetRandomMmapAddr(); 188 static void* GetRandomMmapAddr();
189 189
190 // Get the Alignment guaranteed by Allocate(). 190 // Get the Alignment guaranteed by Allocate().
191 static size_t AllocateAlignment(); 191 static size_t AllocateAlignment();
192 192
193 // Sleep for a specified time interval. 193 // Sleep for a specified time interval.
194 static void Sleep(TimeDelta interval); 194 static void Sleep(TimeDelta interval);
195 195
196 // Abort the current process. 196 // Abort the current process.
197 static void Abort(); 197 V8_NORETURN static void Abort();
198 198
199 // Debug break. 199 // Debug break.
200 static void DebugBreak(); 200 static void DebugBreak();
201 201
202 // Walk the stack. 202 // Walk the stack.
203 static const int kStackWalkError = -1; 203 static const int kStackWalkError = -1;
204 static const int kStackWalkMaxNameLen = 256; 204 static const int kStackWalkMaxNameLen = 256;
205 static const int kStackWalkMaxTextLen = 256; 205 static const int kStackWalkMaxTextLen = 256;
206 struct StackFrame { 206 struct StackFrame {
207 void* address; 207 void* address;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 int stack_size_; 476 int stack_size_;
477 Semaphore* start_semaphore_; 477 Semaphore* start_semaphore_;
478 478
479 DISALLOW_COPY_AND_ASSIGN(Thread); 479 DISALLOW_COPY_AND_ASSIGN(Thread);
480 }; 480 };
481 481
482 } // namespace base 482 } // namespace base
483 } // namespace v8 483 } // namespace v8
484 484
485 #endif // V8_BASE_PLATFORM_PLATFORM_H_ 485 #endif // V8_BASE_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/base/logging.h ('k') | src/heap/spaces-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698