| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 : ((hint == not_taken) ? taken : not_taken); | 187 : ((hint == not_taken) ? taken : not_taken); |
| 188 } | 188 } |
| 189 | 189 |
| 190 | 190 |
| 191 // ----------------------------------------------------------------------------- | 191 // ----------------------------------------------------------------------------- |
| 192 // Machine instruction Immediates | 192 // Machine instruction Immediates |
| 193 | 193 |
| 194 class Immediate BASE_EMBEDDED { | 194 class Immediate BASE_EMBEDDED { |
| 195 public: | 195 public: |
| 196 inline explicit Immediate(int x); | 196 inline explicit Immediate(int x); |
| 197 inline explicit Immediate(const char* s); | |
| 198 inline explicit Immediate(const ExternalReference& ext); | 197 inline explicit Immediate(const ExternalReference& ext); |
| 199 inline explicit Immediate(Handle<Object> handle); | 198 inline explicit Immediate(Handle<Object> handle); |
| 200 inline explicit Immediate(Smi* value); | 199 inline explicit Immediate(Smi* value); |
| 201 | 200 |
| 202 static Immediate CodeRelativeOffset(Label* label) { | 201 static Immediate CodeRelativeOffset(Label* label) { |
| 203 return Immediate(label); | 202 return Immediate(label); |
| 204 } | 203 } |
| 205 | 204 |
| 206 bool is_zero() const { return x_ == 0 && rmode_ == RelocInfo::NONE; } | 205 bool is_zero() const { return x_ == 0 && rmode_ == RelocInfo::NONE; } |
| 207 bool is_int8() const { | 206 bool is_int8() const { |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 private: | 932 private: |
| 934 Assembler* assembler_; | 933 Assembler* assembler_; |
| 935 #ifdef DEBUG | 934 #ifdef DEBUG |
| 936 int space_before_; | 935 int space_before_; |
| 937 #endif | 936 #endif |
| 938 }; | 937 }; |
| 939 | 938 |
| 940 } } // namespace v8::internal | 939 } } // namespace v8::internal |
| 941 | 940 |
| 942 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 941 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |