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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void RecordSafepoint(LPointerMap* pointers, | 202 void RecordSafepoint(LPointerMap* pointers, |
203 Safepoint::Kind kind, | 203 Safepoint::Kind kind, |
204 int arguments, | 204 int arguments, |
205 int deoptimization_index); | 205 int deoptimization_index); |
206 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 206 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); |
207 void RecordSafepoint(int deoptimization_index); | 207 void RecordSafepoint(int deoptimization_index); |
208 void RecordSafepointWithRegisters(LPointerMap* pointers, | 208 void RecordSafepointWithRegisters(LPointerMap* pointers, |
209 int arguments, | 209 int arguments, |
210 int deoptimization_index); | 210 int deoptimization_index); |
211 void RecordPosition(int position); | 211 void RecordPosition(int position); |
| 212 int LastSafepointEnd() { |
| 213 return static_cast<int>(safepoints_.GetPcAfterGap()); |
| 214 } |
212 | 215 |
213 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 216 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
214 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); | 217 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); |
215 void EmitBranch(int left_block, int right_block, Condition cc); | 218 void EmitBranch(int left_block, int right_block, Condition cc); |
216 void EmitCmpI(LOperand* left, LOperand* right); | 219 void EmitCmpI(LOperand* left, LOperand* right); |
217 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env); | 220 void EmitNumberUntagD(Register input, XMMRegister result, LEnvironment* env); |
218 | 221 |
219 // Emits optimized code for typeof x == "y". Modifies input register. | 222 // Emits optimized code for typeof x == "y". Modifies input register. |
220 // Returns the condition on which a final split to | 223 // Returns the condition on which a final split to |
221 // true and false label should be made, to optimize fallthrough. | 224 // true and false label should be made, to optimize fallthrough. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 private: | 299 private: |
297 LCodeGen* codegen_; | 300 LCodeGen* codegen_; |
298 Label entry_; | 301 Label entry_; |
299 Label exit_; | 302 Label exit_; |
300 Label* external_exit_; | 303 Label* external_exit_; |
301 }; | 304 }; |
302 | 305 |
303 } } // namespace v8::internal | 306 } } // namespace v8::internal |
304 | 307 |
305 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 308 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |