OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |