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/code-factory.h" | 5 #include "src/code-factory.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 Node* cache_length_false0; | 724 Node* cache_length_false0; |
725 Node* cache_type_false0; | 725 Node* cache_type_false0; |
726 Node* efalse0; | 726 Node* efalse0; |
727 { | 727 { |
728 // FixedArray case. | 728 // FixedArray case. |
729 Node* object_instance_type = efalse0 = graph()->NewNode( | 729 Node* object_instance_type = efalse0 = graph()->NewNode( |
730 machine()->Load(kMachUint8), object_map, | 730 machine()->Load(kMachUint8), object_map, |
731 jsgraph()->IntPtrConstant(Map::kInstanceTypeOffset - kHeapObjectTag), | 731 jsgraph()->IntPtrConstant(Map::kInstanceTypeOffset - kHeapObjectTag), |
732 effect, if_false0); | 732 effect, if_false0); |
733 | 733 |
734 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 734 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
735 Node* check1 = graph()->NewNode( | 735 Node* check1 = graph()->NewNode( |
736 machine()->Uint32LessThanOrEqual(), object_instance_type, | 736 machine()->Uint32LessThanOrEqual(), object_instance_type, |
737 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE)); | 737 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE)); |
738 Node* branch1 = graph()->NewNode(common()->Branch(BranchHint::kFalse), | 738 Node* branch1 = graph()->NewNode(common()->Branch(BranchHint::kFalse), |
739 check1, if_false0); | 739 check1, if_false0); |
740 | 740 |
741 Node* if_true1 = graph()->NewNode(common()->IfTrue(), branch1); | 741 Node* if_true1 = graph()->NewNode(common()->IfTrue(), branch1); |
742 Node* cache_type_true1 = jsgraph()->ZeroConstant(); // Zero indicates proxy | 742 Node* cache_type_true1 = jsgraph()->ZeroConstant(); // Zero indicates proxy |
743 | 743 |
744 Node* if_false1 = graph()->NewNode(common()->IfFalse(), branch1); | 744 Node* if_false1 = graph()->NewNode(common()->IfFalse(), branch1); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 } | 890 } |
891 | 891 |
892 | 892 |
893 MachineOperatorBuilder* JSGenericLowering::machine() const { | 893 MachineOperatorBuilder* JSGenericLowering::machine() const { |
894 return jsgraph()->machine(); | 894 return jsgraph()->machine(); |
895 } | 895 } |
896 | 896 |
897 } // namespace compiler | 897 } // namespace compiler |
898 } // namespace internal | 898 } // namespace internal |
899 } // namespace v8 | 899 } // namespace v8 |
OLD | NEW |