| 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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 445 |
| 446 // Check if the object in register heap_object is a name. Afterwards the | 446 // Check if the object in register heap_object is a name. Afterwards the |
| 447 // register map contains the object map and the register instance_type | 447 // register map contains the object map and the register instance_type |
| 448 // contains the instance_type. The registers map and instance_type can be the | 448 // contains the instance_type. The registers map and instance_type can be the |
| 449 // same in which case it contains the instance type afterwards. Either of the | 449 // same in which case it contains the instance type afterwards. Either of the |
| 450 // registers map and instance_type can be the same as heap_object. | 450 // registers map and instance_type can be the same as heap_object. |
| 451 Condition IsObjectNameType(Register heap_object, | 451 Condition IsObjectNameType(Register heap_object, |
| 452 Register map, | 452 Register map, |
| 453 Register instance_type); | 453 Register instance_type); |
| 454 | 454 |
| 455 // Check if a heap object's type is in the JSObject range, not including | |
| 456 // JSFunction. The object's map will be loaded in the map register. | |
| 457 // Any or all of the three registers may be the same. | |
| 458 // The contents of the scratch register will always be overwritten. | |
| 459 void IsObjectJSObjectType(Register heap_object, | |
| 460 Register map, | |
| 461 Register scratch, | |
| 462 Label* fail); | |
| 463 | |
| 464 // The contents of the scratch register will be overwritten. | |
| 465 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail); | |
| 466 | |
| 467 // FCmp is similar to integer cmp, but requires unsigned | 455 // FCmp is similar to integer cmp, but requires unsigned |
| 468 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 456 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
| 469 void FCmp(); | 457 void FCmp(); |
| 470 | 458 |
| 471 void ClampUint8(Register reg); | 459 void ClampUint8(Register reg); |
| 472 | 460 |
| 473 void ClampDoubleToUint8(XMMRegister input_reg, | 461 void ClampDoubleToUint8(XMMRegister input_reg, |
| 474 XMMRegister scratch_reg, | 462 XMMRegister scratch_reg, |
| 475 Register result_reg); | 463 Register result_reg); |
| 476 | 464 |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 } \ | 1095 } \ |
| 1108 masm-> | 1096 masm-> |
| 1109 #else | 1097 #else |
| 1110 #define ACCESS_MASM(masm) masm-> | 1098 #define ACCESS_MASM(masm) masm-> |
| 1111 #endif | 1099 #endif |
| 1112 | 1100 |
| 1113 | 1101 |
| 1114 } } // namespace v8::internal | 1102 } } // namespace v8::internal |
| 1115 | 1103 |
| 1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1104 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |