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

Side by Side Diff: src/compiler/x87/code-generator-x87.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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 Register func = i.InputRegister(0); 372 Register func = i.InputRegister(0);
373 if (FLAG_debug_code) { 373 if (FLAG_debug_code) {
374 // Check the function's context matches the context argument. 374 // Check the function's context matches the context argument.
375 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); 375 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset));
376 __ Assert(equal, kWrongFunctionContext); 376 __ Assert(equal, kWrongFunctionContext);
377 } 377 }
378 AssembleDeconstructActivationRecord(); 378 AssembleDeconstructActivationRecord();
379 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); 379 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset));
380 break; 380 break;
381 } 381 }
382 case kArchLazyBailout: {
383 EnsureSpaceForLazyDeopt();
384 RecordCallPosition(instr);
385 break;
386 }
382 case kArchPrepareCallCFunction: { 387 case kArchPrepareCallCFunction: {
383 int const num_parameters = MiscField::decode(instr->opcode()); 388 int const num_parameters = MiscField::decode(instr->opcode());
384 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); 389 __ PrepareCallCFunction(num_parameters, i.TempRegister(0));
385 break; 390 break;
386 } 391 }
387 case kArchCallCFunction: { 392 case kArchCallCFunction: {
388 int const num_parameters = MiscField::decode(instr->opcode()); 393 int const num_parameters = MiscField::decode(instr->opcode());
389 if (HasImmediateInput(instr, 0)) { 394 if (HasImmediateInput(instr, 0)) {
390 ExternalReference ref = i.InputExternalReference(0); 395 ExternalReference ref = i.InputExternalReference(0);
391 __ CallCFunction(ref, num_parameters); 396 __ CallCFunction(ref, num_parameters);
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1888 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1884 __ Nop(padding_size); 1889 __ Nop(padding_size);
1885 } 1890 }
1886 } 1891 }
1887 1892
1888 #undef __ 1893 #undef __
1889 1894
1890 } // namespace compiler 1895 } // namespace compiler
1891 } // namespace internal 1896 } // namespace internal
1892 } // namespace v8 1897 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698