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

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

Issue 1432063002: X87: [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/x87/code-stubs-x87.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 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 4837 matching lines...) Expand 10 before | Expand all | Expand 10 after
4848 Register result = ToRegister(instr->result()); 4848 Register result = ToRegister(instr->result());
4849 4849
4850 // TODO(3095996): Get rid of this. For now, we need to make the 4850 // TODO(3095996): Get rid of this. For now, we need to make the
4851 // result register contain a valid pointer because it is already 4851 // result register contain a valid pointer because it is already
4852 // contained in the register pointer map. 4852 // contained in the register pointer map.
4853 __ Move(result, Immediate(0)); 4853 __ Move(result, Immediate(0));
4854 4854
4855 PushSafepointRegistersScope scope(this); 4855 PushSafepointRegistersScope scope(this);
4856 __ SmiTag(char_code); 4856 __ SmiTag(char_code);
4857 __ push(char_code); 4857 __ push(char_code);
4858 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context()); 4858 CallRuntimeFromDeferred(Runtime::kStringCharFromCode, 1, instr,
4859 instr->context());
4859 __ StoreToSafepointRegisterSlot(result, eax); 4860 __ StoreToSafepointRegisterSlot(result, eax);
4860 } 4861 }
4861 4862
4862 4863
4863 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4864 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4864 DCHECK(ToRegister(instr->context()).is(esi)); 4865 DCHECK(ToRegister(instr->context()).is(esi));
4865 DCHECK(ToRegister(instr->left()).is(edx)); 4866 DCHECK(ToRegister(instr->left()).is(edx));
4866 DCHECK(ToRegister(instr->right()).is(eax)); 4867 DCHECK(ToRegister(instr->right()).is(eax));
4867 StringAddStub stub(isolate(), 4868 StringAddStub stub(isolate(),
4868 instr->hydrogen()->flags(), 4869 instr->hydrogen()->flags(),
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
6265 RecordSafepoint(Safepoint::kNoLazyDeopt); 6266 RecordSafepoint(Safepoint::kNoLazyDeopt);
6266 } 6267 }
6267 6268
6268 6269
6269 #undef __ 6270 #undef __
6270 6271
6271 } // namespace internal 6272 } // namespace internal
6272 } // namespace v8 6273 } // namespace v8
6273 6274
6274 #endif // V8_TARGET_ARCH_X87 6275 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698