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