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

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

Issue 1429953005: PPC: [runtime] Drop redundant %CharFromCode runtime entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/ppc/code-stubs-ppc.cc » ('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 4773 matching lines...) Expand 10 before | Expand all | Expand 10 after
4784 Register result = ToRegister(instr->result()); 4784 Register result = ToRegister(instr->result());
4785 4785
4786 // TODO(3095996): Get rid of this. For now, we need to make the 4786 // TODO(3095996): Get rid of this. For now, we need to make the
4787 // result register contain a valid pointer because it is already 4787 // result register contain a valid pointer because it is already
4788 // contained in the register pointer map. 4788 // contained in the register pointer map.
4789 __ li(result, Operand::Zero()); 4789 __ li(result, Operand::Zero());
4790 4790
4791 PushSafepointRegistersScope scope(this); 4791 PushSafepointRegistersScope scope(this);
4792 __ SmiTag(char_code); 4792 __ SmiTag(char_code);
4793 __ push(char_code); 4793 __ push(char_code);
4794 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context()); 4794 CallRuntimeFromDeferred(Runtime::kStringCharFromCode, 1, instr,
4795 instr->context());
4795 __ StoreToSafepointRegisterSlot(r3, result); 4796 __ StoreToSafepointRegisterSlot(r3, result);
4796 } 4797 }
4797 4798
4798 4799
4799 void LCodeGen::DoInteger32ToDouble(LInteger32ToDouble* instr) { 4800 void LCodeGen::DoInteger32ToDouble(LInteger32ToDouble* instr) {
4800 LOperand* input = instr->value(); 4801 LOperand* input = instr->value();
4801 DCHECK(input->IsRegister() || input->IsStackSlot()); 4802 DCHECK(input->IsRegister() || input->IsStackSlot());
4802 LOperand* output = instr->result(); 4803 LOperand* output = instr->result();
4803 DCHECK(output->IsDoubleRegister()); 4804 DCHECK(output->IsDoubleRegister());
4804 if (input->IsStackSlot()) { 4805 if (input->IsStackSlot()) {
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
6065 __ Push(scope_info); 6066 __ Push(scope_info);
6066 __ push(ToRegister(instr->function())); 6067 __ push(ToRegister(instr->function()));
6067 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6068 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6068 RecordSafepoint(Safepoint::kNoLazyDeopt); 6069 RecordSafepoint(Safepoint::kNoLazyDeopt);
6069 } 6070 }
6070 6071
6071 6072
6072 #undef __ 6073 #undef __
6073 } // namespace internal 6074 } // namespace internal
6074 } // namespace v8 6075 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698