| OLD | NEW |
| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 case kArchJmp: | 460 case kArchJmp: |
| 461 AssembleArchJump(i.InputRpo(0)); | 461 AssembleArchJump(i.InputRpo(0)); |
| 462 break; | 462 break; |
| 463 case kArchLookupSwitch: | 463 case kArchLookupSwitch: |
| 464 AssembleArchLookupSwitch(instr); | 464 AssembleArchLookupSwitch(instr); |
| 465 break; | 465 break; |
| 466 case kArchTableSwitch: | 466 case kArchTableSwitch: |
| 467 AssembleArchTableSwitch(instr); | 467 AssembleArchTableSwitch(instr); |
| 468 break; | 468 break; |
| 469 case kArchNop: | 469 case kArchNop: |
| 470 case kArchThrowTerminator: |
| 470 // don't emit code for nops. | 471 // don't emit code for nops. |
| 471 break; | 472 break; |
| 472 case kArchDeoptimize: { | 473 case kArchDeoptimize: { |
| 473 int deopt_state_id = | 474 int deopt_state_id = |
| 474 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 475 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 475 int double_register_param_count = 0; | 476 int double_register_param_count = 0; |
| 476 int x87_layout = 0; | 477 int x87_layout = 0; |
| 477 for (size_t i = 0; i < instr->InputCount(); i++) { | 478 for (size_t i = 0; i < instr->InputCount(); i++) { |
| 478 if (instr->InputAt(i)->IsDoubleRegister()) { | 479 if (instr->InputAt(i)->IsDoubleRegister()) { |
| 479 double_register_param_count++; | 480 double_register_param_count++; |
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1969 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1970 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1970 __ Nop(padding_size); | 1971 __ Nop(padding_size); |
| 1971 } | 1972 } |
| 1972 } | 1973 } |
| 1973 | 1974 |
| 1974 #undef __ | 1975 #undef __ |
| 1975 | 1976 |
| 1976 } // namespace compiler | 1977 } // namespace compiler |
| 1977 } // namespace internal | 1978 } // namespace internal |
| 1978 } // namespace v8 | 1979 } // namespace v8 |
| OLD | NEW |