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

Side by Side Diff: src/globals.h

Issue 561072: MIPS port initial commit (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/frames-inl.h ('k') | src/macro-assembler.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 28 matching lines...) Expand all
39 #define V8_HOST_ARCH_X64 1 39 #define V8_HOST_ARCH_X64 1
40 #define V8_HOST_ARCH_64_BIT 1 40 #define V8_HOST_ARCH_64_BIT 1
41 #define V8_HOST_CAN_READ_UNALIGNED 1 41 #define V8_HOST_CAN_READ_UNALIGNED 1
42 #elif defined(_M_IX86) || defined(__i386__) 42 #elif defined(_M_IX86) || defined(__i386__)
43 #define V8_HOST_ARCH_IA32 1 43 #define V8_HOST_ARCH_IA32 1
44 #define V8_HOST_ARCH_32_BIT 1 44 #define V8_HOST_ARCH_32_BIT 1
45 #define V8_HOST_CAN_READ_UNALIGNED 1 45 #define V8_HOST_CAN_READ_UNALIGNED 1
46 #elif defined(__ARMEL__) 46 #elif defined(__ARMEL__)
47 #define V8_HOST_ARCH_ARM 1 47 #define V8_HOST_ARCH_ARM 1
48 #define V8_HOST_ARCH_32_BIT 1 48 #define V8_HOST_ARCH_32_BIT 1
49 #elif defined(_MIPS_ARCH_MIPS32R2)
50 #define V8_HOST_ARCH_MIPS 1
51 #define V8_HOST_ARCH_32_BIT 1
49 #else 52 #else
50 #error Your host architecture was not detected as supported by v8 53 #error Your host architecture was not detected as supported by v8
51 #endif 54 #endif
52 55
53 #if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32) 56 #if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32)
54 #define V8_TARGET_CAN_READ_UNALIGNED 1 57 #define V8_TARGET_CAN_READ_UNALIGNED 1
55 #elif V8_TARGET_ARCH_ARM 58 #elif V8_TARGET_ARCH_ARM
59 #elif V8_TARGET_ARCH_MIPS
56 #else 60 #else
57 #error Your target architecture is not supported by v8 61 #error Your target architecture is not supported by v8
58 #endif 62 #endif
59 63
60 // Support for alternative bool type. This is only enabled if the code is 64 // Support for alternative bool type. This is only enabled if the code is
61 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 65 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
62 // For instance, 'bool b = "false";' results in b == true! This is a hidden 66 // For instance, 'bool b = "false";' results in b == true! This is a hidden
63 // source of bugs. 67 // source of bugs.
64 // However, redefining the bool type does have some negative impact on some 68 // However, redefining the bool type does have some negative impact on some
65 // platforms. It gives rise to compiler warnings (i.e. with 69 // platforms. It gives rise to compiler warnings (i.e. with
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 SSE2 = 26, // x86 610 SSE2 = 26, // x86
607 CMOV = 15, // x86 611 CMOV = 15, // x86
608 RDTSC = 4, // x86 612 RDTSC = 4, // x86
609 CPUID = 10, // x86 613 CPUID = 10, // x86
610 VFP3 = 1, // ARM 614 VFP3 = 1, // ARM
611 SAHF = 0}; // x86 615 SAHF = 0}; // x86
612 616
613 } } // namespace v8::internal 617 } } // namespace v8::internal
614 618
615 #endif // V8_GLOBALS_H_ 619 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698