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 22 matching lines...) Expand all Loading... |
33 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 33 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
34 | 34 |
35 #ifndef V8_ASSEMBLER_H_ | 35 #ifndef V8_ASSEMBLER_H_ |
36 #define V8_ASSEMBLER_H_ | 36 #define V8_ASSEMBLER_H_ |
37 | 37 |
38 #include "runtime.h" | 38 #include "runtime.h" |
39 #include "top.h" | 39 #include "top.h" |
40 #include "zone-inl.h" | 40 #include "zone-inl.h" |
41 #include "token.h" | 41 #include "token.h" |
42 | 42 |
43 namespace v8 { namespace internal { | 43 namespace v8 { |
| 44 namespace internal { |
44 | 45 |
45 | 46 |
46 // ----------------------------------------------------------------------------- | 47 // ----------------------------------------------------------------------------- |
47 // Labels represent pc locations; they are typically jump or call targets. | 48 // Labels represent pc locations; they are typically jump or call targets. |
48 // After declaration, a label can be freely used to denote known or (yet) | 49 // After declaration, a label can be freely used to denote known or (yet) |
49 // unknown pc location. Assembler::bind() is used to bind a label to the | 50 // unknown pc location. Assembler::bind() is used to bind a label to the |
50 // current pc. A label can be bound only once. | 51 // current pc. A label can be bound only once. |
51 | 52 |
52 class Label BASE_EMBEDDED { | 53 class Label BASE_EMBEDDED { |
53 public: | 54 public: |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 441 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
441 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 442 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
442 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 443 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
443 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 444 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
444 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 445 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
445 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 446 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
446 | 447 |
447 } } // namespace v8::internal | 448 } } // namespace v8::internal |
448 | 449 |
449 #endif // V8_ASSEMBLER_H_ | 450 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |