| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 // Expression support | 297 // Expression support |
| 298 void Set(Register dst, const Immediate& x); | 298 void Set(Register dst, const Immediate& x); |
| 299 void Set(const Operand& dst, const Immediate& x); | 299 void Set(const Operand& dst, const Immediate& x); |
| 300 | 300 |
| 301 // Support for constant splitting. | 301 // Support for constant splitting. |
| 302 bool IsUnsafeImmediate(const Immediate& x); | 302 bool IsUnsafeImmediate(const Immediate& x); |
| 303 void SafeSet(Register dst, const Immediate& x); | 303 void SafeSet(Register dst, const Immediate& x); |
| 304 void SafePush(const Immediate& x); | 304 void SafePush(const Immediate& x); |
| 305 | 305 |
| 306 // Compare a register against a known root, e.g. undefined, null, true, ... |
| 307 void CompareRoot(Register with, Heap::RootListIndex index); |
| 308 |
| 306 // Compare object type for heap object. | 309 // Compare object type for heap object. |
| 307 // Incoming register is heap_object and outgoing register is map. | 310 // Incoming register is heap_object and outgoing register is map. |
| 308 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 311 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 309 | 312 |
| 310 // Compare instance type for map. | 313 // Compare instance type for map. |
| 311 void CmpInstanceType(Register map, InstanceType type); | 314 void CmpInstanceType(Register map, InstanceType type); |
| 312 | 315 |
| 313 // Check if a map for a JSObject indicates that the object has fast elements. | 316 // Check if a map for a JSObject indicates that the object has fast elements. |
| 314 // Jump to the specified label if it does not. | 317 // Jump to the specified label if it does not. |
| 315 void CheckFastElements(Register map, | 318 void CheckFastElements(Register map, |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 } \ | 907 } \ |
| 905 masm-> | 908 masm-> |
| 906 #else | 909 #else |
| 907 #define ACCESS_MASM(masm) masm-> | 910 #define ACCESS_MASM(masm) masm-> |
| 908 #endif | 911 #endif |
| 909 | 912 |
| 910 | 913 |
| 911 } } // namespace v8::internal | 914 } } // namespace v8::internal |
| 912 | 915 |
| 913 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 916 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |