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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/mips64/lithium-mips64.cc ('k') | src/crankshaft/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 5078 matching lines...) Expand 10 before | Expand all | Expand 10 after
5089 Register result_reg = ToRegister(instr->result()); 5089 Register result_reg = ToRegister(instr->result());
5090 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { 5090 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) {
5091 __ Movq(result_reg, value_reg); 5091 __ Movq(result_reg, value_reg);
5092 __ shrq(result_reg, Immediate(32)); 5092 __ shrq(result_reg, Immediate(32));
5093 } else { 5093 } else {
5094 __ Movd(result_reg, value_reg); 5094 __ Movd(result_reg, value_reg);
5095 } 5095 }
5096 } 5096 }
5097 5097
5098 5098
5099 void LCodeGen::DoConstructDouble(LConstructDouble* instr) {
5100 Register hi_reg = ToRegister(instr->hi());
5101 Register lo_reg = ToRegister(instr->lo());
5102 XMMRegister result_reg = ToDoubleRegister(instr->result());
5103 __ movl(kScratchRegister, hi_reg);
5104 __ shlq(kScratchRegister, Immediate(32));
5105 __ orq(kScratchRegister, lo_reg);
5106 __ Movq(result_reg, kScratchRegister);
5107 }
5108
5109
5110 void LCodeGen::DoAllocate(LAllocate* instr) { 5099 void LCodeGen::DoAllocate(LAllocate* instr) {
5111 class DeferredAllocate final : public LDeferredCode { 5100 class DeferredAllocate final : public LDeferredCode {
5112 public: 5101 public:
5113 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) 5102 DeferredAllocate(LCodeGen* codegen, LAllocate* instr)
5114 : LDeferredCode(codegen), instr_(instr) { } 5103 : LDeferredCode(codegen), instr_(instr) { }
5115 void Generate() override { codegen()->DoDeferredAllocate(instr_); } 5104 void Generate() override { codegen()->DoDeferredAllocate(instr_); }
5116 LInstruction* instr() override { return instr_; } 5105 LInstruction* instr() override { return instr_; }
5117 5106
5118 private: 5107 private:
5119 LAllocate* instr_; 5108 LAllocate* instr_;
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
5601 __ bind(deferred->exit()); 5590 __ bind(deferred->exit());
5602 __ bind(&done); 5591 __ bind(&done);
5603 } 5592 }
5604 5593
5605 #undef __ 5594 #undef __
5606 5595
5607 } // namespace internal 5596 } // namespace internal
5608 } // namespace v8 5597 } // namespace v8
5609 5598
5610 #endif // V8_TARGET_ARCH_X64 5599 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698