| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 Register func = i.InputRegister(0); | 342 Register func = i.InputRegister(0); |
| 343 if (FLAG_debug_code) { | 343 if (FLAG_debug_code) { |
| 344 // Check the function's context matches the context argument. | 344 // Check the function's context matches the context argument. |
| 345 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); | 345 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); |
| 346 __ Assert(equal, kWrongFunctionContext); | 346 __ Assert(equal, kWrongFunctionContext); |
| 347 } | 347 } |
| 348 AssembleDeconstructActivationRecord(); | 348 AssembleDeconstructActivationRecord(); |
| 349 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 349 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
| 350 break; | 350 break; |
| 351 } | 351 } |
| 352 case kArchLazyBailout: { |
| 353 EnsureSpaceForLazyDeopt(); |
| 354 RecordCallPosition(instr); |
| 355 break; |
| 356 } |
| 352 case kArchPrepareCallCFunction: { | 357 case kArchPrepareCallCFunction: { |
| 353 int const num_parameters = MiscField::decode(instr->opcode()); | 358 int const num_parameters = MiscField::decode(instr->opcode()); |
| 354 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); | 359 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); |
| 355 break; | 360 break; |
| 356 } | 361 } |
| 357 case kArchCallCFunction: { | 362 case kArchCallCFunction: { |
| 358 int const num_parameters = MiscField::decode(instr->opcode()); | 363 int const num_parameters = MiscField::decode(instr->opcode()); |
| 359 if (HasImmediateInput(instr, 0)) { | 364 if (HasImmediateInput(instr, 0)) { |
| 360 ExternalReference ref = i.InputExternalReference(0); | 365 ExternalReference ref = i.InputExternalReference(0); |
| 361 __ CallCFunction(ref, num_parameters); | 366 __ CallCFunction(ref, num_parameters); |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1566 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1562 __ Nop(padding_size); | 1567 __ Nop(padding_size); |
| 1563 } | 1568 } |
| 1564 } | 1569 } |
| 1565 | 1570 |
| 1566 #undef __ | 1571 #undef __ |
| 1567 | 1572 |
| 1568 } // namespace compiler | 1573 } // namespace compiler |
| 1569 } // namespace internal | 1574 } // namespace internal |
| 1570 } // namespace v8 | 1575 } // namespace v8 |
| OLD | NEW |