| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 void SafeSet(Register dst, const Immediate& x); | 209 void SafeSet(Register dst, const Immediate& x); |
| 210 void SafePush(const Immediate& x); | 210 void SafePush(const Immediate& x); |
| 211 | 211 |
| 212 // Compare object type for heap object. | 212 // Compare object type for heap object. |
| 213 // Incoming register is heap_object and outgoing register is map. | 213 // Incoming register is heap_object and outgoing register is map. |
| 214 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 214 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 215 | 215 |
| 216 // Compare instance type for map. | 216 // Compare instance type for map. |
| 217 void CmpInstanceType(Register map, InstanceType type); | 217 void CmpInstanceType(Register map, InstanceType type); |
| 218 | 218 |
| 219 // Check if a map for a JSObject indicates that the object has fast elements. |
| 220 // Jump to the specified label if it does not. |
| 221 void CheckFastElements(Register map, |
| 222 Label* fail, |
| 223 Label::Distance distance = Label::kFar); |
| 224 |
| 219 // Check if the map of an object is equal to a specified map and branch to | 225 // Check if the map of an object is equal to a specified map and branch to |
| 220 // label if not. Skip the smi check if not required (object is known to be a | 226 // label if not. Skip the smi check if not required (object is known to be a |
| 221 // heap object) | 227 // heap object) |
| 222 void CheckMap(Register obj, | 228 void CheckMap(Register obj, |
| 223 Handle<Map> map, | 229 Handle<Map> map, |
| 224 Label* fail, | 230 Label* fail, |
| 225 SmiCheckType smi_check_type); | 231 SmiCheckType smi_check_type); |
| 226 | 232 |
| 227 // Check if the map of an object is equal to a specified map and branch to a | 233 // Check if the map of an object is equal to a specified map and branch to a |
| 228 // specified target if equal. Skip the smi check if not required (object is | 234 // specified target if equal. Skip the smi check if not required (object is |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 } \ | 773 } \ |
| 768 masm-> | 774 masm-> |
| 769 #else | 775 #else |
| 770 #define ACCESS_MASM(masm) masm-> | 776 #define ACCESS_MASM(masm) masm-> |
| 771 #endif | 777 #endif |
| 772 | 778 |
| 773 | 779 |
| 774 } } // namespace v8::internal | 780 } } // namespace v8::internal |
| 775 | 781 |
| 776 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 782 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |