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

Side by Side Diff: src/globals.h

Issue 17153011: DataView implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 7 years, 6 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/factory.cc ('k') | src/heap.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // the use of a simulated environment. 141 // the use of a simulated environment.
142 #if !defined(USE_SIMULATOR) 142 #if !defined(USE_SIMULATOR)
143 #if (defined(V8_TARGET_ARCH_ARM) && !defined(V8_HOST_ARCH_ARM)) 143 #if (defined(V8_TARGET_ARCH_ARM) && !defined(V8_HOST_ARCH_ARM))
144 #define USE_SIMULATOR 1 144 #define USE_SIMULATOR 1
145 #endif 145 #endif
146 #if (defined(V8_TARGET_ARCH_MIPS) && !defined(V8_HOST_ARCH_MIPS)) 146 #if (defined(V8_TARGET_ARCH_MIPS) && !defined(V8_HOST_ARCH_MIPS))
147 #define USE_SIMULATOR 1 147 #define USE_SIMULATOR 1
148 #endif 148 #endif
149 #endif 149 #endif
150 150
151 // Determine architecture endiannes (we only support little-endian).
152 #if defined(V8_TARGET_ARCH_IA32)
153 #define V8_TARGET_LITTLE_ENDIAN 1
154 #elif defined(V8_TARGET_ARCH_X64)
155 #define V8_TARGET_LITTLE_ENDIAN 1
156 #elif defined(V8_TARGET_ARCH_ARM)
157 #define V8_TARGET_LITTLE_ENDIAN 1
158 #elif defined(V8_TARGET_ARCH_MIPS)
159 #define V8_TARGET_LITTLE_ENDIAN 1
160 #else
161 #error Unknown target architecture endiannes
162 #endif
163
151 // Support for alternative bool type. This is only enabled if the code is 164 // Support for alternative bool type. This is only enabled if the code is
152 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 165 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
153 // For instance, 'bool b = "false";' results in b == true! This is a hidden 166 // For instance, 'bool b = "false";' results in b == true! This is a hidden
154 // source of bugs. 167 // source of bugs.
155 // However, redefining the bool type does have some negative impact on some 168 // However, redefining the bool type does have some negative impact on some
156 // platforms. It gives rise to compiler warnings (i.e. with 169 // platforms. It gives rise to compiler warnings (i.e. with
157 // MSVC) in the API header files when mixing code that uses the standard 170 // MSVC) in the API header files when mixing code that uses the standard
158 // bool with code that uses the redefined version. 171 // bool with code that uses the redefined version.
159 // This does not actually belong in the platform code, but needs to be 172 // This does not actually belong in the platform code, but needs to be
160 // defined here because the platform code uses bool, and platform.h is 173 // defined here because the platform code uses bool, and platform.h is
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // the backend, so both modes are represented by the kStrictMode value. 419 // the backend, so both modes are represented by the kStrictMode value.
407 enum StrictModeFlag { 420 enum StrictModeFlag {
408 kNonStrictMode, 421 kNonStrictMode,
409 kStrictMode 422 kStrictMode
410 }; 423 };
411 424
412 425
413 } } // namespace v8::internal 426 } } // namespace v8::internal
414 427
415 #endif // V8_GLOBALS_H_ 428 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698