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

Side by Side Diff: src/compiler/representation-change.cc

Issue 2370763002: Revert "[turbofan] Remove the representation dimension from Type." (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/compiler/types.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/representation-change.h" 5 #include "src/compiler/representation-change.h"
6 6
7 #include <sstream> 7 #include <sstream>
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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 951
952 952
953 Node* RepresentationChanger::TypeError(Node* node, 953 Node* RepresentationChanger::TypeError(Node* node,
954 MachineRepresentation output_rep, 954 MachineRepresentation output_rep,
955 Type* output_type, 955 Type* output_type,
956 MachineRepresentation use) { 956 MachineRepresentation use) {
957 type_error_ = true; 957 type_error_ = true;
958 if (!testing_type_errors_) { 958 if (!testing_type_errors_) {
959 std::ostringstream out_str; 959 std::ostringstream out_str;
960 out_str << output_rep << " ("; 960 out_str << output_rep << " (";
961 output_type->PrintTo(out_str); 961 output_type->PrintTo(out_str, Type::SEMANTIC_DIM);
962 out_str << ")"; 962 out_str << ")";
963 963
964 std::ostringstream use_str; 964 std::ostringstream use_str;
965 use_str << use; 965 use_str << use;
966 966
967 V8_Fatal(__FILE__, __LINE__, 967 V8_Fatal(__FILE__, __LINE__,
968 "RepresentationChangerError: node #%d:%s of " 968 "RepresentationChangerError: node #%d:%s of "
969 "%s cannot be changed to %s", 969 "%s cannot be changed to %s",
970 node->id(), node->op()->mnemonic(), out_str.str().c_str(), 970 node->id(), node->op()->mnemonic(), out_str.str().c_str(),
971 use_str.str().c_str()); 971 use_str.str().c_str());
(...skipping 23 matching lines...) Expand all
995 } 995 }
996 996
997 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 997 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
998 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 998 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
999 node); 999 node);
1000 } 1000 }
1001 1001
1002 } // namespace compiler 1002 } // namespace compiler
1003 } // namespace internal 1003 } // namespace internal
1004 } // namespace v8 1004 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698