OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 Label* fail, | 1471 Label* fail, |
1472 SmiCheckType smi_check_type); | 1472 SmiCheckType smi_check_type); |
1473 | 1473 |
1474 // As above, but the map of the object is already loaded into obj_map, and is | 1474 // As above, but the map of the object is already loaded into obj_map, and is |
1475 // preserved. | 1475 // preserved. |
1476 void CheckMap(Register obj_map, | 1476 void CheckMap(Register obj_map, |
1477 Handle<Map> map, | 1477 Handle<Map> map, |
1478 Label* fail, | 1478 Label* fail, |
1479 SmiCheckType smi_check_type); | 1479 SmiCheckType smi_check_type); |
1480 | 1480 |
1481 // Check if the map of an object is equal to a specified map and branch to a | 1481 // Check if the map of an object is equal to a specified weak map and branch |
1482 // specified target if equal. Skip the smi check if not required (object is | 1482 // to a specified target if equal. Skip the smi check if not required |
1483 // known to be a heap object) | 1483 // (object is known to be a heap object) |
1484 void DispatchMap(Register obj, | 1484 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2, |
1485 Register scratch, | 1485 Handle<WeakCell> cell, Handle<Code> success, |
1486 Handle<Map> map, | 1486 SmiCheckType smi_check_type); |
1487 Handle<Code> success, | |
1488 SmiCheckType smi_check_type); | |
1489 | 1487 |
1490 // Compare the given value and the value of weak cell. | 1488 // Compare the given value and the value of weak cell. |
1491 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 1489 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
1492 | 1490 |
1493 // Load the value of the weak cell in the value register. Branch to the given | 1491 // Load the value of the weak cell in the value register. Branch to the given |
1494 // miss label if the weak cell was cleared. | 1492 // miss label if the weak cell was cleared. |
1495 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 1493 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
1496 | 1494 |
1497 // Test the bitfield of the heap object map with mask and set the condition | 1495 // Test the bitfield of the heap object map with mask and set the condition |
1498 // flags. The object register is preserved. | 1496 // flags. The object register is preserved. |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 #error "Unsupported option" | 2331 #error "Unsupported option" |
2334 #define CODE_COVERAGE_STRINGIFY(x) #x | 2332 #define CODE_COVERAGE_STRINGIFY(x) #x |
2335 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2333 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2336 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2334 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2337 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2335 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2338 #else | 2336 #else |
2339 #define ACCESS_MASM(masm) masm-> | 2337 #define ACCESS_MASM(masm) masm-> |
2340 #endif | 2338 #endif |
2341 | 2339 |
2342 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2340 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |