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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } | 848 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
849 | 849 |
850 Handle<Object> CodeObject() { | 850 Handle<Object> CodeObject() { |
851 ASSERT(!code_object_.is_null()); | 851 ASSERT(!code_object_.is_null()); |
852 return code_object_; | 852 return code_object_; |
853 } | 853 } |
854 | 854 |
855 // Insert code to verify that the x87 stack has the specified depth (0-7) | 855 // Insert code to verify that the x87 stack has the specified depth (0-7) |
856 void VerifyX87StackDepth(uint32_t depth); | 856 void VerifyX87StackDepth(uint32_t depth); |
857 | 857 |
| 858 // Emit code for a flooring division by a constant. The dividend register is |
| 859 // unchanged, the result is in edx, and eax gets clobbered. |
| 860 void FlooringDiv(Register dividend, int32_t divisor); |
| 861 |
858 // --------------------------------------------------------------------------- | 862 // --------------------------------------------------------------------------- |
859 // StatsCounter support | 863 // StatsCounter support |
860 | 864 |
861 void SetCounter(StatsCounter* counter, int value); | 865 void SetCounter(StatsCounter* counter, int value); |
862 void IncrementCounter(StatsCounter* counter, int value); | 866 void IncrementCounter(StatsCounter* counter, int value); |
863 void DecrementCounter(StatsCounter* counter, int value); | 867 void DecrementCounter(StatsCounter* counter, int value); |
864 void IncrementCounter(Condition cc, StatsCounter* counter, int value); | 868 void IncrementCounter(Condition cc, StatsCounter* counter, int value); |
865 void DecrementCounter(Condition cc, StatsCounter* counter, int value); | 869 void DecrementCounter(Condition cc, StatsCounter* counter, int value); |
866 | 870 |
867 | 871 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 } \ | 1118 } \ |
1115 masm-> | 1119 masm-> |
1116 #else | 1120 #else |
1117 #define ACCESS_MASM(masm) masm-> | 1121 #define ACCESS_MASM(masm) masm-> |
1118 #endif | 1122 #endif |
1119 | 1123 |
1120 | 1124 |
1121 } } // namespace v8::internal | 1125 } } // namespace v8::internal |
1122 | 1126 |
1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1127 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |