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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // This will truncate a floating-point value outside of the singed 32bit | 566 // This will truncate a floating-point value outside of the singed 32bit |
567 // integer range to a 32bit signed integer. | 567 // integer range to a 32bit signed integer. |
568 // Expects the double value loaded in input_high and input_low. | 568 // Expects the double value loaded in input_high and input_low. |
569 // Exits with the answer in 'result'. | 569 // Exits with the answer in 'result'. |
570 // Note that this code does not work for values in the 32bit range! | 570 // Note that this code does not work for values in the 32bit range! |
571 void EmitOutOfInt32RangeTruncate(Register result, | 571 void EmitOutOfInt32RangeTruncate(Register result, |
572 Register input_high, | 572 Register input_high, |
573 Register input_low, | 573 Register input_low, |
574 Register scratch); | 574 Register scratch); |
575 | 575 |
| 576 // Performs a truncating conversion of a floating point number as used by |
| 577 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. |
| 578 // Exits with 'result' holding the answer and all other registers clobbered. |
| 579 void EmitECMATruncate(Register result, |
| 580 FPURegister double_input, |
| 581 FPURegister single_scratch, |
| 582 Register scratch, |
| 583 Register scratch2, |
| 584 Register scratch3); |
| 585 |
576 // ------------------------------------------------------------------------- | 586 // ------------------------------------------------------------------------- |
577 // Activation frames. | 587 // Activation frames. |
578 | 588 |
579 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } | 589 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } |
580 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } | 590 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } |
581 | 591 |
582 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } | 592 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } |
583 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } | 593 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } |
584 | 594 |
585 // Enter exit frame. | 595 // Enter exit frame. |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1212 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1203 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1213 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1204 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1214 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1205 #else | 1215 #else |
1206 #define ACCESS_MASM(masm) masm-> | 1216 #define ACCESS_MASM(masm) masm-> |
1207 #endif | 1217 #endif |
1208 | 1218 |
1209 } } // namespace v8::internal | 1219 } } // namespace v8::internal |
1210 | 1220 |
1211 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1221 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |