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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 411 |
412 // Check if the object in register heap_object is a name. Afterwards the | 412 // Check if the object in register heap_object is a name. Afterwards the |
413 // register map contains the object map and the register instance_type | 413 // register map contains the object map and the register instance_type |
414 // contains the instance_type. The registers map and instance_type can be the | 414 // contains the instance_type. The registers map and instance_type can be the |
415 // same in which case it contains the instance type afterwards. Either of the | 415 // same in which case it contains the instance type afterwards. Either of the |
416 // registers map and instance_type can be the same as heap_object. | 416 // registers map and instance_type can be the same as heap_object. |
417 Condition IsObjectNameType(Register heap_object, | 417 Condition IsObjectNameType(Register heap_object, |
418 Register map, | 418 Register map, |
419 Register instance_type); | 419 Register instance_type); |
420 | 420 |
421 // Check if a heap object's type is in the JSObject range, not including | |
422 // JSFunction. The object's map will be loaded in the map register. | |
423 // Any or all of the three registers may be the same. | |
424 // The contents of the scratch register will always be overwritten. | |
425 void IsObjectJSObjectType(Register heap_object, | |
426 Register map, | |
427 Register scratch, | |
428 Label* fail); | |
429 | |
430 // The contents of the scratch register will be overwritten. | |
431 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail); | |
432 | |
433 // FCmp is similar to integer cmp, but requires unsigned | 421 // FCmp is similar to integer cmp, but requires unsigned |
434 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 422 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
435 void FCmp(); | 423 void FCmp(); |
436 void FXamMinusZero(); | 424 void FXamMinusZero(); |
437 void FXamSign(); | 425 void FXamSign(); |
438 void X87CheckIA(); | 426 void X87CheckIA(); |
439 void X87SetRC(int rc); | 427 void X87SetRC(int rc); |
440 void X87SetFPUCW(int cw); | 428 void X87SetFPUCW(int cw); |
441 | 429 |
442 void ClampUint8(Register reg); | 430 void ClampUint8(Register reg); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 } \ | 1049 } \ |
1062 masm-> | 1050 masm-> |
1063 #else | 1051 #else |
1064 #define ACCESS_MASM(masm) masm-> | 1052 #define ACCESS_MASM(masm) masm-> |
1065 #endif | 1053 #endif |
1066 | 1054 |
1067 | 1055 |
1068 } } // namespace v8::internal | 1056 } } // namespace v8::internal |
1069 | 1057 |
1070 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1058 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |