| 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/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 } | 940 } |
| 941 return kNoWriteBarrier; | 941 return kNoWriteBarrier; |
| 942 } | 942 } |
| 943 | 943 |
| 944 | 944 |
| 945 void SimplifiedLowering::DoLoadField(Node* node) { | 945 void SimplifiedLowering::DoLoadField(Node* node) { |
| 946 const FieldAccess& access = FieldAccessOf(node->op()); | 946 const FieldAccess& access = FieldAccessOf(node->op()); |
| 947 node->set_op(machine()->Load(access.machine_type)); | 947 node->set_op(machine()->Load(access.machine_type)); |
| 948 Node* offset = jsgraph()->Int32Constant(access.offset - access.tag()); | 948 Node* offset = jsgraph()->Int32Constant(access.offset - access.tag()); |
| 949 node->InsertInput(zone(), 1, offset); | 949 node->InsertInput(zone(), 1, offset); |
| 950 node->AppendInput(zone(), graph()->start()); | |
| 951 } | 950 } |
| 952 | 951 |
| 953 | 952 |
| 954 void SimplifiedLowering::DoStoreField(Node* node) { | 953 void SimplifiedLowering::DoStoreField(Node* node) { |
| 955 const FieldAccess& access = FieldAccessOf(node->op()); | 954 const FieldAccess& access = FieldAccessOf(node->op()); |
| 956 WriteBarrierKind kind = ComputeWriteBarrierKind( | 955 WriteBarrierKind kind = ComputeWriteBarrierKind( |
| 957 access.base_is_tagged, access.machine_type, access.type); | 956 access.base_is_tagged, access.machine_type, access.type); |
| 958 node->set_op( | 957 node->set_op( |
| 959 machine()->Store(StoreRepresentation(access.machine_type, kind))); | 958 machine()->Store(StoreRepresentation(access.machine_type, kind))); |
| 960 Node* offset = jsgraph()->Int32Constant(access.offset - access.tag()); | 959 Node* offset = jsgraph()->Int32Constant(access.offset - access.tag()); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { | 1133 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { |
| 1135 node->set_op(machine()->IntLessThanOrEqual()); | 1134 node->set_op(machine()->IntLessThanOrEqual()); |
| 1136 node->ReplaceInput(0, StringComparison(node, true)); | 1135 node->ReplaceInput(0, StringComparison(node, true)); |
| 1137 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); | 1136 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); |
| 1138 } | 1137 } |
| 1139 | 1138 |
| 1140 | 1139 |
| 1141 } // namespace compiler | 1140 } // namespace compiler |
| 1142 } // namespace internal | 1141 } // namespace internal |
| 1143 } // namespace v8 | 1142 } // namespace v8 |
| OLD | NEW |