| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 }; | 167 }; |
| 168 } | 168 } |
| 169 | 169 |
| 170 enum Hint { | 170 enum Hint { |
| 171 no_hint = 0, | 171 no_hint = 0, |
| 172 not_taken = 0x2e, | 172 not_taken = 0x2e, |
| 173 taken = 0x3e | 173 taken = 0x3e |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 | 176 |
| 177 // The result of negating a hint is as if the corresponding condition |
| 178 // were negated by NegateCondition. That is, no_hint is mapped to |
| 179 // itself and not_taken and taken are mapped to each other. |
| 180 inline Hint NegateHint(Hint hint) { |
| 181 return (hint == no_hint) |
| 182 ? no_hint |
| 183 : ((hint == not_taken) ? taken : not_taken); |
| 184 } |
| 185 |
| 177 // ----------------------------------------------------------------------------- | 186 // ----------------------------------------------------------------------------- |
| 178 // Machine instruction Immediates | 187 // Machine instruction Immediates |
| 179 | 188 |
| 180 class Immediate BASE_EMBEDDED { | 189 class Immediate BASE_EMBEDDED { |
| 181 public: | 190 public: |
| 182 inline explicit Immediate(int x); | 191 inline explicit Immediate(int x); |
| 183 inline explicit Immediate(const char* s); | 192 inline explicit Immediate(const char* s); |
| 184 inline explicit Immediate(const ExternalReference& ext); | 193 inline explicit Immediate(const ExternalReference& ext); |
| 185 inline explicit Immediate(Handle<Object> handle); | 194 inline explicit Immediate(Handle<Object> handle); |
| 186 inline explicit Immediate(Smi* value); | 195 inline explicit Immediate(Smi* value); |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 private: | 824 private: |
| 816 Assembler* assembler_; | 825 Assembler* assembler_; |
| 817 #ifdef DEBUG | 826 #ifdef DEBUG |
| 818 int space_before_; | 827 int space_before_; |
| 819 #endif | 828 #endif |
| 820 }; | 829 }; |
| 821 | 830 |
| 822 } } // namespace v8::internal | 831 } } // namespace v8::internal |
| 823 | 832 |
| 824 #endif // V8_ASSEMBLER_IA32_H_ | 833 #endif // V8_ASSEMBLER_IA32_H_ |
| OLD | NEW |