| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 void SafeSet(Register dst, const Immediate& x); | 198 void SafeSet(Register dst, const Immediate& x); |
| 199 void SafePush(const Immediate& x); | 199 void SafePush(const Immediate& x); |
| 200 | 200 |
| 201 // Compare object type for heap object. | 201 // Compare object type for heap object. |
| 202 // Incoming register is heap_object and outgoing register is map. | 202 // Incoming register is heap_object and outgoing register is map. |
| 203 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 203 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 204 | 204 |
| 205 // Compare instance type for map. | 205 // Compare instance type for map. |
| 206 void CmpInstanceType(Register map, InstanceType type); | 206 void CmpInstanceType(Register map, InstanceType type); |
| 207 | 207 |
| 208 // Check if the map of an object is equal to a specified map and | 208 // Check if the map of an object is equal to a specified map and branch to |
| 209 // branch to label if not. Skip the smi check if not required | 209 // label if not. Skip the smi check if not required (object is known to be a |
| 210 // (object is known to be a heap object) | 210 // heap object) |
| 211 void CheckMap(Register obj, | 211 void CheckMap(Register obj, |
| 212 Handle<Map> map, | 212 Handle<Map> map, |
| 213 Label* fail, | 213 Label* fail, |
| 214 bool is_heap_object); | 214 bool is_heap_object); |
| 215 | 215 |
| 216 // Check if the map of an object is equal to a specified map and branch to a |
| 217 // specified target if equal. Skip the smi check if not required (object is |
| 218 // known to be a heap object) |
| 219 void DispatchMap(Register obj, |
| 220 Handle<Map> map, |
| 221 Handle<Code> success, |
| 222 bool is_heap_object); |
| 223 |
| 216 // Check if the object in register heap_object is a string. Afterwards the | 224 // Check if the object in register heap_object is a string. Afterwards the |
| 217 // register map contains the object map and the register instance_type | 225 // register map contains the object map and the register instance_type |
| 218 // contains the instance_type. The registers map and instance_type can be the | 226 // contains the instance_type. The registers map and instance_type can be the |
| 219 // same in which case it contains the instance type afterwards. Either of the | 227 // same in which case it contains the instance type afterwards. Either of the |
| 220 // registers map and instance_type can be the same as heap_object. | 228 // registers map and instance_type can be the same as heap_object. |
| 221 Condition IsObjectStringType(Register heap_object, | 229 Condition IsObjectStringType(Register heap_object, |
| 222 Register map, | 230 Register map, |
| 223 Register instance_type); | 231 Register instance_type); |
| 224 | 232 |
| 225 // Check if a heap object's type is in the JSObject range, not including | 233 // Check if a heap object's type is in the JSObject range, not including |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 } \ | 746 } \ |
| 739 masm-> | 747 masm-> |
| 740 #else | 748 #else |
| 741 #define ACCESS_MASM(masm) masm-> | 749 #define ACCESS_MASM(masm) masm-> |
| 742 #endif | 750 #endif |
| 743 | 751 |
| 744 | 752 |
| 745 } } // namespace v8::internal | 753 } } // namespace v8::internal |
| 746 | 754 |
| 747 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 755 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |