| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 case kArchCallJSFunction: { | 153 case kArchCallJSFunction: { |
| 154 // TODO(jarin) The load of the context should be separated from the call. | 154 // TODO(jarin) The load of the context should be separated from the call. |
| 155 Register func = i.InputRegister(0); | 155 Register func = i.InputRegister(0); |
| 156 __ Ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); | 156 __ Ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); |
| 157 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 157 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
| 158 __ Call(x10); | 158 __ Call(x10); |
| 159 AddSafepointAndDeopt(instr); | 159 AddSafepointAndDeopt(instr); |
| 160 break; | 160 break; |
| 161 } | 161 } |
| 162 case kArchDeoptimize: { | 162 case kArchDeoptimize: { |
| 163 int deoptimization_id = MiscField::decode(instr->opcode()); | 163 int deoptimization_id = BuildTranslation(instr, 0); |
| 164 BuildTranslation(instr, 0, deoptimization_id); | 164 |
| 165 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 165 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 166 isolate(), deoptimization_id, Deoptimizer::LAZY); | 166 isolate(), deoptimization_id, Deoptimizer::LAZY); |
| 167 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 167 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 168 break; | 168 break; |
| 169 } | 169 } |
| 170 case kArchDrop: { | 170 case kArchDrop: { |
| 171 int words = MiscField::decode(instr->opcode()); | 171 int words = MiscField::decode(instr->opcode()); |
| 172 __ Drop(words); | 172 __ Drop(words); |
| 173 break; | 173 break; |
| 174 } | 174 } |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 } | 842 } |
| 843 | 843 |
| 844 | 844 |
| 845 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 845 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
| 846 | 846 |
| 847 #undef __ | 847 #undef __ |
| 848 | 848 |
| 849 } // namespace compiler | 849 } // namespace compiler |
| 850 } // namespace internal | 850 } // namespace internal |
| 851 } // namespace v8 | 851 } // namespace v8 |
| OLD | NEW |