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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 void Set(Register dst, const Immediate& x); | 134 void Set(Register dst, const Immediate& x); |
135 void Set(const Operand& dst, const Immediate& x); | 135 void Set(const Operand& dst, const Immediate& x); |
136 | 136 |
137 // Compare object type for heap object. | 137 // Compare object type for heap object. |
138 // Incoming register is heap_object and outgoing register is map. | 138 // Incoming register is heap_object and outgoing register is map. |
139 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 139 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
140 | 140 |
141 // Compare instance type for map. | 141 // Compare instance type for map. |
142 void CmpInstanceType(Register map, InstanceType type); | 142 void CmpInstanceType(Register map, InstanceType type); |
143 | 143 |
| 144 // Check if the map of an object is equal to a specified map and |
| 145 // branch to label if not. Skip the smi check if not required |
| 146 // (object is known to be a heap object) |
| 147 void CheckMap(Register obj, |
| 148 Handle<Map> map, |
| 149 Label* fail, |
| 150 bool is_heap_object); |
| 151 |
144 // Check if the object in register heap_object is a string. Afterwards the | 152 // Check if the object in register heap_object is a string. Afterwards the |
145 // register map contains the object map and the register instance_type | 153 // register map contains the object map and the register instance_type |
146 // contains the instance_type. The registers map and instance_type can be the | 154 // contains the instance_type. The registers map and instance_type can be the |
147 // same in which case it contains the instance type afterwards. Either of the | 155 // same in which case it contains the instance type afterwards. Either of the |
148 // registers map and instance_type can be the same as heap_object. | 156 // registers map and instance_type can be the same as heap_object. |
149 Condition IsObjectStringType(Register heap_object, | 157 Condition IsObjectStringType(Register heap_object, |
150 Register map, | 158 Register map, |
151 Register instance_type); | 159 Register instance_type); |
152 | 160 |
153 // FCmp is similar to integer cmp, but requires unsigned | 161 // FCmp is similar to integer cmp, but requires unsigned |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 } \ | 540 } \ |
533 masm-> | 541 masm-> |
534 #else | 542 #else |
535 #define ACCESS_MASM(masm) masm-> | 543 #define ACCESS_MASM(masm) masm-> |
536 #endif | 544 #endif |
537 | 545 |
538 | 546 |
539 } } // namespace v8::internal | 547 } } // namespace v8::internal |
540 | 548 |
541 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 549 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |