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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 | 920 |
921 // Check if the map of an object is equal to a specified map and branch to a | 921 // Check if the map of an object is equal to a specified map and branch to a |
922 // specified target if equal. Skip the smi check if not required (object is | 922 // specified target if equal. Skip the smi check if not required (object is |
923 // known to be a heap object) | 923 // known to be a heap object) |
924 void DispatchMap(Register obj, | 924 void DispatchMap(Register obj, |
925 Register scratch, | 925 Register scratch, |
926 Handle<Map> map, | 926 Handle<Map> map, |
927 Handle<Code> success, | 927 Handle<Code> success, |
928 SmiCheckType smi_check_type); | 928 SmiCheckType smi_check_type); |
929 | 929 |
| 930 // Compare the given value and the value of weak cell. |
| 931 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 932 |
| 933 // Load the value of the weak cell in the value register. Branch to the given |
| 934 // miss label if the weak cell was cleared. |
| 935 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
930 | 936 |
931 // Compare the object in a register to a value from the root list. | 937 // Compare the object in a register to a value from the root list. |
932 // Uses the ip register as scratch. | 938 // Uses the ip register as scratch. |
933 void CompareRoot(Register obj, Heap::RootListIndex index); | 939 void CompareRoot(Register obj, Heap::RootListIndex index); |
934 | 940 |
935 | 941 |
936 // Load and check the instance type of an object for being a string. | 942 // Load and check the instance type of an object for being a string. |
937 // Loads the type into the second argument register. | 943 // Loads the type into the second argument register. |
938 // Returns a condition that will be enabled if the object was a string | 944 // Returns a condition that will be enabled if the object was a string |
939 // and the passed-in condition passed. If the passed-in condition failed | 945 // and the passed-in condition passed. If the passed-in condition failed |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1556 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1557 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1552 #else | 1558 #else |
1553 #define ACCESS_MASM(masm) masm-> | 1559 #define ACCESS_MASM(masm) masm-> |
1554 #endif | 1560 #endif |
1555 | 1561 |
1556 | 1562 |
1557 } } // namespace v8::internal | 1563 } } // namespace v8::internal |
1558 | 1564 |
1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1565 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |