Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 1839383002: Version 4.9.385.34 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.9
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/simplified-lowering.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 } else { 1182 } else {
1183 // If undefined is truncated to a number, but the use can 1183 // If undefined is truncated to a number, but the use can
1184 // observe NaN, we need to output at least the float32 1184 // observe NaN, we need to output at least the float32
1185 // representation. 1185 // representation.
1186 if (access.machine_type().representation() == 1186 if (access.machine_type().representation() ==
1187 MachineRepresentation::kFloat32) { 1187 MachineRepresentation::kFloat32) {
1188 output_info = 1188 output_info =
1189 NodeOutputInfo(access.machine_type().representation(), 1189 NodeOutputInfo(access.machine_type().representation(),
1190 NodeProperties::GetType(node)); 1190 NodeProperties::GetType(node));
1191 } else { 1191 } else {
1192 if (access.machine_type().representation() !=
1193 MachineRepresentation::kFloat64) {
1194 // TODO(bmeurer): See comment on abort_compilation_.
1195 if (lower()) lowering->abort_compilation_ = true;
1196 }
1192 output_info = NodeOutputInfo::Float64(); 1197 output_info = NodeOutputInfo::Float64();
1193 } 1198 }
1194 } 1199 }
1195 } else { 1200 } else {
1201 // TODO(bmeurer): See comment on abort_compilation_.
1202 if (lower()) lowering->abort_compilation_ = true;
1203
1196 // If undefined is not truncated away, we need to have the tagged 1204 // If undefined is not truncated away, we need to have the tagged
1197 // representation. 1205 // representation.
1198 output_info = NodeOutputInfo::AnyTagged(); 1206 output_info = NodeOutputInfo::AnyTagged();
1199 } 1207 }
1200 SetOutput(node, output_info); 1208 SetOutput(node, output_info);
1201 if (lower()) 1209 if (lower())
1202 lowering->DoLoadBuffer(node, output_info.representation(), changer_); 1210 lowering->DoLoadBuffer(node, output_info.representation(), changer_);
1203 break; 1211 break;
1204 } 1212 }
1205 case IrOpcode::kStoreBuffer: { 1213 case IrOpcode::kStoreBuffer: {
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 ReplaceEffectUses(node, comparison); 1943 ReplaceEffectUses(node, comparison);
1936 node->ReplaceInput(0, comparison); 1944 node->ReplaceInput(0, comparison);
1937 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1945 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1938 node->TrimInputCount(2); 1946 node->TrimInputCount(2);
1939 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1947 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1940 } 1948 }
1941 1949
1942 } // namespace compiler 1950 } // namespace compiler
1943 } // namespace internal 1951 } // namespace internal
1944 } // namespace v8 1952 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698