| OLD | NEW |
| 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 | 6 |
| 7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
| 10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 AssembleArchTableSwitch(instr); | 489 AssembleArchTableSwitch(instr); |
| 490 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 490 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 491 break; | 491 break; |
| 492 case kArchNop: | 492 case kArchNop: |
| 493 // don't emit code for nops. | 493 // don't emit code for nops. |
| 494 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 494 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 495 break; | 495 break; |
| 496 case kArchDeoptimize: { | 496 case kArchDeoptimize: { |
| 497 int deopt_state_id = | 497 int deopt_state_id = |
| 498 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); | 498 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
| 499 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); | 499 Deoptimizer::BailoutType bailout_type = |
| 500 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); |
| 501 AssembleDeoptimizerCall(deopt_state_id, bailout_type); |
| 500 break; | 502 break; |
| 501 } | 503 } |
| 502 case kArchRet: | 504 case kArchRet: |
| 503 AssembleReturn(); | 505 AssembleReturn(); |
| 504 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 506 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 505 break; | 507 break; |
| 506 case kArchStackPointer: | 508 case kArchStackPointer: |
| 507 __ mov(i.OutputRegister(), sp); | 509 __ mov(i.OutputRegister(), sp); |
| 508 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 510 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 509 break; | 511 break; |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 padding_size -= v8::internal::Assembler::kInstrSize; | 1377 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1376 } | 1378 } |
| 1377 } | 1379 } |
| 1378 } | 1380 } |
| 1379 | 1381 |
| 1380 #undef __ | 1382 #undef __ |
| 1381 | 1383 |
| 1382 } // namespace compiler | 1384 } // namespace compiler |
| 1383 } // namespace internal | 1385 } // namespace internal |
| 1384 } // namespace v8 | 1386 } // namespace v8 |
| OLD | NEW |