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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // code generation attempt succeeded. | 88 // code generation attempt succeeded. |
89 bool GenerateCode(); | 89 bool GenerateCode(); |
90 | 90 |
91 // Finish the code by setting stack height, safepoint, and bailout | 91 // Finish the code by setting stack height, safepoint, and bailout |
92 // information on it. | 92 // information on it. |
93 void FinishCode(Handle<Code> code); | 93 void FinishCode(Handle<Code> code); |
94 | 94 |
95 // Deferred code support. | 95 // Deferred code support. |
96 void DoDeferredNumberTagD(LNumberTagD* instr); | 96 void DoDeferredNumberTagD(LNumberTagD* instr); |
97 void DoDeferredNumberTagI(LNumberTagI* instr); | 97 void DoDeferredNumberTagI(LNumberTagI* instr); |
98 void DoDeferredTaggedToI(LTaggedToI* instr); | 98 void DoDeferredTaggedToI(LTaggedToI* instr, Label* exit); |
99 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 99 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
100 void DoDeferredStackCheck(LStackCheck* instr); | 100 void DoDeferredStackCheck(LStackCheck* instr); |
101 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 101 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
102 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 102 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
103 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 103 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
104 Label* map_check); | 104 Label* map_check); |
105 | 105 |
106 // Parallel move support. | 106 // Parallel move support. |
107 void DoParallelMove(LParallelMove* move); | 107 void DoParallelMove(LParallelMove* move); |
108 void DoGap(LGap* instr); | 108 void DoGap(LGap* instr); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); | 253 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); |
254 void RecordSafepoint(int deoptimization_index); | 254 void RecordSafepoint(int deoptimization_index); |
255 void RecordSafepointWithRegisters(LPointerMap* pointers, | 255 void RecordSafepointWithRegisters(LPointerMap* pointers, |
256 int arguments, | 256 int arguments, |
257 int deoptimization_index); | 257 int deoptimization_index); |
258 void RecordPosition(int position); | 258 void RecordPosition(int position); |
259 | 259 |
260 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 260 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
261 void EmitGoto(int block); | 261 void EmitGoto(int block); |
262 void EmitBranch(int left_block, int right_block, Condition cc); | 262 void EmitBranch(int left_block, int right_block, Condition cc); |
| 263 void EmitPush(LOperand* operand); |
263 void EmitCmpI(LOperand* left, LOperand* right); | 264 void EmitCmpI(LOperand* left, LOperand* right); |
264 void EmitNumberUntagD(Register input, | 265 void EmitNumberUntagD(Register input, |
265 XMMRegister result, | 266 XMMRegister result, |
266 bool deoptimize_on_undefined, | 267 bool deoptimize_on_undefined, |
267 LEnvironment* env); | 268 LEnvironment* env); |
268 | 269 |
269 // Emits optimized code for typeof x == "y". Modifies input register. | 270 // Emits optimized code for typeof x == "y". Modifies input register. |
270 // Returns the condition on which a final split to | 271 // Returns the condition on which a final split to |
271 // true and false label should be made, to optimize fallthrough. | 272 // true and false label should be made, to optimize fallthrough. |
272 Condition EmitTypeofIs(Label* true_label, Label* false_label, | 273 Condition EmitTypeofIs(Label* true_label, Label* false_label, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 private: | 369 private: |
369 LCodeGen* codegen_; | 370 LCodeGen* codegen_; |
370 Label entry_; | 371 Label entry_; |
371 Label exit_; | 372 Label exit_; |
372 Label* external_exit_; | 373 Label* external_exit_; |
373 }; | 374 }; |
374 | 375 |
375 } } // namespace v8::internal | 376 } } // namespace v8::internal |
376 | 377 |
377 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 378 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |