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

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

Issue 2083453002: [builtins] Introduce proper Float64Tan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 5199 matching lines...) Expand 10 before | Expand all | Expand 10 after
5210 DoubleRegister value_reg = ToDoubleRegister(instr->value()); 5210 DoubleRegister value_reg = ToDoubleRegister(instr->value());
5211 Register result_reg = ToRegister(instr->result()); 5211 Register result_reg = ToRegister(instr->result());
5212 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { 5212 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) {
5213 __ FmoveHigh(result_reg, value_reg); 5213 __ FmoveHigh(result_reg, value_reg);
5214 } else { 5214 } else {
5215 __ FmoveLow(result_reg, value_reg); 5215 __ FmoveLow(result_reg, value_reg);
5216 } 5216 }
5217 } 5217 }
5218 5218
5219 5219
5220 void LCodeGen::DoConstructDouble(LConstructDouble* instr) {
5221 Register hi_reg = ToRegister(instr->hi());
5222 Register lo_reg = ToRegister(instr->lo());
5223 DoubleRegister result_reg = ToDoubleRegister(instr->result());
5224 __ Move(result_reg, lo_reg, hi_reg);
5225 }
5226
5227
5228 void LCodeGen::DoAllocate(LAllocate* instr) { 5220 void LCodeGen::DoAllocate(LAllocate* instr) {
5229 class DeferredAllocate final : public LDeferredCode { 5221 class DeferredAllocate final : public LDeferredCode {
5230 public: 5222 public:
5231 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) 5223 DeferredAllocate(LCodeGen* codegen, LAllocate* instr)
5232 : LDeferredCode(codegen), instr_(instr) { } 5224 : LDeferredCode(codegen), instr_(instr) { }
5233 void Generate() override { codegen()->DoDeferredAllocate(instr_); } 5225 void Generate() override { codegen()->DoDeferredAllocate(instr_); }
5234 LInstruction* instr() override { return instr_; } 5226 LInstruction* instr() override { return instr_; }
5235 5227
5236 private: 5228 private:
5237 LAllocate* instr_; 5229 LAllocate* instr_;
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5758 __ ld(result, FieldMemOperand(scratch, 5750 __ ld(result, FieldMemOperand(scratch,
5759 FixedArray::kHeaderSize - kPointerSize)); 5751 FixedArray::kHeaderSize - kPointerSize));
5760 __ bind(deferred->exit()); 5752 __ bind(deferred->exit());
5761 __ bind(&done); 5753 __ bind(&done);
5762 } 5754 }
5763 5755
5764 #undef __ 5756 #undef __
5765 5757
5766 } // namespace internal 5758 } // namespace internal
5767 } // namespace v8 5759 } // 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