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/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 !type_hint_analysis_->GetToBooleanHints(feedback_id, &hints)) { | 3727 !type_hint_analysis_->GetToBooleanHints(feedback_id, &hints)) { |
3728 hints = ToBooleanHint::kAny; | 3728 hints = ToBooleanHint::kAny; |
3729 } | 3729 } |
3730 return NewNode(javascript()->ToBoolean(hints), input); | 3730 return NewNode(javascript()->ToBoolean(hints), input); |
3731 } | 3731 } |
3732 | 3732 |
3733 | 3733 |
3734 Node* AstGraphBuilder::BuildToName(Node* input, BailoutId bailout_id) { | 3734 Node* AstGraphBuilder::BuildToName(Node* input, BailoutId bailout_id) { |
3735 if (Node* node = TryFastToName(input)) return node; | 3735 if (Node* node = TryFastToName(input)) return node; |
3736 Node* name = NewNode(javascript()->ToName(), input); | 3736 Node* name = NewNode(javascript()->ToName(), input); |
3737 PrepareFrameState(name, bailout_id); | 3737 PrepareFrameState(name, bailout_id, OutputFrameStateCombine::Push()); |
3738 return name; | 3738 return name; |
3739 } | 3739 } |
3740 | 3740 |
3741 | 3741 |
3742 Node* AstGraphBuilder::BuildToObject(Node* input, BailoutId bailout_id) { | 3742 Node* AstGraphBuilder::BuildToObject(Node* input, BailoutId bailout_id) { |
3743 Node* object = NewNode(javascript()->ToObject(), input); | 3743 Node* object = NewNode(javascript()->ToObject(), input); |
3744 PrepareFrameState(object, bailout_id, OutputFrameStateCombine::Push()); | 3744 PrepareFrameState(object, bailout_id, OutputFrameStateCombine::Push()); |
3745 return object; | 3745 return object; |
3746 } | 3746 } |
3747 | 3747 |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4386 // Phi does not exist yet, introduce one. | 4386 // Phi does not exist yet, introduce one. |
4387 value = NewPhi(inputs, value, control); | 4387 value = NewPhi(inputs, value, control); |
4388 value->ReplaceInput(inputs - 1, other); | 4388 value->ReplaceInput(inputs - 1, other); |
4389 } | 4389 } |
4390 return value; | 4390 return value; |
4391 } | 4391 } |
4392 | 4392 |
4393 } // namespace compiler | 4393 } // namespace compiler |
4394 } // namespace internal | 4394 } // namespace internal |
4395 } // namespace v8 | 4395 } // namespace v8 |
OLD | NEW |