| 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 void CmpInstanceType(Register map, InstanceType type); | 744 void CmpInstanceType(Register map, InstanceType type); |
| 745 | 745 |
| 746 // Check if the map of an object is equal to a specified map and | 746 // Check if the map of an object is equal to a specified map and |
| 747 // branch to label if not. Skip the smi check if not required | 747 // branch to label if not. Skip the smi check if not required |
| 748 // (object is known to be a heap object) | 748 // (object is known to be a heap object) |
| 749 void CheckMap(Register obj, | 749 void CheckMap(Register obj, |
| 750 Handle<Map> map, | 750 Handle<Map> map, |
| 751 Label* fail, | 751 Label* fail, |
| 752 bool is_heap_object); | 752 bool is_heap_object); |
| 753 | 753 |
| 754 // Check if the map of an object is equal to a specified map and branch to a |
| 755 // specified target if equal. Skip the smi check if not required (object is |
| 756 // known to be a heap object) |
| 757 void DispatchMap(Register obj, |
| 758 Handle<Map> map, |
| 759 Handle<Code> success, |
| 760 bool is_heap_object); |
| 761 |
| 754 // Check if the object in register heap_object is a string. Afterwards the | 762 // Check if the object in register heap_object is a string. Afterwards the |
| 755 // register map contains the object map and the register instance_type | 763 // register map contains the object map and the register instance_type |
| 756 // contains the instance_type. The registers map and instance_type can be the | 764 // contains the instance_type. The registers map and instance_type can be the |
| 757 // same in which case it contains the instance type afterwards. Either of the | 765 // same in which case it contains the instance type afterwards. Either of the |
| 758 // registers map and instance_type can be the same as heap_object. | 766 // registers map and instance_type can be the same as heap_object. |
| 759 Condition IsObjectStringType(Register heap_object, | 767 Condition IsObjectStringType(Register heap_object, |
| 760 Register map, | 768 Register map, |
| 761 Register instance_type); | 769 Register instance_type); |
| 762 | 770 |
| 763 // FCmp compares and pops the two values on top of the FPU stack. | 771 // FCmp compares and pops the two values on top of the FPU stack. |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 masm->popfd(); \ | 1261 masm->popfd(); \ |
| 1254 } \ | 1262 } \ |
| 1255 masm-> | 1263 masm-> |
| 1256 #else | 1264 #else |
| 1257 #define ACCESS_MASM(masm) masm-> | 1265 #define ACCESS_MASM(masm) masm-> |
| 1258 #endif | 1266 #endif |
| 1259 | 1267 |
| 1260 } } // namespace v8::internal | 1268 } } // namespace v8::internal |
| 1261 | 1269 |
| 1262 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1270 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |