| 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/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 3676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3687 start_environment_ = | 3687 start_environment_ = |
| 3688 new (zone_) HEnvironment(zone_, descriptor.GetRegisterParameterCount()); | 3688 new (zone_) HEnvironment(zone_, descriptor.GetRegisterParameterCount()); |
| 3689 } else { | 3689 } else { |
| 3690 if (info->is_tracking_positions()) { | 3690 if (info->is_tracking_positions()) { |
| 3691 info->TraceInlinedFunction(info->shared_info(), SourcePosition::Unknown(), | 3691 info->TraceInlinedFunction(info->shared_info(), SourcePosition::Unknown(), |
| 3692 InlinedFunctionInfo::kNoParentId); | 3692 InlinedFunctionInfo::kNoParentId); |
| 3693 } | 3693 } |
| 3694 start_environment_ = | 3694 start_environment_ = |
| 3695 new(zone_) HEnvironment(NULL, info->scope(), info->closure(), zone_); | 3695 new(zone_) HEnvironment(NULL, info->scope(), info->closure(), zone_); |
| 3696 } | 3696 } |
| 3697 start_environment_->set_ast_id(BailoutId::Prologue()); | 3697 start_environment_->set_ast_id(BailoutId::FunctionContext()); |
| 3698 entry_block_ = CreateBasicBlock(); | 3698 entry_block_ = CreateBasicBlock(); |
| 3699 entry_block_->SetInitialEnvironment(start_environment_); | 3699 entry_block_->SetInitialEnvironment(start_environment_); |
| 3700 } | 3700 } |
| 3701 | 3701 |
| 3702 | 3702 |
| 3703 HBasicBlock* HGraph::CreateBasicBlock() { | 3703 HBasicBlock* HGraph::CreateBasicBlock() { |
| 3704 HBasicBlock* result = new(zone()) HBasicBlock(this); | 3704 HBasicBlock* result = new(zone()) HBasicBlock(this); |
| 3705 blocks_.Add(result, zone()); | 3705 blocks_.Add(result, zone()); |
| 3706 return result; | 3706 return result; |
| 3707 } | 3707 } |
| (...skipping 9983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13691 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13691 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13692 } | 13692 } |
| 13693 | 13693 |
| 13694 #ifdef DEBUG | 13694 #ifdef DEBUG |
| 13695 graph_->Verify(false); // No full verify. | 13695 graph_->Verify(false); // No full verify. |
| 13696 #endif | 13696 #endif |
| 13697 } | 13697 } |
| 13698 | 13698 |
| 13699 } // namespace internal | 13699 } // namespace internal |
| 13700 } // namespace v8 | 13700 } // namespace v8 |
| OLD | NEW |