| 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/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 Register func = i.InputRegister(0); | 589 Register func = i.InputRegister(0); |
| 590 if (FLAG_debug_code) { | 590 if (FLAG_debug_code) { |
| 591 // Check the function's context matches the context argument. | 591 // Check the function's context matches the context argument. |
| 592 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); | 592 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); |
| 593 __ Assert(equal, kWrongFunctionContext); | 593 __ Assert(equal, kWrongFunctionContext); |
| 594 } | 594 } |
| 595 AssembleDeconstructActivationRecord(); | 595 AssembleDeconstructActivationRecord(); |
| 596 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 596 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
| 597 break; | 597 break; |
| 598 } | 598 } |
| 599 case kArchLazyBailout: { |
| 600 EnsureSpaceForLazyDeopt(); |
| 601 RecordCallPosition(instr); |
| 602 break; |
| 603 } |
| 599 case kArchPrepareCallCFunction: { | 604 case kArchPrepareCallCFunction: { |
| 600 int const num_parameters = MiscField::decode(instr->opcode()); | 605 int const num_parameters = MiscField::decode(instr->opcode()); |
| 601 __ PrepareCallCFunction(num_parameters); | 606 __ PrepareCallCFunction(num_parameters); |
| 602 break; | 607 break; |
| 603 } | 608 } |
| 604 case kArchCallCFunction: { | 609 case kArchCallCFunction: { |
| 605 int const num_parameters = MiscField::decode(instr->opcode()); | 610 int const num_parameters = MiscField::decode(instr->opcode()); |
| 606 if (HasImmediateInput(instr, 0)) { | 611 if (HasImmediateInput(instr, 0)) { |
| 607 ExternalReference ref = i.InputExternalReference(0); | 612 ExternalReference ref = i.InputExternalReference(0); |
| 608 __ CallCFunction(ref, num_parameters); | 613 __ CallCFunction(ref, num_parameters); |
| (...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1831 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1827 __ Nop(padding_size); | 1832 __ Nop(padding_size); |
| 1828 } | 1833 } |
| 1829 } | 1834 } |
| 1830 | 1835 |
| 1831 #undef __ | 1836 #undef __ |
| 1832 | 1837 |
| 1833 } // namespace compiler | 1838 } // namespace compiler |
| 1834 } // namespace internal | 1839 } // namespace internal |
| 1835 } // namespace v8 | 1840 } // namespace v8 |
| OLD | NEW |