Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 1412443003: [turbofan] Introduce lazy bailout, masked as a call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 FieldMemOperand(func, JSFunction::kContextOffset)); 647 FieldMemOperand(func, JSFunction::kContextOffset));
648 __ cmp(cp, kScratchReg); 648 __ cmp(cp, kScratchReg);
649 __ Assert(eq, kWrongFunctionContext); 649 __ Assert(eq, kWrongFunctionContext);
650 } 650 }
651 AssembleDeconstructActivationRecord(); 651 AssembleDeconstructActivationRecord();
652 __ LoadP(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 652 __ LoadP(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
653 __ Jump(ip); 653 __ Jump(ip);
654 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 654 DCHECK_EQ(LeaveRC, i.OutputRCBit());
655 break; 655 break;
656 } 656 }
657 case kArchLazyBailout: {
658 EnsureSpaceForLazyDeopt();
659 RecordCallPosition(instr);
660 break;
661 }
657 case kArchPrepareCallCFunction: { 662 case kArchPrepareCallCFunction: {
658 int const num_parameters = MiscField::decode(instr->opcode()); 663 int const num_parameters = MiscField::decode(instr->opcode());
659 __ PrepareCallCFunction(num_parameters, kScratchReg); 664 __ PrepareCallCFunction(num_parameters, kScratchReg);
660 break; 665 break;
661 } 666 }
662 case kArchCallCFunction: { 667 case kArchCallCFunction: {
663 int const num_parameters = MiscField::decode(instr->opcode()); 668 int const num_parameters = MiscField::decode(instr->opcode());
664 if (instr->InputAt(0)->IsImmediate()) { 669 if (instr->InputAt(0)->IsImmediate()) {
665 ExternalReference ref = i.InputExternalReference(0); 670 ExternalReference ref = i.InputExternalReference(0);
666 __ CallCFunction(ref, num_parameters); 671 __ CallCFunction(ref, num_parameters);
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 padding_size -= v8::internal::Assembler::kInstrSize; 1648 padding_size -= v8::internal::Assembler::kInstrSize;
1644 } 1649 }
1645 } 1650 }
1646 } 1651 }
1647 1652
1648 #undef __ 1653 #undef __
1649 1654
1650 } // namespace compiler 1655 } // namespace compiler
1651 } // namespace internal 1656 } // namespace internal
1652 } // namespace v8 1657 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/compiler/ppc/instruction-selector-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698