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 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/osr.h" | 9 #include "src/compiler/osr.h" |
10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 if (FLAG_debug_code) { | 448 if (FLAG_debug_code) { |
449 // Check the function's context matches the context argument. | 449 // Check the function's context matches the context argument. |
450 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 450 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); |
451 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 451 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); |
452 } | 452 } |
453 AssembleDeconstructActivationRecord(); | 453 AssembleDeconstructActivationRecord(); |
454 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 454 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
455 __ Jump(at); | 455 __ Jump(at); |
456 break; | 456 break; |
457 } | 457 } |
| 458 case kArchLazyBailout: { |
| 459 EnsureSpaceForLazyDeopt(); |
| 460 RecordCallPosition(instr); |
| 461 break; |
| 462 } |
458 case kArchPrepareCallCFunction: { | 463 case kArchPrepareCallCFunction: { |
459 int const num_parameters = MiscField::decode(instr->opcode()); | 464 int const num_parameters = MiscField::decode(instr->opcode()); |
460 __ PrepareCallCFunction(num_parameters, kScratchReg); | 465 __ PrepareCallCFunction(num_parameters, kScratchReg); |
461 break; | 466 break; |
462 } | 467 } |
463 case kArchCallCFunction: { | 468 case kArchCallCFunction: { |
464 int const num_parameters = MiscField::decode(instr->opcode()); | 469 int const num_parameters = MiscField::decode(instr->opcode()); |
465 if (instr->InputAt(0)->IsImmediate()) { | 470 if (instr->InputAt(0)->IsImmediate()) { |
466 ExternalReference ref = i.InputExternalReference(0); | 471 ExternalReference ref = i.InputExternalReference(0); |
467 __ CallCFunction(ref, num_parameters); | 472 __ CallCFunction(ref, num_parameters); |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 padding_size -= v8::internal::Assembler::kInstrSize; | 1515 padding_size -= v8::internal::Assembler::kInstrSize; |
1511 } | 1516 } |
1512 } | 1517 } |
1513 } | 1518 } |
1514 | 1519 |
1515 #undef __ | 1520 #undef __ |
1516 | 1521 |
1517 } // namespace compiler | 1522 } // namespace compiler |
1518 } // namespace internal | 1523 } // namespace internal |
1519 } // namespace v8 | 1524 } // namespace v8 |
OLD | NEW |