| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 if (FLAG_code_comments && instr->HasInterestingComment(codegen)) { | 97 if (FLAG_code_comments && instr->HasInterestingComment(codegen)) { |
| 98 Comment(";;; <@%d,#%d> %s", | 98 Comment(";;; <@%d,#%d> %s", |
| 99 current_instruction_, | 99 current_instruction_, |
| 100 instr->hydrogen_value()->id(), | 100 instr->hydrogen_value()->id(), |
| 101 instr->Mnemonic()); | 101 instr->Mnemonic()); |
| 102 } | 102 } |
| 103 | 103 |
| 104 GenerateBodyInstructionPre(instr); | 104 GenerateBodyInstructionPre(instr); |
| 105 | 105 |
| 106 RecordAndUpdatePosition(instr->position()); | 106 HValue* value = instr->hydrogen_value(); |
| 107 if (value->position() != RelocInfo::kNoPosition) { |
| 108 ASSERT(!graph()->info()->IsOptimizing() || |
| 109 !FLAG_opt_code_positions || |
| 110 value->position() != RelocInfo::kNoPosition); |
| 111 RecordAndWritePosition(value->position()); |
| 112 } |
| 107 | 113 |
| 108 instr->CompileToNative(codegen); | 114 instr->CompileToNative(codegen); |
| 109 | 115 |
| 110 GenerateBodyInstructionPost(instr); | 116 GenerateBodyInstructionPost(instr); |
| 111 } | 117 } |
| 112 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); | 118 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); |
| 113 last_lazy_deopt_pc_ = masm()->pc_offset(); | 119 last_lazy_deopt_pc_ = masm()->pc_offset(); |
| 114 return !is_aborted(); | 120 return !is_aborted(); |
| 115 } | 121 } |
| 116 | 122 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 135 | 141 |
| 136 int LCodeGenBase::GetNextEmittedBlock() const { | 142 int LCodeGenBase::GetNextEmittedBlock() const { |
| 137 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { | 143 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { |
| 138 if (!chunk_->GetLabel(i)->HasReplacement()) return i; | 144 if (!chunk_->GetLabel(i)->HasReplacement()) return i; |
| 139 } | 145 } |
| 140 return -1; | 146 return -1; |
| 141 } | 147 } |
| 142 | 148 |
| 143 | 149 |
| 144 } } // namespace v8::internal | 150 } } // namespace v8::internal |
| OLD | NEW |