| 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/instruction.h" | 5 #include "src/compiler/instruction.h" |
| 6 | 6 |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 | 388 |
| 389 void InstructionSequence::AddGapMove(int index, InstructionOperand* from, | 389 void InstructionSequence::AddGapMove(int index, InstructionOperand* from, |
| 390 InstructionOperand* to) { | 390 InstructionOperand* to) { |
| 391 GapAt(index)->GetOrCreateParallelMove(GapInstruction::START, zone())->AddMove( | 391 GapAt(index)->GetOrCreateParallelMove(GapInstruction::START, zone())->AddMove( |
| 392 from, to, zone()); | 392 from, to, zone()); |
| 393 } | 393 } |
| 394 | 394 |
| 395 | 395 |
| 396 int InstructionSequence::AddDeoptimizationEntry( | 396 int InstructionSequence::AddDeoptimizationEntry( |
| 397 const FrameStateDescriptor& descriptor) { | 397 FrameStateDescriptor* descriptor) { |
| 398 int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); | 398 int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); |
| 399 deoptimization_entries_.push_back(descriptor); | 399 deoptimization_entries_.push_back(descriptor); |
| 400 return deoptimization_id; | 400 return deoptimization_id; |
| 401 } | 401 } |
| 402 | 402 |
| 403 FrameStateDescriptor InstructionSequence::GetDeoptimizationEntry( | 403 FrameStateDescriptor* InstructionSequence::GetDeoptimizationEntry( |
| 404 int deoptimization_id) { | 404 int deoptimization_id) { |
| 405 return deoptimization_entries_[deoptimization_id]; | 405 return deoptimization_entries_[deoptimization_id]; |
| 406 } | 406 } |
| 407 | 407 |
| 408 | 408 |
| 409 int InstructionSequence::GetDeoptimizationEntryCount() { | 409 int InstructionSequence::GetDeoptimizationEntryCount() { |
| 410 return static_cast<int>(deoptimization_entries_.size()); | 410 return static_cast<int>(deoptimization_entries_.size()); |
| 411 } | 411 } |
| 412 | 412 |
| 413 | 413 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 os << " B" << (*iter)->id(); | 474 os << " B" << (*iter)->id(); |
| 475 } | 475 } |
| 476 os << "\n"; | 476 os << "\n"; |
| 477 } | 477 } |
| 478 return os; | 478 return os; |
| 479 } | 479 } |
| 480 | 480 |
| 481 } // namespace compiler | 481 } // namespace compiler |
| 482 } // namespace internal | 482 } // namespace internal |
| 483 } // namespace v8 | 483 } // namespace v8 |
| OLD | NEW |