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 |
455 // FCmp is similar to integer cmp, but requires unsigned | 467 // FCmp is similar to integer cmp, but requires unsigned |
456 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 468 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
457 void FCmp(); | 469 void FCmp(); |
458 | 470 |
459 void ClampUint8(Register reg); | 471 void ClampUint8(Register reg); |
460 | 472 |
461 void ClampDoubleToUint8(XMMRegister input_reg, | 473 void ClampDoubleToUint8(XMMRegister input_reg, |
462 XMMRegister scratch_reg, | 474 XMMRegister scratch_reg, |
463 Register result_reg); | 475 Register result_reg); |
464 | 476 |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 } \ | 1107 } \ |
1096 masm-> | 1108 masm-> |
1097 #else | 1109 #else |
1098 #define ACCESS_MASM(masm) masm-> | 1110 #define ACCESS_MASM(masm) masm-> |
1099 #endif | 1111 #endif |
1100 | 1112 |
1101 | 1113 |
1102 } } // namespace v8::internal | 1114 } } // namespace v8::internal |
1103 | 1115 |
1104 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |