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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 24 matching lines...) Expand all Loading... |
35 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 35 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
36 | 36 |
37 // A light-weight ARM Assembler | 37 // A light-weight ARM Assembler |
38 // Generates user mode instructions for the ARM architecture up to version 5 | 38 // Generates user mode instructions for the ARM architecture up to version 5 |
39 | 39 |
40 #ifndef V8_ARM_ASSEMBLER_ARM_H_ | 40 #ifndef V8_ARM_ASSEMBLER_ARM_H_ |
41 #define V8_ARM_ASSEMBLER_ARM_H_ | 41 #define V8_ARM_ASSEMBLER_ARM_H_ |
42 | 42 |
43 #include "assembler.h" | 43 #include "assembler.h" |
44 | 44 |
45 namespace v8 { namespace internal { | 45 namespace v8 { |
| 46 namespace internal { |
46 | 47 |
47 // CPU Registers. | 48 // CPU Registers. |
48 // | 49 // |
49 // 1) We would prefer to use an enum, but enum values are assignment- | 50 // 1) We would prefer to use an enum, but enum values are assignment- |
50 // compatible with int, which has caused code-generation bugs. | 51 // compatible with int, which has caused code-generation bugs. |
51 // | 52 // |
52 // 2) We would prefer to use a class instead of a struct but we don't like | 53 // 2) We would prefer to use a class instead of a struct but we don't like |
53 // the register initialization to depend on the particular initialization | 54 // the register initialization to depend on the particular initialization |
54 // order (which appears to be different on OS X, Linux, and Windows for the | 55 // order (which appears to be different on OS X, Linux, and Windows for the |
55 // installed versions of C++ we tried). Using a struct permits C-style | 56 // installed versions of C++ we tried). Using a struct permits C-style |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 void link_to(Label* L, Label* appendix); | 781 void link_to(Label* L, Label* appendix); |
781 void next(Label* L); | 782 void next(Label* L); |
782 | 783 |
783 // Record reloc info for current pc_ | 784 // Record reloc info for current pc_ |
784 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 785 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
785 }; | 786 }; |
786 | 787 |
787 } } // namespace v8::internal | 788 } } // namespace v8::internal |
788 | 789 |
789 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 790 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |