| 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 // Check if the map of an object is equal to a specified weak map and branch | 917 // Check if the map of an object is equal to a specified weak map and branch |
| 918 // to a specified target if equal. Skip the smi check if not required | 918 // to a specified target if equal. Skip the smi check if not required |
| 919 // (object is known to be a heap object) | 919 // (object is known to be a heap object) |
| 920 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2, | 920 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2, |
| 921 Handle<WeakCell> cell, Handle<Code> success, | 921 Handle<WeakCell> cell, Handle<Code> success, |
| 922 SmiCheckType smi_check_type); | 922 SmiCheckType smi_check_type); |
| 923 | 923 |
| 924 // Compare the given value and the value of weak cell. | 924 // Compare the given value and the value of weak cell. |
| 925 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 925 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 926 | 926 |
| 927 void GetWeakValue(Register value, Handle<WeakCell> cell); |
| 928 |
| 927 // Load the value of the weak cell in the value register. Branch to the given | 929 // Load the value of the weak cell in the value register. Branch to the given |
| 928 // miss label if the weak cell was cleared. | 930 // miss label if the weak cell was cleared. |
| 929 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 931 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
| 930 | 932 |
| 931 // Compare the object in a register to a value from the root list. | 933 // Compare the object in a register to a value from the root list. |
| 932 // Uses the ip register as scratch. | 934 // Uses the ip register as scratch. |
| 933 void CompareRoot(Register obj, Heap::RootListIndex index); | 935 void CompareRoot(Register obj, Heap::RootListIndex index); |
| 934 | 936 |
| 935 | 937 |
| 936 // Load and check the instance type of an object for being a string. | 938 // Load and check the instance type of an object for being a string. |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1544 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1543 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1545 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1544 #else | 1546 #else |
| 1545 #define ACCESS_MASM(masm) masm-> | 1547 #define ACCESS_MASM(masm) masm-> |
| 1546 #endif | 1548 #endif |
| 1547 | 1549 |
| 1548 | 1550 |
| 1549 } } // namespace v8::internal | 1551 } } // namespace v8::internal |
| 1550 | 1552 |
| 1551 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1553 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |