| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 4996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5007 DoubleRegister value_reg = ToDoubleRegister(instr->value()); | 5007 DoubleRegister value_reg = ToDoubleRegister(instr->value()); |
| 5008 Register result_reg = ToRegister(instr->result()); | 5008 Register result_reg = ToRegister(instr->result()); |
| 5009 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { | 5009 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { |
| 5010 __ FmoveHigh(result_reg, value_reg); | 5010 __ FmoveHigh(result_reg, value_reg); |
| 5011 } else { | 5011 } else { |
| 5012 __ FmoveLow(result_reg, value_reg); | 5012 __ FmoveLow(result_reg, value_reg); |
| 5013 } | 5013 } |
| 5014 } | 5014 } |
| 5015 | 5015 |
| 5016 | 5016 |
| 5017 void LCodeGen::DoConstructDouble(LConstructDouble* instr) { | |
| 5018 Register hi_reg = ToRegister(instr->hi()); | |
| 5019 Register lo_reg = ToRegister(instr->lo()); | |
| 5020 DoubleRegister result_reg = ToDoubleRegister(instr->result()); | |
| 5021 __ Move(result_reg, lo_reg, hi_reg); | |
| 5022 } | |
| 5023 | |
| 5024 | |
| 5025 void LCodeGen::DoAllocate(LAllocate* instr) { | 5017 void LCodeGen::DoAllocate(LAllocate* instr) { |
| 5026 class DeferredAllocate final : public LDeferredCode { | 5018 class DeferredAllocate final : public LDeferredCode { |
| 5027 public: | 5019 public: |
| 5028 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) | 5020 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) |
| 5029 : LDeferredCode(codegen), instr_(instr) { } | 5021 : LDeferredCode(codegen), instr_(instr) { } |
| 5030 void Generate() override { codegen()->DoDeferredAllocate(instr_); } | 5022 void Generate() override { codegen()->DoDeferredAllocate(instr_); } |
| 5031 LInstruction* instr() override { return instr_; } | 5023 LInstruction* instr() override { return instr_; } |
| 5032 | 5024 |
| 5033 private: | 5025 private: |
| 5034 LAllocate* instr_; | 5026 LAllocate* instr_; |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5554 __ lw(result, FieldMemOperand(scratch, | 5546 __ lw(result, FieldMemOperand(scratch, |
| 5555 FixedArray::kHeaderSize - kPointerSize)); | 5547 FixedArray::kHeaderSize - kPointerSize)); |
| 5556 __ bind(deferred->exit()); | 5548 __ bind(deferred->exit()); |
| 5557 __ bind(&done); | 5549 __ bind(&done); |
| 5558 } | 5550 } |
| 5559 | 5551 |
| 5560 #undef __ | 5552 #undef __ |
| 5561 | 5553 |
| 5562 } // namespace internal | 5554 } // namespace internal |
| 5563 } // namespace v8 | 5555 } // namespace v8 |
| OLD | NEW |