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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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/ia32/lithium-ia32.cc ('k') | src/crankshaft/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4996 matching lines...) Expand 10 before | Expand all | Expand 10 after
5007 DoubleRegister value_reg = ToDoubleRegister(instr->value()); 5007 DoubleRegister value_reg = ToDoubleRegister(instr->value());
5008 Register result_reg = ToRegister(instr->result()); 5008 Register result_reg = ToRegister(instr->result());
5009 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { 5009 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) {
5010 __ FmoveHigh(result_reg, value_reg); 5010 __ FmoveHigh(result_reg, value_reg);
5011 } else { 5011 } else {
5012 __ FmoveLow(result_reg, value_reg); 5012 __ FmoveLow(result_reg, value_reg);
5013 } 5013 }
5014 } 5014 }
5015 5015
5016 5016
5017 void LCodeGen::DoConstructDouble(LConstructDouble* instr) {
5018 Register hi_reg = ToRegister(instr->hi());
5019 Register lo_reg = ToRegister(instr->lo());
5020 DoubleRegister result_reg = ToDoubleRegister(instr->result());
5021 __ Move(result_reg, lo_reg, hi_reg);
5022 }
5023
5024
5025 void LCodeGen::DoAllocate(LAllocate* instr) { 5017 void LCodeGen::DoAllocate(LAllocate* instr) {
5026 class DeferredAllocate final : public LDeferredCode { 5018 class DeferredAllocate final : public LDeferredCode {
5027 public: 5019 public:
5028 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) 5020 DeferredAllocate(LCodeGen* codegen, LAllocate* instr)
5029 : LDeferredCode(codegen), instr_(instr) { } 5021 : LDeferredCode(codegen), instr_(instr) { }
5030 void Generate() override { codegen()->DoDeferredAllocate(instr_); } 5022 void Generate() override { codegen()->DoDeferredAllocate(instr_); }
5031 LInstruction* instr() override { return instr_; } 5023 LInstruction* instr() override { return instr_; }
5032 5024
5033 private: 5025 private:
5034 LAllocate* instr_; 5026 LAllocate* instr_;
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
5554 __ lw(result, FieldMemOperand(scratch, 5546 __ lw(result, FieldMemOperand(scratch,
5555 FixedArray::kHeaderSize - kPointerSize)); 5547 FixedArray::kHeaderSize - kPointerSize));
5556 __ bind(deferred->exit()); 5548 __ bind(deferred->exit());
5557 __ bind(&done); 5549 __ bind(&done);
5558 } 5550 }
5559 5551
5560 #undef __ 5552 #undef __
5561 5553
5562 } // namespace internal 5554 } // namespace internal
5563 } // namespace v8 5555 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.cc ('k') | src/crankshaft/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698