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

Side by Side Diff: src/compiler/mips/code-generator-mips.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/linkage.cc ('k') | src/compiler/mips/instruction-selector-mips.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 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // Check the function's context matches the context argument. 450 // Check the function's context matches the context argument.
451 __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); 451 __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset));
452 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); 452 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg));
453 } 453 }
454 454
455 AssembleDeconstructActivationRecord(); 455 AssembleDeconstructActivationRecord();
456 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 456 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
457 __ Jump(at); 457 __ Jump(at);
458 break; 458 break;
459 } 459 }
460 case kArchLazyBailout: {
461 EnsureSpaceForLazyDeopt();
462 RecordCallPosition(instr);
463 break;
464 }
460 case kArchPrepareCallCFunction: { 465 case kArchPrepareCallCFunction: {
461 int const num_parameters = MiscField::decode(instr->opcode()); 466 int const num_parameters = MiscField::decode(instr->opcode());
462 __ PrepareCallCFunction(num_parameters, kScratchReg); 467 __ PrepareCallCFunction(num_parameters, kScratchReg);
463 break; 468 break;
464 } 469 }
465 case kArchCallCFunction: { 470 case kArchCallCFunction: {
466 int const num_parameters = MiscField::decode(instr->opcode()); 471 int const num_parameters = MiscField::decode(instr->opcode());
467 if (instr->InputAt(0)->IsImmediate()) { 472 if (instr->InputAt(0)->IsImmediate()) {
468 ExternalReference ref = i.InputExternalReference(0); 473 ExternalReference ref = i.InputExternalReference(0);
469 __ CallCFunction(ref, num_parameters); 474 __ CallCFunction(ref, num_parameters);
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 padding_size -= v8::internal::Assembler::kInstrSize; 1434 padding_size -= v8::internal::Assembler::kInstrSize;
1430 } 1435 }
1431 } 1436 }
1432 } 1437 }
1433 1438
1434 #undef __ 1439 #undef __
1435 1440
1436 } // namespace compiler 1441 } // namespace compiler
1437 } // namespace internal 1442 } // namespace internal
1438 } // namespace v8 1443 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698