| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 // Expression support | 203 // Expression support |
| 204 void Set(Register dst, const Immediate& x); | 204 void Set(Register dst, const Immediate& x); |
| 205 void Set(const Operand& dst, const Immediate& x); | 205 void Set(const Operand& dst, const Immediate& x); |
| 206 | 206 |
| 207 // Support for constant splitting. | 207 // Support for constant splitting. |
| 208 bool IsUnsafeImmediate(const Immediate& x); | 208 bool IsUnsafeImmediate(const Immediate& x); |
| 209 void SafeSet(Register dst, const Immediate& x); | 209 void SafeSet(Register dst, const Immediate& x); |
| 210 void SafePush(const Immediate& x); | 210 void SafePush(const Immediate& x); |
| 211 | 211 |
| 212 // Compare a register against a known root, e.g. undefined, null, true, ... |
| 213 void CompareRoot(Register with, Heap::RootListIndex index); |
| 214 |
| 212 // Compare object type for heap object. | 215 // Compare object type for heap object. |
| 213 // Incoming register is heap_object and outgoing register is map. | 216 // Incoming register is heap_object and outgoing register is map. |
| 214 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 217 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 215 | 218 |
| 216 // Compare instance type for map. | 219 // Compare instance type for map. |
| 217 void CmpInstanceType(Register map, InstanceType type); | 220 void CmpInstanceType(Register map, InstanceType type); |
| 218 | 221 |
| 219 // Check if a map for a JSObject indicates that the object has fast elements. | 222 // Check if a map for a JSObject indicates that the object has fast elements. |
| 220 // Jump to the specified label if it does not. | 223 // Jump to the specified label if it does not. |
| 221 void CheckFastElements(Register map, | 224 void CheckFastElements(Register map, |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 } \ | 799 } \ |
| 797 masm-> | 800 masm-> |
| 798 #else | 801 #else |
| 799 #define ACCESS_MASM(masm) masm-> | 802 #define ACCESS_MASM(masm) masm-> |
| 800 #endif | 803 #endif |
| 801 | 804 |
| 802 | 805 |
| 803 } } // namespace v8::internal | 806 } } // namespace v8::internal |
| 804 | 807 |
| 805 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 808 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |