| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
| 8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
| 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 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 } | 1767 } |
| 1768 | 1768 |
| 1769 | 1769 |
| 1770 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 1770 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
| 1771 DCHECK(ToRegister(instr->context()).is(cp)); | 1771 DCHECK(ToRegister(instr->context()).is(cp)); |
| 1772 DCHECK(ToRegister(instr->left()).is(x1)); | 1772 DCHECK(ToRegister(instr->left()).is(x1)); |
| 1773 DCHECK(ToRegister(instr->right()).is(x0)); | 1773 DCHECK(ToRegister(instr->right()).is(x0)); |
| 1774 DCHECK(ToRegister(instr->result()).is(x0)); | 1774 DCHECK(ToRegister(instr->result()).is(x0)); |
| 1775 | 1775 |
| 1776 Handle<Code> code = CodeFactory::BinaryOpIC( | 1776 Handle<Code> code = CodeFactory::BinaryOpIC( |
| 1777 isolate(), instr->op(), info()->language_mode()).code(); | 1777 isolate(), instr->op(), instr->language_mode()).code(); |
| 1778 CallCode(code, RelocInfo::CODE_TARGET, instr); | 1778 CallCode(code, RelocInfo::CODE_TARGET, instr); |
| 1779 } | 1779 } |
| 1780 | 1780 |
| 1781 | 1781 |
| 1782 void LCodeGen::DoBitI(LBitI* instr) { | 1782 void LCodeGen::DoBitI(LBitI* instr) { |
| 1783 Register result = ToRegister32(instr->result()); | 1783 Register result = ToRegister32(instr->result()); |
| 1784 Register left = ToRegister32(instr->left()); | 1784 Register left = ToRegister32(instr->left()); |
| 1785 Operand right = ToShiftedRightOperand32(instr->right(), instr); | 1785 Operand right = ToShiftedRightOperand32(instr->right(), instr); |
| 1786 | 1786 |
| 1787 switch (instr->op()) { | 1787 switch (instr->op()) { |
| (...skipping 4254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6042 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6042 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 6043 __ Push(scope_info); | 6043 __ Push(scope_info); |
| 6044 __ Push(ToRegister(instr->function())); | 6044 __ Push(ToRegister(instr->function())); |
| 6045 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6045 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6046 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6046 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6047 } | 6047 } |
| 6048 | 6048 |
| 6049 | 6049 |
| 6050 | 6050 |
| 6051 } } // namespace v8::internal | 6051 } } // namespace v8::internal |
| OLD | NEW |