Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.cc

Issue 2114613002: [intrinsics] Drop the now obsolete %_DoubleHi and %_DoubleLo intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/mips/lithium-mips.cc ('k') | src/crankshaft/mips64/lithium-mips64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.cc ('k') | src/crankshaft/mips64/lithium-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698