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

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

Issue 2216383002: TurboFan: Introduce TaggedSigned and TaggedPointer representations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
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/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 case BinaryOperationHints::kString: 99 case BinaryOperationHints::kString:
100 case BinaryOperationHints::kAny: 100 case BinaryOperationHints::kAny:
101 break; 101 break;
102 } 102 }
103 UNREACHABLE(); 103 UNREACHABLE();
104 return UseInfo::None(); 104 return UseInfo::None();
105 } 105 }
106 106
107 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) { 107 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) {
108 switch (rep) { 108 switch (rep) {
109 case MachineRepresentation::kTaggedSigned:
110 case MachineRepresentation::kTaggedPointer:
109 case MachineRepresentation::kTagged: 111 case MachineRepresentation::kTagged:
110 return UseInfo::AnyTagged(); 112 return UseInfo::AnyTagged();
111 case MachineRepresentation::kFloat64: 113 case MachineRepresentation::kFloat64:
112 return UseInfo::TruncatingFloat64(); 114 return UseInfo::TruncatingFloat64();
113 case MachineRepresentation::kFloat32: 115 case MachineRepresentation::kFloat32:
114 return UseInfo::TruncatingFloat32(); 116 return UseInfo::TruncatingFloat32();
115 case MachineRepresentation::kWord64: 117 case MachineRepresentation::kWord64:
116 return UseInfo::TruncatingWord64(); 118 return UseInfo::TruncatingWord64();
117 case MachineRepresentation::kWord8: 119 case MachineRepresentation::kWord8:
118 case MachineRepresentation::kWord16: 120 case MachineRepresentation::kWord16:
(...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3290 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3292 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3291 Operator::kNoProperties); 3293 Operator::kNoProperties);
3292 to_number_operator_.set(common()->Call(desc)); 3294 to_number_operator_.set(common()->Call(desc));
3293 } 3295 }
3294 return to_number_operator_.get(); 3296 return to_number_operator_.get();
3295 } 3297 }
3296 3298
3297 } // namespace compiler 3299 } // namespace compiler
3298 } // namespace internal 3300 } // namespace internal
3299 } // namespace v8 3301 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698