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/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 | 10 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 } else { | 274 } else { |
275 BailoutId osr_ast_id = BailoutId::None(); | 275 BailoutId osr_ast_id = BailoutId::None(); |
276 data->SetOsrAstId(Smi::FromInt(osr_ast_id.ToInt())); | 276 data->SetOsrAstId(Smi::FromInt(osr_ast_id.ToInt())); |
277 data->SetOsrPcOffset(Smi::FromInt(-1)); | 277 data->SetOsrPcOffset(Smi::FromInt(-1)); |
278 } | 278 } |
279 | 279 |
280 // Populate deoptimization entries. | 280 // Populate deoptimization entries. |
281 for (int i = 0; i < deopt_count; i++) { | 281 for (int i = 0; i < deopt_count; i++) { |
282 DeoptimizationState* deoptimization_state = deoptimization_states_[i]; | 282 DeoptimizationState* deoptimization_state = deoptimization_states_[i]; |
283 data->SetAstId(i, deoptimization_state->bailout_id()); | 283 data->SetAstId(i, deoptimization_state->bailout_id()); |
284 CHECK_NE(NULL, deoptimization_states_[i]); | 284 CHECK(deoptimization_states_[i]); |
285 data->SetTranslationIndex( | 285 data->SetTranslationIndex( |
286 i, Smi::FromInt(deoptimization_states_[i]->translation_id())); | 286 i, Smi::FromInt(deoptimization_states_[i]->translation_id())); |
287 data->SetArgumentsStackHeight(i, Smi::FromInt(0)); | 287 data->SetArgumentsStackHeight(i, Smi::FromInt(0)); |
288 data->SetPc(i, Smi::FromInt(deoptimization_state->pc_offset())); | 288 data->SetPc(i, Smi::FromInt(deoptimization_state->pc_offset())); |
289 } | 289 } |
290 | 290 |
291 code_object->set_deoptimization_data(*data); | 291 code_object->set_deoptimization_data(*data); |
292 } | 292 } |
293 | 293 |
294 | 294 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 : masm_(gen->masm()), next_(gen->ools_) { | 584 : masm_(gen->masm()), next_(gen->ools_) { |
585 gen->ools_ = this; | 585 gen->ools_ = this; |
586 } | 586 } |
587 | 587 |
588 | 588 |
589 OutOfLineCode::~OutOfLineCode() {} | 589 OutOfLineCode::~OutOfLineCode() {} |
590 | 590 |
591 } // namespace compiler | 591 } // namespace compiler |
592 } // namespace internal | 592 } // namespace internal |
593 } // namespace v8 | 593 } // namespace v8 |
OLD | NEW |