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

Side by Side Diff: src/platform.h

Issue 23708039: revert 16717 for breaking everything (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/flag-definitions.h ('k') | src/platform-posix.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 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #ifndef V8_PLATFORM_H_ 44 #ifndef V8_PLATFORM_H_
45 #define V8_PLATFORM_H_ 45 #define V8_PLATFORM_H_
46 46
47 #include <cstdarg> 47 #include <cstdarg>
48 48
49 #include "platform/mutex.h" 49 #include "platform/mutex.h"
50 #include "platform/semaphore.h" 50 #include "platform/semaphore.h"
51 #include "utils.h" 51 #include "utils.h"
52 #include "v8globals.h" 52 #include "v8globals.h"
53 53
54 // This is lined up with blink's method of crashing.
55 #if defined(__GNUC__)
56 #define V8_IMMEDIATE_CRASH() __builtin_trap()
57 #else
58 #define V8_IMMEDIATE_CRASH() ((void(*)())0)()
59 #endif
60
61 #ifdef __sun 54 #ifdef __sun
62 # ifndef signbit 55 # ifndef signbit
63 namespace std { 56 namespace std {
64 int signbit(double x); 57 int signbit(double x);
65 } 58 }
66 # endif 59 # endif
67 #endif 60 #endif
68 61
69 // Microsoft Visual C++ specific stuff. 62 // Microsoft Visual C++ specific stuff.
70 #if V8_CC_MSVC 63 #if V8_CC_MSVC
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 char name_[kMaxThreadNameLength]; 588 char name_[kMaxThreadNameLength];
596 int stack_size_; 589 int stack_size_;
597 Semaphore* start_semaphore_; 590 Semaphore* start_semaphore_;
598 591
599 DISALLOW_COPY_AND_ASSIGN(Thread); 592 DISALLOW_COPY_AND_ASSIGN(Thread);
600 }; 593 };
601 594
602 } } // namespace v8::internal 595 } } // namespace v8::internal
603 596
604 #endif // V8_PLATFORM_H_ 597 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698