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