| 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); | |
| 936 | 930 |
| 937 // 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. |
| 938 // Uses the ip register as scratch. | 932 // Uses the ip register as scratch. |
| 939 void CompareRoot(Register obj, Heap::RootListIndex index); | 933 void CompareRoot(Register obj, Heap::RootListIndex index); |
| 940 | 934 |
| 941 | 935 |
| 942 // Load and check the instance type of an object for being a string. | 936 // Load and check the instance type of an object for being a string. |
| 943 // Loads the type into the second argument register. | 937 // Loads the type into the second argument register. |
| 944 // Returns a condition that will be enabled if the object was a string | 938 // Returns a condition that will be enabled if the object was a string |
| 945 // and the passed-in condition passed. If the passed-in condition failed | 939 // 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... |
| 1556 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1550 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1557 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1551 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1558 #else | 1552 #else |
| 1559 #define ACCESS_MASM(masm) masm-> | 1553 #define ACCESS_MASM(masm) masm-> |
| 1560 #endif | 1554 #endif |
| 1561 | 1555 |
| 1562 | 1556 |
| 1563 } } // namespace v8::internal | 1557 } } // namespace v8::internal |
| 1564 | 1558 |
| 1565 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1559 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |