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

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

Issue 2080303002: PPC/s390: [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/compiler/s390/code-generator-s390.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 5290 matching lines...) Expand 10 before | Expand all | Expand 10 after
5301 Register result_reg = ToRegister(instr->result()); 5301 Register result_reg = ToRegister(instr->result());
5302 5302
5303 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { 5303 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) {
5304 __ MovDoubleHighToInt(result_reg, value_reg); 5304 __ MovDoubleHighToInt(result_reg, value_reg);
5305 } else { 5305 } else {
5306 __ MovDoubleLowToInt(result_reg, value_reg); 5306 __ MovDoubleLowToInt(result_reg, value_reg);
5307 } 5307 }
5308 } 5308 }
5309 5309
5310 5310
5311 void LCodeGen::DoConstructDouble(LConstructDouble* instr) {
5312 Register hi_reg = ToRegister(instr->hi());
5313 Register lo_reg = ToRegister(instr->lo());
5314 DoubleRegister result_reg = ToDoubleRegister(instr->result());
5315 #if V8_TARGET_ARCH_PPC64
5316 __ MovInt64ComponentsToDouble(result_reg, hi_reg, lo_reg, r0);
5317 #else
5318 __ MovInt64ToDouble(result_reg, hi_reg, lo_reg);
5319 #endif
5320 }
5321
5322
5323 void LCodeGen::DoAllocate(LAllocate* instr) { 5311 void LCodeGen::DoAllocate(LAllocate* instr) {
5324 class DeferredAllocate final : public LDeferredCode { 5312 class DeferredAllocate final : public LDeferredCode {
5325 public: 5313 public:
5326 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) 5314 DeferredAllocate(LCodeGen* codegen, LAllocate* instr)
5327 : LDeferredCode(codegen), instr_(instr) { } 5315 : LDeferredCode(codegen), instr_(instr) { }
5328 void Generate() override { codegen()->DoDeferredAllocate(instr_); } 5316 void Generate() override { codegen()->DoDeferredAllocate(instr_); }
5329 LInstruction* instr() override { return instr_; } 5317 LInstruction* instr() override { return instr_; }
5330 5318
5331 private: 5319 private:
5332 LAllocate* instr_; 5320 LAllocate* instr_;
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
5815 __ LoadP(result, 5803 __ LoadP(result,
5816 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5804 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5817 __ bind(deferred->exit()); 5805 __ bind(deferred->exit());
5818 __ bind(&done); 5806 __ bind(&done);
5819 } 5807 }
5820 5808
5821 #undef __ 5809 #undef __
5822 5810
5823 } // namespace internal 5811 } // namespace internal
5824 } // namespace v8 5812 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/s390/code-generator-s390.cc ('k') | src/crankshaft/ppc/lithium-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698