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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 inline explicit Immediate(int x); | 330 inline explicit Immediate(int x); |
331 inline explicit Immediate(const ExternalReference& ext); | 331 inline explicit Immediate(const ExternalReference& ext); |
332 inline explicit Immediate(Handle<Object> handle); | 332 inline explicit Immediate(Handle<Object> handle); |
333 inline explicit Immediate(Smi* value); | 333 inline explicit Immediate(Smi* value); |
334 inline explicit Immediate(Address addr); | 334 inline explicit Immediate(Address addr); |
335 | 335 |
336 static Immediate CodeRelativeOffset(Label* label) { | 336 static Immediate CodeRelativeOffset(Label* label) { |
337 return Immediate(label); | 337 return Immediate(label); |
338 } | 338 } |
339 | 339 |
340 bool is_zero() const { return x_ == 0 && rmode_ == RelocInfo::NONE32; } | 340 bool is_zero() const { return x_ == 0 && RelocInfo::IsNone(rmode_); } |
341 bool is_int8() const { | 341 bool is_int8() const { |
342 return -128 <= x_ && x_ < 128 && rmode_ == RelocInfo::NONE32; | 342 return -128 <= x_ && x_ < 128 && RelocInfo::IsNone(rmode_); |
343 } | 343 } |
344 bool is_int16() const { | 344 bool is_int16() const { |
345 return -32768 <= x_ && x_ < 32768 && rmode_ == RelocInfo::NONE32; | 345 return -32768 <= x_ && x_ < 32768 && RelocInfo::IsNone(rmode_); |
346 } | 346 } |
347 | 347 |
348 private: | 348 private: |
349 inline explicit Immediate(Label* value); | 349 inline explicit Immediate(Label* value); |
350 | 350 |
351 int x_; | 351 int x_; |
352 RelocInfo::Mode rmode_; | 352 RelocInfo::Mode rmode_; |
353 | 353 |
354 friend class Assembler; | 354 friend class Assembler; |
355 friend class MacroAssembler; | 355 friend class MacroAssembler; |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 private: | 1270 private: |
1271 Assembler* assembler_; | 1271 Assembler* assembler_; |
1272 #ifdef DEBUG | 1272 #ifdef DEBUG |
1273 int space_before_; | 1273 int space_before_; |
1274 #endif | 1274 #endif |
1275 }; | 1275 }; |
1276 | 1276 |
1277 } } // namespace v8::internal | 1277 } } // namespace v8::internal |
1278 | 1278 |
1279 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1279 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |