| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 // Compare object type for heap object. | 747 // Compare object type for heap object. |
| 748 // Always use unsigned comparisons: above and below, not less and greater. | 748 // Always use unsigned comparisons: above and below, not less and greater. |
| 749 // Incoming register is heap_object and outgoing register is map. | 749 // Incoming register is heap_object and outgoing register is map. |
| 750 // They may be the same register, and may be kScratchRegister. | 750 // They may be the same register, and may be kScratchRegister. |
| 751 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 751 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 752 | 752 |
| 753 // Compare instance type for map. | 753 // Compare instance type for map. |
| 754 // Always use unsigned comparisons: above and below, not less and greater. | 754 // Always use unsigned comparisons: above and below, not less and greater. |
| 755 void CmpInstanceType(Register map, InstanceType type); | 755 void CmpInstanceType(Register map, InstanceType type); |
| 756 | 756 |
| 757 // Check if a map for a JSObject indicates that the object has fast elements. |
| 758 // Jump to the specified label if it does not. |
| 759 void CheckFastElements(Register map, |
| 760 Label* fail, |
| 761 Label::Distance distance = Label::kFar); |
| 762 |
| 757 // Check if the map of an object is equal to a specified map and | 763 // Check if the map of an object is equal to a specified map and |
| 758 // branch to label if not. Skip the smi check if not required | 764 // branch to label if not. Skip the smi check if not required |
| 759 // (object is known to be a heap object) | 765 // (object is known to be a heap object) |
| 760 void CheckMap(Register obj, | 766 void CheckMap(Register obj, |
| 761 Handle<Map> map, | 767 Handle<Map> map, |
| 762 Label* fail, | 768 Label* fail, |
| 763 SmiCheckType smi_check_type); | 769 SmiCheckType smi_check_type); |
| 764 | 770 |
| 765 // Check if the map of an object is equal to a specified map and branch to a | 771 // Check if the map of an object is equal to a specified map and branch to a |
| 766 // specified target if equal. Skip the smi check if not required (object is | 772 // specified target if equal. Skip the smi check if not required (object is |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 masm->popfd(); \ | 1288 masm->popfd(); \ |
| 1283 } \ | 1289 } \ |
| 1284 masm-> | 1290 masm-> |
| 1285 #else | 1291 #else |
| 1286 #define ACCESS_MASM(masm) masm-> | 1292 #define ACCESS_MASM(masm) masm-> |
| 1287 #endif | 1293 #endif |
| 1288 | 1294 |
| 1289 } } // namespace v8::internal | 1295 } } // namespace v8::internal |
| 1290 | 1296 |
| 1291 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1297 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |