Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 #define bool __my_bool__ // use 'indirection' to avoid name clashes | 66 #define bool __my_bool__ // use 'indirection' to avoid name clashes |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 typedef uint8_t byte; | 69 typedef uint8_t byte; |
| 70 typedef byte* Address; | 70 typedef byte* Address; |
| 71 | 71 |
| 72 // Code-point values in Unicode 4.0 are 21 bits wide. | 72 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 73 typedef uint16_t uc16; | 73 typedef uint16_t uc16; |
| 74 typedef signed int uc32; | 74 typedef signed int uc32; |
| 75 | 75 |
| 76 #ifndef ARM | |
| 77 #define CAN_READ_UNALIGNED 1 | |
| 78 #endif | |
| 76 | 79 |
|
Erik Corry
2008/10/22 11:44:15
IA32 is pretty much the only architecture out ther
| |
| 77 // ----------------------------------------------------------------------------- | 80 // ----------------------------------------------------------------------------- |
| 78 // Constants | 81 // Constants |
| 79 | 82 |
| 80 #ifdef DEBUG | 83 #ifdef DEBUG |
| 81 const bool kDebug = true; | 84 const bool kDebug = true; |
| 82 #else | 85 #else |
| 83 const bool kDebug = false; | 86 const bool kDebug = false; |
| 84 #endif // DEBUG | 87 #endif // DEBUG |
| 85 | 88 |
| 86 const int KB = 1024; | 89 const int KB = 1024; |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 | 497 |
| 495 Dest dest; | 498 Dest dest; |
| 496 memcpy(&dest, &source, sizeof(dest)); | 499 memcpy(&dest, &source, sizeof(dest)); |
| 497 return dest; | 500 return dest; |
| 498 } | 501 } |
| 499 | 502 |
| 500 | 503 |
| 501 } } // namespace v8::internal | 504 } } // namespace v8::internal |
| 502 | 505 |
| 503 #endif // V8_GLOBALS_H_ | 506 #endif // V8_GLOBALS_H_ |
| OLD | NEW |