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/compilation-dependencies.h" | 6 #include "src/compilation-dependencies.h" |
7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2133 Node* cache_array_false0; | 2133 Node* cache_array_false0; |
2134 Node* cache_length_false0; | 2134 Node* cache_length_false0; |
2135 Node* cache_type_false0; | 2135 Node* cache_type_false0; |
2136 Node* efalse0; | 2136 Node* efalse0; |
2137 { | 2137 { |
2138 // FixedArray case. | 2138 // FixedArray case. |
2139 Node* receiver_instance_type = efalse0 = graph()->NewNode( | 2139 Node* receiver_instance_type = efalse0 = graph()->NewNode( |
2140 simplified()->LoadField(AccessBuilder::ForMapInstanceType()), | 2140 simplified()->LoadField(AccessBuilder::ForMapInstanceType()), |
2141 receiver_map, effect, if_false0); | 2141 receiver_map, effect, if_false0); |
2142 | 2142 |
2143 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 2143 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
2144 cache_type_false0 = graph()->NewNode( | 2144 cache_type_false0 = graph()->NewNode( |
2145 common()->Select(kMachAnyTagged, BranchHint::kFalse), | 2145 common()->Select(kMachAnyTagged, BranchHint::kFalse), |
2146 graph()->NewNode(machine()->Uint32LessThanOrEqual(), | 2146 graph()->NewNode(machine()->Uint32LessThanOrEqual(), |
2147 receiver_instance_type, | 2147 receiver_instance_type, |
2148 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE)), | 2148 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE)), |
2149 jsgraph()->ZeroConstant(), // Zero indicagtes proxy. | 2149 jsgraph()->ZeroConstant(), // Zero indicagtes proxy. |
2150 jsgraph()->OneConstant()); // One means slow check. | 2150 jsgraph()->OneConstant()); // One means slow check. |
2151 | 2151 |
2152 cache_array_false0 = cache_type; | 2152 cache_array_false0 = cache_type; |
2153 cache_length_false0 = efalse0 = graph()->NewNode( | 2153 cache_length_false0 = efalse0 = graph()->NewNode( |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 } | 2568 } |
2569 | 2569 |
2570 | 2570 |
2571 CompilationDependencies* JSTypedLowering::dependencies() const { | 2571 CompilationDependencies* JSTypedLowering::dependencies() const { |
2572 return dependencies_; | 2572 return dependencies_; |
2573 } | 2573 } |
2574 | 2574 |
2575 } // namespace compiler | 2575 } // namespace compiler |
2576 } // namespace internal | 2576 } // namespace internal |
2577 } // namespace v8 | 2577 } // namespace v8 |
OLD | NEW |