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

Side by Side Diff: src/compiler/x64/code-generator-x64.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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698