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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.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/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 5012 matching lines...) Expand 10 before | Expand all | Expand 10 after
5023 __ jmp(&done); 5023 __ jmp(&done);
5024 5024
5025 // smi 5025 // smi
5026 __ bind(&is_smi); 5026 __ bind(&is_smi);
5027 __ ClampUint8(result_reg, result_reg); 5027 __ ClampUint8(result_reg, result_reg);
5028 5028
5029 __ bind(&done); 5029 __ bind(&done);
5030 } 5030 }
5031 5031
5032 5032
5033 void LCodeGen::DoDoubleBits(LDoubleBits* instr) {
5034 DwVfpRegister value_reg = ToDoubleRegister(instr->value());
5035 Register result_reg = ToRegister(instr->result());
5036 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) {
5037 __ VmovHigh(result_reg, value_reg);
5038 } else {
5039 __ VmovLow(result_reg, value_reg);
5040 }
5041 }
5042
5043
5044 void LCodeGen::DoAllocate(LAllocate* instr) { 5033 void LCodeGen::DoAllocate(LAllocate* instr) {
5045 class DeferredAllocate final : public LDeferredCode { 5034 class DeferredAllocate final : public LDeferredCode {
5046 public: 5035 public:
5047 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) 5036 DeferredAllocate(LCodeGen* codegen, LAllocate* instr)
5048 : LDeferredCode(codegen), instr_(instr) { } 5037 : LDeferredCode(codegen), instr_(instr) { }
5049 void Generate() override { codegen()->DoDeferredAllocate(instr_); } 5038 void Generate() override { codegen()->DoDeferredAllocate(instr_); }
5050 LInstruction* instr() override { return instr_; } 5039 LInstruction* instr() override { return instr_; }
5051 5040
5052 private: 5041 private:
5053 LAllocate* instr_; 5042 LAllocate* instr_;
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
5543 __ ldr(result, FieldMemOperand(scratch, 5532 __ ldr(result, FieldMemOperand(scratch,
5544 FixedArray::kHeaderSize - kPointerSize)); 5533 FixedArray::kHeaderSize - kPointerSize));
5545 __ bind(deferred->exit()); 5534 __ bind(deferred->exit());
5546 __ bind(&done); 5535 __ bind(&done);
5547 } 5536 }
5548 5537
5549 #undef __ 5538 #undef __
5550 5539
5551 } // namespace internal 5540 } // namespace internal
5552 } // namespace v8 5541 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698