| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Deferred code support. | 109 // Deferred code support. |
| 110 void DoDeferredNumberTagD(LNumberTagD* instr); | 110 void DoDeferredNumberTagD(LNumberTagD* instr); |
| 111 void DoDeferredNumberTagU(LNumberTagU* instr); | 111 void DoDeferredNumberTagU(LNumberTagU* instr); |
| 112 void DoDeferredTaggedToI(LTaggedToI* instr); | 112 void DoDeferredTaggedToI(LTaggedToI* instr); |
| 113 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); | 113 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); |
| 114 void DoDeferredStackCheck(LStackCheck* instr); | 114 void DoDeferredStackCheck(LStackCheck* instr); |
| 115 void DoDeferredRandom(LRandom* instr); | 115 void DoDeferredRandom(LRandom* instr); |
| 116 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); | 116 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); |
| 117 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); | 117 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); |
| 118 void DoDeferredAllocateObject(LAllocateObject* instr); | 118 void DoDeferredAllocateObject(LAllocateObject* instr); |
| 119 void DoDeferredAllocate(LAllocate* instr); |
| 119 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, | 120 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, |
| 120 Label* map_check); | 121 Label* map_check); |
| 121 | 122 |
| 122 void DoCheckMapCommon(Register reg, Handle<Map> map, | 123 void DoCheckMapCommon(Register reg, Handle<Map> map, |
| 123 CompareMapMode mode, LInstruction* instr); | 124 CompareMapMode mode, LInstruction* instr); |
| 124 | 125 |
| 125 // Parallel move support. | 126 // Parallel move support. |
| 126 void DoParallelMove(LParallelMove* move); | 127 void DoParallelMove(LParallelMove* move); |
| 127 void DoGap(LGap* instr); | 128 void DoGap(LGap* instr); |
| 128 | 129 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 276 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 276 void RecordSafepoint(Safepoint::DeoptMode mode); | 277 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 277 void RecordSafepointWithRegisters(LPointerMap* pointers, | 278 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 278 int arguments, | 279 int arguments, |
| 279 Safepoint::DeoptMode mode); | 280 Safepoint::DeoptMode mode); |
| 280 void RecordPosition(int position); | 281 void RecordPosition(int position); |
| 281 | 282 |
| 282 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 283 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 283 void EmitGoto(int block); | 284 void EmitGoto(int block); |
| 284 void EmitBranch(int left_block, int right_block, Condition cc); | 285 void EmitBranch(int left_block, int right_block, Condition cc); |
| 285 void EmitNumberUntagD(Register input, | 286 void EmitNumberUntagD( |
| 286 XMMRegister result, | 287 Register input, |
| 287 bool deoptimize_on_undefined, | 288 XMMRegister result, |
| 288 bool deoptimize_on_minus_zero, | 289 bool deoptimize_on_undefined, |
| 289 LEnvironment* env); | 290 bool deoptimize_on_minus_zero, |
| 291 LEnvironment* env, |
| 292 NumberUntagDMode mode = NUMBER_CANDIDATE_IS_ANY_TAGGED); |
| 290 | 293 |
| 291 | 294 |
| 292 void DeoptIfTaggedButNotSmi(LEnvironment* environment, | 295 void DeoptIfTaggedButNotSmi(LEnvironment* environment, |
| 293 HValue* value, | 296 HValue* value, |
| 294 LOperand* operand); | 297 LOperand* operand); |
| 295 | 298 |
| 296 // Emits optimized code for typeof x == "y". Modifies input register. | 299 // Emits optimized code for typeof x == "y". Modifies input register. |
| 297 // Returns the condition on which a final split to | 300 // Returns the condition on which a final split to |
| 298 // true and false label should be made, to optimize fallthrough. | 301 // true and false label should be made, to optimize fallthrough. |
| 299 Condition EmitTypeofIs(Label* true_label, | 302 Condition EmitTypeofIs(Label* true_label, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 LCodeGen* codegen_; | 442 LCodeGen* codegen_; |
| 440 Label entry_; | 443 Label entry_; |
| 441 Label exit_; | 444 Label exit_; |
| 442 Label* external_exit_; | 445 Label* external_exit_; |
| 443 int instruction_index_; | 446 int instruction_index_; |
| 444 }; | 447 }; |
| 445 | 448 |
| 446 } } // namespace v8::internal | 449 } } // namespace v8::internal |
| 447 | 450 |
| 448 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 451 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |