| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
| 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
| (...skipping 5183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5194 __ ClampDoubleToUint8(result_reg, double_scratch0(), temp_reg); | 5194 __ ClampDoubleToUint8(result_reg, double_scratch0(), temp_reg); |
| 5195 __ jmp(&done); | 5195 __ jmp(&done); |
| 5196 | 5196 |
| 5197 __ bind(&is_smi); | 5197 __ bind(&is_smi); |
| 5198 __ ClampUint8(result_reg, scratch); | 5198 __ ClampUint8(result_reg, scratch); |
| 5199 | 5199 |
| 5200 __ bind(&done); | 5200 __ bind(&done); |
| 5201 } | 5201 } |
| 5202 | 5202 |
| 5203 | 5203 |
| 5204 void LCodeGen::DoDoubleBits(LDoubleBits* instr) { | |
| 5205 DoubleRegister value_reg = ToDoubleRegister(instr->value()); | |
| 5206 Register result_reg = ToRegister(instr->result()); | |
| 5207 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { | |
| 5208 __ FmoveHigh(result_reg, value_reg); | |
| 5209 } else { | |
| 5210 __ FmoveLow(result_reg, value_reg); | |
| 5211 } | |
| 5212 } | |
| 5213 | |
| 5214 | |
| 5215 void LCodeGen::DoAllocate(LAllocate* instr) { | 5204 void LCodeGen::DoAllocate(LAllocate* instr) { |
| 5216 class DeferredAllocate final : public LDeferredCode { | 5205 class DeferredAllocate final : public LDeferredCode { |
| 5217 public: | 5206 public: |
| 5218 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) | 5207 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) |
| 5219 : LDeferredCode(codegen), instr_(instr) { } | 5208 : LDeferredCode(codegen), instr_(instr) { } |
| 5220 void Generate() override { codegen()->DoDeferredAllocate(instr_); } | 5209 void Generate() override { codegen()->DoDeferredAllocate(instr_); } |
| 5221 LInstruction* instr() override { return instr_; } | 5210 LInstruction* instr() override { return instr_; } |
| 5222 | 5211 |
| 5223 private: | 5212 private: |
| 5224 LAllocate* instr_; | 5213 LAllocate* instr_; |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5745 __ ld(result, FieldMemOperand(scratch, | 5734 __ ld(result, FieldMemOperand(scratch, |
| 5746 FixedArray::kHeaderSize - kPointerSize)); | 5735 FixedArray::kHeaderSize - kPointerSize)); |
| 5747 __ bind(deferred->exit()); | 5736 __ bind(deferred->exit()); |
| 5748 __ bind(&done); | 5737 __ bind(&done); |
| 5749 } | 5738 } |
| 5750 | 5739 |
| 5751 #undef __ | 5740 #undef __ |
| 5752 | 5741 |
| 5753 } // namespace internal | 5742 } // namespace internal |
| 5754 } // namespace v8 | 5743 } // namespace v8 |
| OLD | NEW |