OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 Operand ToOperand(LOperand* op) const; | 170 Operand ToOperand(LOperand* op) const; |
171 Immediate ToImmediate(LOperand* op); | 171 Immediate ToImmediate(LOperand* op); |
172 | 172 |
173 // Specific math operations - used from DoUnaryMathOperation. | 173 // Specific math operations - used from DoUnaryMathOperation. |
174 void DoMathAbs(LUnaryMathOperation* instr); | 174 void DoMathAbs(LUnaryMathOperation* instr); |
175 void DoMathFloor(LUnaryMathOperation* instr); | 175 void DoMathFloor(LUnaryMathOperation* instr); |
176 void DoMathRound(LUnaryMathOperation* instr); | 176 void DoMathRound(LUnaryMathOperation* instr); |
177 void DoMathSqrt(LUnaryMathOperation* instr); | 177 void DoMathSqrt(LUnaryMathOperation* instr); |
178 void DoMathPowHalf(LUnaryMathOperation* instr); | 178 void DoMathPowHalf(LUnaryMathOperation* instr); |
179 void DoMathLog(LUnaryMathOperation* instr); | 179 void DoMathLog(LUnaryMathOperation* instr); |
| 180 void DoMathCos(LUnaryMathOperation* instr); |
| 181 void DoMathSin(LUnaryMathOperation* instr); |
180 | 182 |
181 // Support for recording safepoint and position information. | 183 // Support for recording safepoint and position information. |
182 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 184 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); |
183 void RecordSafepointWithRegisters(LPointerMap* pointers, | 185 void RecordSafepointWithRegisters(LPointerMap* pointers, |
184 int arguments, | 186 int arguments, |
185 int deoptimization_index); | 187 int deoptimization_index); |
186 void RecordPosition(int position); | 188 void RecordPosition(int position); |
187 | 189 |
188 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 190 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
189 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); | 191 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 private: | 256 private: |
255 LCodeGen* codegen_; | 257 LCodeGen* codegen_; |
256 Label entry_; | 258 Label entry_; |
257 Label exit_; | 259 Label exit_; |
258 Label* external_exit_; | 260 Label* external_exit_; |
259 }; | 261 }; |
260 | 262 |
261 } } // namespace v8::internal | 263 } } // namespace v8::internal |
262 | 264 |
263 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 265 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |