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

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

Issue 1848453002: Version 5.0.71.26 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 } else { 1186 } else {
1187 // If undefined is truncated to a number, but the use can 1187 // If undefined is truncated to a number, but the use can
1188 // observe NaN, we need to output at least the float32 1188 // observe NaN, we need to output at least the float32
1189 // representation. 1189 // representation.
1190 if (access.machine_type().representation() == 1190 if (access.machine_type().representation() ==
1191 MachineRepresentation::kFloat32) { 1191 MachineRepresentation::kFloat32) {
1192 output_info = 1192 output_info =
1193 NodeOutputInfo(access.machine_type().representation(), 1193 NodeOutputInfo(access.machine_type().representation(),
1194 NodeProperties::GetType(node)); 1194 NodeProperties::GetType(node));
1195 } else { 1195 } else {
1196 if (access.machine_type().representation() !=
1197 MachineRepresentation::kFloat64) {
1198 // TODO(bmeurer): See comment on abort_compilation_.
1199 if (lower()) lowering->abort_compilation_ = true;
1200 }
1196 output_info = NodeOutputInfo::Float64(); 1201 output_info = NodeOutputInfo::Float64();
1197 } 1202 }
1198 } 1203 }
1199 } else { 1204 } else {
1205 // TODO(bmeurer): See comment on abort_compilation_.
1206 if (lower()) lowering->abort_compilation_ = true;
1207
1200 // If undefined is not truncated away, we need to have the tagged 1208 // If undefined is not truncated away, we need to have the tagged
1201 // representation. 1209 // representation.
1202 output_info = NodeOutputInfo::AnyTagged(); 1210 output_info = NodeOutputInfo::AnyTagged();
1203 } 1211 }
1204 SetOutput(node, output_info); 1212 SetOutput(node, output_info);
1205 if (lower()) 1213 if (lower())
1206 lowering->DoLoadBuffer(node, output_info.representation(), changer_); 1214 lowering->DoLoadBuffer(node, output_info.representation(), changer_);
1207 break; 1215 break;
1208 } 1216 }
1209 case IrOpcode::kStoreBuffer: { 1217 case IrOpcode::kStoreBuffer: {
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 ReplaceEffectUses(node, comparison); 1916 ReplaceEffectUses(node, comparison);
1909 node->ReplaceInput(0, comparison); 1917 node->ReplaceInput(0, comparison);
1910 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1918 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1911 node->TrimInputCount(2); 1919 node->TrimInputCount(2);
1912 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1920 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1913 } 1921 }
1914 1922
1915 } // namespace compiler 1923 } // namespace compiler
1916 } // namespace internal 1924 } // namespace internal
1917 } // namespace v8 1925 } // 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