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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // ----------------------------------------------------------------------------- | 265 // ----------------------------------------------------------------------------- |
266 // Machine instruction Immediates | 266 // Machine instruction Immediates |
267 | 267 |
268 class Immediate BASE_EMBEDDED { | 268 class Immediate BASE_EMBEDDED { |
269 public: | 269 public: |
270 inline explicit Immediate(int x); | 270 inline explicit Immediate(int x); |
271 inline explicit Immediate(const ExternalReference& ext); | 271 inline explicit Immediate(const ExternalReference& ext); |
272 inline explicit Immediate(Handle<Object> handle); | 272 inline explicit Immediate(Handle<Object> handle); |
273 inline explicit Immediate(Smi* value); | 273 inline explicit Immediate(Smi* value); |
274 inline explicit Immediate(Address addr); | 274 inline explicit Immediate(Address addr); |
| 275 inline explicit Immediate(Address x, RelocInfo::Mode rmode); |
275 | 276 |
276 static Immediate CodeRelativeOffset(Label* label) { | 277 static Immediate CodeRelativeOffset(Label* label) { |
277 return Immediate(label); | 278 return Immediate(label); |
278 } | 279 } |
279 | 280 |
280 bool is_zero() const { return x_ == 0 && RelocInfo::IsNone(rmode_); } | 281 bool is_zero() const { return x_ == 0 && RelocInfo::IsNone(rmode_); } |
281 bool is_int8() const { | 282 bool is_int8() const { |
282 return -128 <= x_ && x_ < 128 && RelocInfo::IsNone(rmode_); | 283 return -128 <= x_ && x_ < 128 && RelocInfo::IsNone(rmode_); |
283 } | 284 } |
284 bool is_int16() const { | 285 bool is_int16() const { |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 Assembler* assembler_; | 1079 Assembler* assembler_; |
1079 #ifdef DEBUG | 1080 #ifdef DEBUG |
1080 int space_before_; | 1081 int space_before_; |
1081 #endif | 1082 #endif |
1082 }; | 1083 }; |
1083 | 1084 |
1084 } // namespace internal | 1085 } // namespace internal |
1085 } // namespace v8 | 1086 } // namespace v8 |
1086 | 1087 |
1087 #endif // V8_X87_ASSEMBLER_X87_H_ | 1088 #endif // V8_X87_ASSEMBLER_X87_H_ |
OLD | NEW |