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

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

Issue 576973003: Hack representation inference to assume current behavior of float32 loads and stores, which include… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Both are words less than or equal to 32-bits. 46 // Both are words less than or equal to 32-bits.
47 // Since loads of integers from memory implicitly sign or zero extend the 47 // Since loads of integers from memory implicitly sign or zero extend the
48 // value to the full machine word size and stores implicitly truncate, 48 // value to the full machine word size and stores implicitly truncate,
49 // no representation change is necessary. 49 // no representation change is necessary.
50 return node; 50 return node;
51 } 51 }
52 if (use_type & kRepTagged) { 52 if (use_type & kRepTagged) {
53 return GetTaggedRepresentationFor(node, output_type); 53 return GetTaggedRepresentationFor(node, output_type);
54 } else if (use_type & kRepFloat64) { 54 } else if (use_type & kRepFloat64) {
55 return GetFloat64RepresentationFor(node, output_type); 55 return GetFloat64RepresentationFor(node, output_type);
56 } else if (use_type & kRepFloat32) {
57 return TypeError(node, output_type, use_type); // TODO(titzer): handle
56 } else if (use_type & kRepBit) { 58 } else if (use_type & kRepBit) {
57 return GetBitRepresentationFor(node, output_type); 59 return GetBitRepresentationFor(node, output_type);
58 } else if (use_type & rWord) { 60 } else if (use_type & rWord) {
59 return GetWord32RepresentationFor(node, output_type, 61 return GetWord32RepresentationFor(node, output_type,
60 use_type & kTypeUint32); 62 use_type & kTypeUint32);
61 } else if (use_type & kRepWord64) { 63 } else if (use_type & kRepWord64) {
62 return GetWord64RepresentationFor(node, output_type); 64 return GetWord64RepresentationFor(node, output_type);
63 } else { 65 } else {
64 return node; 66 return node;
65 } 67 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 JSGraph* jsgraph() { return jsgraph_; } 339 JSGraph* jsgraph() { return jsgraph_; }
338 Isolate* isolate() { return isolate_; } 340 Isolate* isolate() { return isolate_; }
339 SimplifiedOperatorBuilder* simplified() { return simplified_; } 341 SimplifiedOperatorBuilder* simplified() { return simplified_; }
340 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 342 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
341 }; 343 };
342 } 344 }
343 } 345 }
344 } // namespace v8::internal::compiler 346 } // namespace v8::internal::compiler
345 347
346 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ 348 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simplified-lowering.cc » ('j') | test/cctest/compiler/test-run-properties.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698