| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // The original source code covered by the above license above has been | 31 // The original source code covered by the above license above has been |
| 32 // modified significantly by Google Inc. | 32 // modified significantly by Google Inc. |
| 33 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 33 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
| 34 | 34 |
| 35 // A lightweight X64 Assembler. | 35 // A lightweight X64 Assembler. |
| 36 | 36 |
| 37 #ifndef V8_X64_ASSEMBLER_X64_H_ | 37 #ifndef V8_X64_ASSEMBLER_X64_H_ |
| 38 #define V8_X64_ASSEMBLER_X64_H_ | 38 #define V8_X64_ASSEMBLER_X64_H_ |
| 39 | 39 |
| 40 namespace v8 { namespace internal { | 40 namespace v8 { |
| 41 namespace internal { |
| 41 | 42 |
| 42 // CPU Registers. | 43 // CPU Registers. |
| 43 // | 44 // |
| 44 // 1) We would prefer to use an enum, but enum values are assignment- | 45 // 1) We would prefer to use an enum, but enum values are assignment- |
| 45 // compatible with int, which has caused code-generation bugs. | 46 // compatible with int, which has caused code-generation bugs. |
| 46 // | 47 // |
| 47 // 2) We would prefer to use a class instead of a struct but we don't like | 48 // 2) We would prefer to use a class instead of a struct but we don't like |
| 48 // the register initialization to depend on the particular initialization | 49 // the register initialization to depend on the particular initialization |
| 49 // order (which appears to be different on OS X, Linux, and Windows for the | 50 // order (which appears to be different on OS X, Linux, and Windows for the |
| 50 // installed versions of C++ we tried). Using a struct permits C-style | 51 // installed versions of C++ we tried). Using a struct permits C-style |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 private: | 902 private: |
| 902 Assembler* assembler_; | 903 Assembler* assembler_; |
| 903 #ifdef DEBUG | 904 #ifdef DEBUG |
| 904 int space_before_; | 905 int space_before_; |
| 905 #endif | 906 #endif |
| 906 }; | 907 }; |
| 907 | 908 |
| 908 } } // namespace v8::internal | 909 } } // namespace v8::internal |
| 909 | 910 |
| 910 #endif // V8_X64_ASSEMBLER_X64_H_ | 911 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |