| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void Set(Register dst, const Immediate& x); | 131 void Set(Register dst, const Immediate& x); |
| 132 void Set(const Operand& dst, const Immediate& x); | 132 void Set(const Operand& dst, const Immediate& x); |
| 133 | 133 |
| 134 // Compare object type for heap object. | 134 // Compare object type for heap object. |
| 135 // Incoming register is heap_object and outgoing register is map. | 135 // Incoming register is heap_object and outgoing register is map. |
| 136 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 136 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 137 | 137 |
| 138 // Compare instance type for map. | 138 // Compare instance type for map. |
| 139 void CmpInstanceType(Register map, InstanceType type); | 139 void CmpInstanceType(Register map, InstanceType type); |
| 140 | 140 |
| 141 // Check if the object in register heap_object is a string. Afterwards the |
| 142 // register map contains the object map and the register instance_type |
| 143 // contains the instance_type. The registers map and instance_type can be the |
| 144 // same in which case it contains the instance type afterwards. Either of the |
| 145 // registers map and instance_type can be the same as heap_object. |
| 146 Condition IsObjectStringType(Register heap_object, |
| 147 Register map, |
| 148 Register instance_type); |
| 149 |
| 141 // FCmp is similar to integer cmp, but requires unsigned | 150 // FCmp is similar to integer cmp, but requires unsigned |
| 142 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 151 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
| 143 void FCmp(); | 152 void FCmp(); |
| 144 | 153 |
| 145 // Smi tagging support. | 154 // Smi tagging support. |
| 146 void SmiTag(Register reg) { | 155 void SmiTag(Register reg) { |
| 147 ASSERT(kSmiTag == 0); | 156 ASSERT(kSmiTag == 0); |
| 148 shl(reg, kSmiTagSize); | 157 shl(reg, kSmiTagSize); |
| 149 } | 158 } |
| 150 void SmiUntag(Register reg) { | 159 void SmiUntag(Register reg) { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 } \ | 514 } \ |
| 506 masm-> | 515 masm-> |
| 507 #else | 516 #else |
| 508 #define ACCESS_MASM(masm) masm-> | 517 #define ACCESS_MASM(masm) masm-> |
| 509 #endif | 518 #endif |
| 510 | 519 |
| 511 | 520 |
| 512 } } // namespace v8::internal | 521 } } // namespace v8::internal |
| 513 | 522 |
| 514 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 523 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |