| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 InstanceType type, | 1331 InstanceType type, |
| 1332 Label* if_not_object); | 1332 Label* if_not_object); |
| 1333 | 1333 |
| 1334 // Compare instance type in a map. map contains a valid map object whose | 1334 // Compare instance type in a map. map contains a valid map object whose |
| 1335 // object type should be compared with the given type. This both | 1335 // object type should be compared with the given type. This both |
| 1336 // sets the flags and leaves the object type in the type_reg register. | 1336 // sets the flags and leaves the object type in the type_reg register. |
| 1337 void CompareInstanceType(Register map, | 1337 void CompareInstanceType(Register map, |
| 1338 Register type_reg, | 1338 Register type_reg, |
| 1339 InstanceType type); | 1339 InstanceType type); |
| 1340 | 1340 |
| 1341 // Compare an object's map with the specified map and its transitioned | 1341 // Compare an object's map with the specified map. Condition flags are set |
| 1342 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are | 1342 // with result of map compare. |
| 1343 // set with result of map compare. If multiple map compares are required, the | |
| 1344 // compare sequences branches to early_success. | |
| 1345 void CompareMap(Register obj, | 1343 void CompareMap(Register obj, |
| 1346 Register scratch, | 1344 Register scratch, |
| 1347 Handle<Map> map, | 1345 Handle<Map> map); |
| 1348 Label* early_success = NULL); | |
| 1349 | 1346 |
| 1350 // As above, but the map of the object is already loaded into the register | 1347 // As above, but the map of the object is already loaded into the register |
| 1351 // which is preserved by the code generated. | 1348 // which is preserved by the code generated. |
| 1352 void CompareMap(Register obj_map, | 1349 void CompareMap(Register obj_map, |
| 1353 Handle<Map> map, | 1350 Handle<Map> map); |
| 1354 Label* early_success = NULL); | |
| 1355 | 1351 |
| 1356 // Check if the map of an object is equal to a specified map and branch to | 1352 // Check if the map of an object is equal to a specified map and branch to |
| 1357 // label if not. Skip the smi check if not required (object is known to be a | 1353 // label if not. Skip the smi check if not required (object is known to be a |
| 1358 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match | 1354 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match |
| 1359 // against maps that are ElementsKind transition maps of the specified map. | 1355 // against maps that are ElementsKind transition maps of the specified map. |
| 1360 void CheckMap(Register obj, | 1356 void CheckMap(Register obj, |
| 1361 Register scratch, | 1357 Register scratch, |
| 1362 Handle<Map> map, | 1358 Handle<Map> map, |
| 1363 Label* fail, | 1359 Label* fail, |
| 1364 SmiCheckType smi_check_type); | 1360 SmiCheckType smi_check_type); |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2218 #error "Unsupported option" | 2214 #error "Unsupported option" |
| 2219 #define CODE_COVERAGE_STRINGIFY(x) #x | 2215 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2220 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2216 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2221 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2217 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2222 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2218 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2223 #else | 2219 #else |
| 2224 #define ACCESS_MASM(masm) masm-> | 2220 #define ACCESS_MASM(masm) masm-> |
| 2225 #endif | 2221 #endif |
| 2226 | 2222 |
| 2227 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2223 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |