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 3563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3574 initial_function_state_(this, info, NORMAL_RETURN, 0), | 3574 initial_function_state_(this, info, NORMAL_RETURN, 0), |
3575 ast_context_(NULL), | 3575 ast_context_(NULL), |
3576 break_scope_(NULL), | 3576 break_scope_(NULL), |
3577 inlined_count_(0), | 3577 inlined_count_(0), |
3578 globals_(10, info->zone()), | 3578 globals_(10, info->zone()), |
3579 osr_(new(info->zone()) HOsrBuilder(this)) { | 3579 osr_(new(info->zone()) HOsrBuilder(this)) { |
3580 // This is not initialized in the initializer list because the | 3580 // This is not initialized in the initializer list because the |
3581 // constructor for the initial state relies on function_state_ == NULL | 3581 // constructor for the initial state relies on function_state_ == NULL |
3582 // to know it's the initial state. | 3582 // to know it's the initial state. |
3583 function_state_ = &initial_function_state_; | 3583 function_state_ = &initial_function_state_; |
3584 InitializeAstVisitor(info->isolate(), info->zone()); | 3584 InitializeAstVisitor(info->isolate()); |
3585 if (top_info()->is_tracking_positions()) { | 3585 if (top_info()->is_tracking_positions()) { |
3586 SetSourcePosition(info->shared_info()->start_position()); | 3586 SetSourcePosition(info->shared_info()->start_position()); |
3587 } | 3587 } |
3588 } | 3588 } |
3589 | 3589 |
3590 | 3590 |
3591 HBasicBlock* HOptimizedGraphBuilder::CreateJoin(HBasicBlock* first, | 3591 HBasicBlock* HOptimizedGraphBuilder::CreateJoin(HBasicBlock* first, |
3592 HBasicBlock* second, | 3592 HBasicBlock* second, |
3593 BailoutId join_id) { | 3593 BailoutId join_id) { |
3594 if (first == NULL) { | 3594 if (first == NULL) { |
(...skipping 10081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13676 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13676 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13677 } | 13677 } |
13678 | 13678 |
13679 #ifdef DEBUG | 13679 #ifdef DEBUG |
13680 graph_->Verify(false); // No full verify. | 13680 graph_->Verify(false); // No full verify. |
13681 #endif | 13681 #endif |
13682 } | 13682 } |
13683 | 13683 |
13684 } // namespace internal | 13684 } // namespace internal |
13685 } // namespace v8 | 13685 } // namespace v8 |
OLD | NEW |