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

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

Issue 1417743007: [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
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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 4376 matching lines...) Expand 10 before | Expand all | Expand 10 after
4387 Register result = ToRegister(instr->result()); 4387 Register result = ToRegister(instr->result());
4388 4388
4389 // TODO(3095996): Get rid of this. For now, we need to make the 4389 // TODO(3095996): Get rid of this. For now, we need to make the
4390 // result register contain a valid pointer because it is already 4390 // result register contain a valid pointer because it is already
4391 // contained in the register pointer map. 4391 // contained in the register pointer map.
4392 __ Move(result, Immediate(0)); 4392 __ Move(result, Immediate(0));
4393 4393
4394 PushSafepointRegistersScope scope(this); 4394 PushSafepointRegistersScope scope(this);
4395 __ SmiTag(char_code); 4395 __ SmiTag(char_code);
4396 __ push(char_code); 4396 __ push(char_code);
4397 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context()); 4397 CallRuntimeFromDeferred(Runtime::kStringCharFromCode, 1, instr,
4398 instr->context());
4398 __ StoreToSafepointRegisterSlot(result, eax); 4399 __ StoreToSafepointRegisterSlot(result, eax);
4399 } 4400 }
4400 4401
4401 4402
4402 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4403 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4403 DCHECK(ToRegister(instr->context()).is(esi)); 4404 DCHECK(ToRegister(instr->context()).is(esi));
4404 DCHECK(ToRegister(instr->left()).is(edx)); 4405 DCHECK(ToRegister(instr->left()).is(edx));
4405 DCHECK(ToRegister(instr->right()).is(eax)); 4406 DCHECK(ToRegister(instr->right()).is(eax));
4406 StringAddStub stub(isolate(), 4407 StringAddStub stub(isolate(),
4407 instr->hydrogen()->flags(), 4408 instr->hydrogen()->flags(),
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
5649 RecordSafepoint(Safepoint::kNoLazyDeopt); 5650 RecordSafepoint(Safepoint::kNoLazyDeopt);
5650 } 5651 }
5651 5652
5652 5653
5653 #undef __ 5654 #undef __
5654 5655
5655 } // namespace internal 5656 } // namespace internal
5656 } // namespace v8 5657 } // namespace v8
5657 5658
5658 #endif // V8_TARGET_ARCH_IA32 5659 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698