| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 SmiCheckType smi_check_type); | 907 SmiCheckType smi_check_type); |
| 908 | 908 |
| 909 | 909 |
| 910 void CheckMap(Register obj, | 910 void CheckMap(Register obj, |
| 911 Register scratch, | 911 Register scratch, |
| 912 Heap::RootListIndex index, | 912 Heap::RootListIndex index, |
| 913 Label* fail, | 913 Label* fail, |
| 914 SmiCheckType smi_check_type); | 914 SmiCheckType smi_check_type); |
| 915 | 915 |
| 916 | 916 |
| 917 // Check if the map of an object is equal to a specified map and branch to a | 917 // Check if the map of an object is equal to a specified weak map and branch |
| 918 // specified target if equal. Skip the smi check if not required (object is | 918 // to a specified target if equal. Skip the smi check if not required |
| 919 // known to be a heap object) | 919 // (object is known to be a heap object) |
| 920 void DispatchMap(Register obj, | 920 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2, |
| 921 Register scratch, | 921 Handle<WeakCell> cell, Handle<Code> success, |
| 922 Handle<Map> map, | 922 SmiCheckType smi_check_type); |
| 923 Handle<Code> success, | |
| 924 SmiCheckType smi_check_type); | |
| 925 | 923 |
| 926 // Compare the given value and the value of weak cell. | 924 // Compare the given value and the value of weak cell. |
| 927 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 925 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 928 | 926 |
| 929 // Load the value of the weak cell in the value register. Branch to the given | 927 // Load the value of the weak cell in the value register. Branch to the given |
| 930 // miss label if the weak cell was cleared. | 928 // miss label if the weak cell was cleared. |
| 931 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 929 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
| 932 | 930 |
| 933 // Compare the object in a register to a value from the root list. | 931 // Compare the object in a register to a value from the root list. |
| 934 // Uses the ip register as scratch. | 932 // Uses the ip register as scratch. |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1550 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1553 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1554 #else | 1552 #else |
| 1555 #define ACCESS_MASM(masm) masm-> | 1553 #define ACCESS_MASM(masm) masm-> |
| 1556 #endif | 1554 #endif |
| 1557 | 1555 |
| 1558 | 1556 |
| 1559 } } // namespace v8::internal | 1557 } } // namespace v8::internal |
| 1560 | 1558 |
| 1561 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |