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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698