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 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 } | 1796 } |
1797 } | 1797 } |
1798 | 1798 |
1799 | 1799 |
1800 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 1800 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
1801 DCHECK(ToRegister(instr->context()).is(cp)); | 1801 DCHECK(ToRegister(instr->context()).is(cp)); |
1802 DCHECK(ToRegister(instr->left()).is(x1)); | 1802 DCHECK(ToRegister(instr->left()).is(x1)); |
1803 DCHECK(ToRegister(instr->right()).is(x0)); | 1803 DCHECK(ToRegister(instr->right()).is(x0)); |
1804 DCHECK(ToRegister(instr->result()).is(x0)); | 1804 DCHECK(ToRegister(instr->result()).is(x0)); |
1805 | 1805 |
1806 Handle<Code> code = | 1806 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
1807 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
1808 CallCode(code, RelocInfo::CODE_TARGET, instr); | 1807 CallCode(code, RelocInfo::CODE_TARGET, instr); |
1809 } | 1808 } |
1810 | 1809 |
1811 | 1810 |
1812 void LCodeGen::DoBitI(LBitI* instr) { | 1811 void LCodeGen::DoBitI(LBitI* instr) { |
1813 Register result = ToRegister32(instr->result()); | 1812 Register result = ToRegister32(instr->result()); |
1814 Register left = ToRegister32(instr->left()); | 1813 Register left = ToRegister32(instr->left()); |
1815 Operand right = ToShiftedRightOperand32(instr->right(), instr); | 1814 Operand right = ToShiftedRightOperand32(instr->right(), instr); |
1816 | 1815 |
1817 switch (instr->op()) { | 1816 switch (instr->op()) { |
(...skipping 4279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6097 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6096 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6098 __ Push(scope_info); | 6097 __ Push(scope_info); |
6099 __ Push(ToRegister(instr->function())); | 6098 __ Push(ToRegister(instr->function())); |
6100 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6099 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6101 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6100 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6102 } | 6101 } |
6103 | 6102 |
6104 | 6103 |
6105 | 6104 |
6106 } } // namespace v8::internal | 6105 } } // namespace v8::internal |
OLD | NEW |