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

Side by Side Diff: src/atomicops.h

Issue 145583014: A fix for the globals.h TODO in libplatform. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: fix header include guard Created 6 years, 10 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/allocation.h ('k') | src/base/globals.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // NoBarrier_Store() 42 // NoBarrier_Store()
43 // NoBarrier_Load() 43 // NoBarrier_Load()
44 // Although there are currently no compiler enforcement, you are encouraged 44 // Although there are currently no compiler enforcement, you are encouraged
45 // to use these. 45 // to use these.
46 // 46 //
47 47
48 #ifndef V8_ATOMICOPS_H_ 48 #ifndef V8_ATOMICOPS_H_
49 #define V8_ATOMICOPS_H_ 49 #define V8_ATOMICOPS_H_
50 50
51 #include "../include/v8.h" 51 #include "../include/v8.h"
52 #include "globals.h" 52 #include "base/globals.h"
53 53
54 namespace v8 { 54 namespace v8 {
55 namespace internal { 55 namespace internal {
56 56
57 typedef int32_t Atomic32; 57 typedef int32_t Atomic32;
58 #ifdef V8_HOST_ARCH_64_BIT 58 #ifdef V8_HOST_ARCH_64_BIT
59 // We need to be able to go between Atomic64 and AtomicWord implicitly. This 59 // We need to be able to go between Atomic64 and AtomicWord implicitly. This
60 // means Atomic64 and AtomicWord should be the same type on 64-bit. 60 // means Atomic64 and AtomicWord should be the same type on 64-bit.
61 #if defined(__ILP32__) || defined(__APPLE__) 61 #if defined(__ILP32__) || defined(__APPLE__)
62 // MacOS is an exception to the implicit conversion rule above, 62 // MacOS is an exception to the implicit conversion rule above,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #include "atomicops_internals_x86_gcc.h" 161 #include "atomicops_internals_x86_gcc.h"
162 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM 162 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM
163 #include "atomicops_internals_arm_gcc.h" 163 #include "atomicops_internals_arm_gcc.h"
164 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS 164 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
165 #include "atomicops_internals_mips_gcc.h" 165 #include "atomicops_internals_mips_gcc.h"
166 #else 166 #else
167 #error "Atomic operations are not supported on your platform" 167 #error "Atomic operations are not supported on your platform"
168 #endif 168 #endif
169 169
170 #endif // V8_ATOMICOPS_H_ 170 #endif // V8_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « src/allocation.h ('k') | src/base/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698