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/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
(...skipping 3596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3607 TypeFeedbackId id) { | 3607 TypeFeedbackId id) { |
3608 if (js_type_feedback) { | 3608 if (js_type_feedback) { |
3609 js_type_feedback->Record(node, id); | 3609 js_type_feedback->Record(node, id); |
3610 } | 3610 } |
3611 return node; | 3611 return node; |
3612 } | 3612 } |
3613 | 3613 |
3614 | 3614 |
3615 Node* AstGraphBuilder::BuildKeyedLoad(Node* object, Node* key, | 3615 Node* AstGraphBuilder::BuildKeyedLoad(Node* object, Node* key, |
3616 const VectorSlotPair& feedback) { | 3616 const VectorSlotPair& feedback) { |
3617 const Operator* op = javascript()->LoadProperty(feedback, language_mode()); | 3617 const Operator* op = javascript()->LoadProperty(language_mode(), feedback); |
3618 Node* node = NewNode(op, object, key, BuildLoadFeedbackVector()); | 3618 Node* node = NewNode(op, object, key, BuildLoadFeedbackVector()); |
3619 return Record(js_type_feedback_, node, feedback.slot()); | 3619 return Record(js_type_feedback_, node, feedback.slot()); |
3620 } | 3620 } |
3621 | 3621 |
3622 | 3622 |
3623 Node* AstGraphBuilder::BuildNamedLoad(Node* object, Handle<Name> name, | 3623 Node* AstGraphBuilder::BuildNamedLoad(Node* object, Handle<Name> name, |
3624 const VectorSlotPair& feedback) { | 3624 const VectorSlotPair& feedback) { |
3625 const Operator* op = javascript()->LoadNamed(name, feedback, language_mode()); | 3625 const Operator* op = javascript()->LoadNamed(language_mode(), name, feedback); |
3626 Node* node = NewNode(op, object, BuildLoadFeedbackVector()); | 3626 Node* node = NewNode(op, object, BuildLoadFeedbackVector()); |
3627 return Record(js_type_feedback_, node, feedback.slot()); | 3627 return Record(js_type_feedback_, node, feedback.slot()); |
3628 } | 3628 } |
3629 | 3629 |
3630 | 3630 |
3631 Node* AstGraphBuilder::BuildKeyedStore(Node* object, Node* key, Node* value, | 3631 Node* AstGraphBuilder::BuildKeyedStore(Node* object, Node* key, Node* value, |
3632 const VectorSlotPair& feedback, | 3632 const VectorSlotPair& feedback, |
3633 TypeFeedbackId id) { | 3633 TypeFeedbackId id) { |
3634 const Operator* op = javascript()->StoreProperty(language_mode(), feedback); | 3634 const Operator* op = javascript()->StoreProperty(language_mode(), feedback); |
3635 Node* node = NewNode(op, object, key, value, BuildLoadFeedbackVector()); | 3635 Node* node = NewNode(op, object, key, value, BuildLoadFeedbackVector()); |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4300 // Phi does not exist yet, introduce one. | 4300 // Phi does not exist yet, introduce one. |
4301 value = NewPhi(inputs, value, control); | 4301 value = NewPhi(inputs, value, control); |
4302 value->ReplaceInput(inputs - 1, other); | 4302 value->ReplaceInput(inputs - 1, other); |
4303 } | 4303 } |
4304 return value; | 4304 return value; |
4305 } | 4305 } |
4306 | 4306 |
4307 } // namespace compiler | 4307 } // namespace compiler |
4308 } // namespace internal | 4308 } // namespace internal |
4309 } // namespace v8 | 4309 } // namespace v8 |
OLD | NEW |