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

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

Issue 1375253002: [WIP][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/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 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 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1992 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1992 __ Nop(padding_size); 1993 __ Nop(padding_size);
1993 } 1994 }
1994 } 1995 }
1995 1996
1996 #undef __ 1997 #undef __
1997 1998
1998 } // namespace compiler 1999 } // namespace compiler
1999 } // namespace internal 2000 } // namespace internal
2000 } // namespace v8 2001 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698