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

Side by Side Diff: src/atomicops.h

Issue 18037002: Clean up the usage of V8_TARGET_ARCH_${arch} and V8_HOST_ARCH_${arch} (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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/assembler.cc ('k') | src/code-stubs.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 Atomic64 Acquire_Load(volatile const Atomic64* ptr); 147 Atomic64 Acquire_Load(volatile const Atomic64* ptr);
148 Atomic64 Release_Load(volatile const Atomic64* ptr); 148 Atomic64 Release_Load(volatile const Atomic64* ptr);
149 #endif // V8_HOST_ARCH_64_BIT 149 #endif // V8_HOST_ARCH_64_BIT
150 150
151 } } // namespace v8::internal 151 } } // namespace v8::internal
152 152
153 // Include our platform specific implementation. 153 // Include our platform specific implementation.
154 #if defined(THREAD_SANITIZER) 154 #if defined(THREAD_SANITIZER)
155 #include "atomicops_internals_tsan.h" 155 #include "atomicops_internals_tsan.h"
156 #elif defined(_MSC_VER) && \ 156 #elif defined(_MSC_VER) && \
157 (defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)) 157 (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
158 #include "atomicops_internals_x86_msvc.h" 158 #include "atomicops_internals_x86_msvc.h"
159 #elif defined(__APPLE__) && \ 159 #elif defined(__APPLE__) && \
160 (defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)) 160 (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
161 #include "atomicops_internals_x86_macosx.h" 161 #include "atomicops_internals_x86_macosx.h"
162 #elif defined(__GNUC__) && \ 162 #elif defined(__GNUC__) && \
163 (defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)) 163 (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
164 #include "atomicops_internals_x86_gcc.h" 164 #include "atomicops_internals_x86_gcc.h"
165 #elif defined(__GNUC__) && defined(V8_HOST_ARCH_ARM) 165 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM
166 #include "atomicops_internals_arm_gcc.h" 166 #include "atomicops_internals_arm_gcc.h"
167 #elif defined(__GNUC__) && defined(V8_HOST_ARCH_MIPS) 167 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
168 #include "atomicops_internals_mips_gcc.h" 168 #include "atomicops_internals_mips_gcc.h"
169 #else 169 #else
170 #error "Atomic operations are not supported on your platform" 170 #error "Atomic operations are not supported on your platform"
171 #endif 171 #endif
172 172
173 #endif // V8_ATOMICOPS_H_ 173 #endif // V8_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698