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

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

Issue 1526913003: Reland "[turbofan] Instruction scheduler for Turbofan." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 case kArchJmp: 474 case kArchJmp:
475 AssembleArchJump(i.InputRpo(0)); 475 AssembleArchJump(i.InputRpo(0));
476 break; 476 break;
477 case kArchLookupSwitch: 477 case kArchLookupSwitch:
478 AssembleArchLookupSwitch(instr); 478 AssembleArchLookupSwitch(instr);
479 break; 479 break;
480 case kArchTableSwitch: 480 case kArchTableSwitch:
481 AssembleArchTableSwitch(instr); 481 AssembleArchTableSwitch(instr);
482 break; 482 break;
483 case kArchNop: 483 case kArchNop:
484 case kArchThrowTerminator:
484 // don't emit code for nops. 485 // don't emit code for nops.
485 break; 486 break;
486 case kArchDeoptimize: { 487 case kArchDeoptimize: {
487 int deopt_state_id = 488 int deopt_state_id =
488 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 489 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
489 int double_register_param_count = 0; 490 int double_register_param_count = 0;
490 int x87_layout = 0; 491 int x87_layout = 0;
491 for (size_t i = 0; i < instr->InputCount(); i++) { 492 for (size_t i = 0; i < instr->InputCount(); i++) {
492 if (instr->InputAt(i)->IsDoubleRegister()) { 493 if (instr->InputAt(i)->IsDoubleRegister()) {
493 double_register_param_count++; 494 double_register_param_count++;
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2008 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2008 __ Nop(padding_size); 2009 __ Nop(padding_size);
2009 } 2010 }
2010 } 2011 }
2011 2012
2012 #undef __ 2013 #undef __
2013 2014
2014 } // namespace compiler 2015 } // namespace compiler
2015 } // namespace internal 2016 } // namespace internal
2016 } // namespace v8 2017 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-scheduler-x64.cc ('k') | src/compiler/x87/instruction-scheduler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698