| 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 // chunk contains constructs we cannot handle. Returns true if the | 88 // chunk contains constructs we cannot handle. Returns true if the |
| 89 // code generation attempt succeeded. | 89 // code generation attempt succeeded. |
| 90 bool GenerateCode(); | 90 bool GenerateCode(); |
| 91 | 91 |
| 92 // Finish the code by setting stack height, safepoint, and bailout | 92 // Finish the code by setting stack height, safepoint, and bailout |
| 93 // information on it. | 93 // information on it. |
| 94 void FinishCode(Handle<Code> code); | 94 void FinishCode(Handle<Code> code); |
| 95 | 95 |
| 96 // Deferred code support. | 96 // Deferred code support. |
| 97 void DoDeferredNumberTagD(LNumberTagD* instr); | 97 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 98 void DoDeferredNumberTagI(LNumberTagI* instr); | |
| 99 void DoDeferredTaggedToI(LTaggedToI* instr); | 98 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 100 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 99 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 101 void DoDeferredStackCheck(LGoto* instr); | 100 void DoDeferredStackCheck(LGoto* instr); |
| 102 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 101 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 103 Label* map_check); | 102 Label* map_check); |
| 104 | 103 |
| 105 // Parallel move support. | 104 // Parallel move support. |
| 106 void DoParallelMove(LParallelMove* move); | 105 void DoParallelMove(LParallelMove* move); |
| 107 | 106 |
| 108 // Emit frame translation commands for an environment. | 107 // Emit frame translation commands for an environment. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Emits optimized code for typeof x == "y". Modifies input register. | 223 // Emits optimized code for typeof x == "y". Modifies input register. |
| 225 // Returns the condition on which a final split to | 224 // Returns the condition on which a final split to |
| 226 // true and false label should be made, to optimize fallthrough. | 225 // true and false label should be made, to optimize fallthrough. |
| 227 Condition EmitTypeofIs(Label* true_label, Label* false_label, | 226 Condition EmitTypeofIs(Label* true_label, Label* false_label, |
| 228 Register input, Handle<String> type_name); | 227 Register input, Handle<String> type_name); |
| 229 | 228 |
| 230 // Emits optimized code for %_IsObject(x). Preserves input register. | 229 // Emits optimized code for %_IsObject(x). Preserves input register. |
| 231 // Returns the condition on which a final split to | 230 // Returns the condition on which a final split to |
| 232 // true and false label should be made, to optimize fallthrough. | 231 // true and false label should be made, to optimize fallthrough. |
| 233 Condition EmitIsObject(Register input, | 232 Condition EmitIsObject(Register input, |
| 234 Register temp1, | |
| 235 Register temp2, | |
| 236 Label* is_not_object, | 233 Label* is_not_object, |
| 237 Label* is_object); | 234 Label* is_object); |
| 238 | 235 |
| 239 LChunk* const chunk_; | 236 LChunk* const chunk_; |
| 240 MacroAssembler* const masm_; | 237 MacroAssembler* const masm_; |
| 241 CompilationInfo* const info_; | 238 CompilationInfo* const info_; |
| 242 | 239 |
| 243 int current_block_; | 240 int current_block_; |
| 244 int current_instruction_; | 241 int current_instruction_; |
| 245 const ZoneList<LInstruction*>* instructions_; | 242 const ZoneList<LInstruction*>* instructions_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 private: | 284 private: |
| 288 LCodeGen* codegen_; | 285 LCodeGen* codegen_; |
| 289 Label entry_; | 286 Label entry_; |
| 290 Label exit_; | 287 Label exit_; |
| 291 Label* external_exit_; | 288 Label* external_exit_; |
| 292 }; | 289 }; |
| 293 | 290 |
| 294 } } // namespace v8::internal | 291 } } // namespace v8::internal |
| 295 | 292 |
| 296 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 293 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |