Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 // Store the function for the given builtin in the target register. | 359 // Store the function for the given builtin in the target register. |
| 360 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 360 void GetBuiltinFunction(Register target, Builtins::JavaScript id); |
| 361 | 361 |
| 362 // Store the code object for the given builtin in the target register. | 362 // Store the code object for the given builtin in the target register. |
| 363 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 363 void GetBuiltinEntry(Register target, Builtins::JavaScript id); |
| 364 | 364 |
| 365 // Expression support | 365 // Expression support |
| 366 void Set(Register dst, const Immediate& x); | 366 void Set(Register dst, const Immediate& x); |
| 367 void Set(const Operand& dst, const Immediate& x); | 367 void Set(const Operand& dst, const Immediate& x); |
| 368 | 368 |
| 369 // Use xorps to clear out the destination register before cvtsi2sd | |
|
Yang
2013/09/12 11:56:49
Could you add a comment on why we do this? I mean,
| |
| 370 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } | |
| 371 void Cvtsi2sd(XMMRegister dst, const Operand& src); | |
| 372 | |
| 369 // Support for constant splitting. | 373 // Support for constant splitting. |
| 370 bool IsUnsafeImmediate(const Immediate& x); | 374 bool IsUnsafeImmediate(const Immediate& x); |
| 371 void SafeSet(Register dst, const Immediate& x); | 375 void SafeSet(Register dst, const Immediate& x); |
| 372 void SafePush(const Immediate& x); | 376 void SafePush(const Immediate& x); |
| 373 | 377 |
| 374 // Compare object type for heap object. | 378 // Compare object type for heap object. |
| 375 // Incoming register is heap_object and outgoing register is map. | 379 // Incoming register is heap_object and outgoing register is map. |
| 376 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 380 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
| 377 | 381 |
| 378 // Compare instance type for map. | 382 // Compare instance type for map. |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1074 } \ | 1078 } \ |
| 1075 masm-> | 1079 masm-> |
| 1076 #else | 1080 #else |
| 1077 #define ACCESS_MASM(masm) masm-> | 1081 #define ACCESS_MASM(masm) masm-> |
| 1078 #endif | 1082 #endif |
| 1079 | 1083 |
| 1080 | 1084 |
| 1081 } } // namespace v8::internal | 1085 } } // namespace v8::internal |
| 1082 | 1086 |
| 1083 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1087 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |