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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 break; | 228 break; |
229 case kArchCallJSFunction: { | 229 case kArchCallJSFunction: { |
230 // TODO(jarin) The load of the context should be separated from the call. | 230 // TODO(jarin) The load of the context should be separated from the call. |
231 Register func = i.InputRegister(0); | 231 Register func = i.InputRegister(0); |
232 __ movp(rsi, FieldOperand(func, JSFunction::kContextOffset)); | 232 __ movp(rsi, FieldOperand(func, JSFunction::kContextOffset)); |
233 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 233 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
234 AddSafepointAndDeopt(instr); | 234 AddSafepointAndDeopt(instr); |
235 break; | 235 break; |
236 } | 236 } |
237 case kArchDeoptimize: { | 237 case kArchDeoptimize: { |
238 int deoptimization_id = MiscField::decode(instr->opcode()); | 238 int deoptimization_id = BuildTranslation(instr, 0); |
239 BuildTranslation(instr, 0, deoptimization_id); | 239 |
240 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 240 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
241 isolate(), deoptimization_id, Deoptimizer::LAZY); | 241 isolate(), deoptimization_id, Deoptimizer::LAZY); |
242 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 242 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
243 break; | 243 break; |
244 } | 244 } |
245 case kArchDrop: { | 245 case kArchDrop: { |
246 int words = MiscField::decode(instr->opcode()); | 246 int words = MiscField::decode(instr->opcode()); |
247 __ addq(rsp, Immediate(kPointerSize * words)); | 247 __ addq(rsp, Immediate(kPointerSize * words)); |
248 break; | 248 break; |
249 } | 249 } |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 } | 997 } |
998 | 998 |
999 | 999 |
1000 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 1000 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
1001 | 1001 |
1002 #undef __ | 1002 #undef __ |
1003 | 1003 |
1004 } // namespace internal | 1004 } // namespace internal |
1005 } // namespace compiler | 1005 } // namespace compiler |
1006 } // namespace v8 | 1006 } // namespace v8 |
OLD | NEW |