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

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

Issue 2509623002: [turbofan] Sparse representation for state values (Closed)
Patch Set: Add missing operator declarations Created 4 years 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 MachineRepresentation rep = input_type->IsInhabited() 1003 MachineRepresentation rep = input_type->IsInhabited()
1004 ? input_info->representation() 1004 ? input_info->representation()
1005 : MachineRepresentation::kNone; 1005 : MachineRepresentation::kNone;
1006 MachineType machine_type(rep, DeoptValueSemanticOf(input_type)); 1006 MachineType machine_type(rep, DeoptValueSemanticOf(input_type));
1007 DCHECK(machine_type.representation() != 1007 DCHECK(machine_type.representation() !=
1008 MachineRepresentation::kWord32 || 1008 MachineRepresentation::kWord32 ||
1009 machine_type.semantic() == MachineSemantic::kInt32 || 1009 machine_type.semantic() == MachineSemantic::kInt32 ||
1010 machine_type.semantic() == MachineSemantic::kUint32); 1010 machine_type.semantic() == MachineSemantic::kUint32);
1011 (*types)[i] = machine_type; 1011 (*types)[i] = machine_type;
1012 } 1012 }
1013 NodeProperties::ChangeOp(node, 1013 uint32_t mask = OpParameter<uint32_t>(node);
Jarin 2016/12/07 08:56:20 Descriptive name, please. You should not use OpPa
Leszek Swirski 2016/12/08 15:44:30 Done, throughout. Interesting point about the type
1014 jsgraph_->common()->TypedStateValues(types)); 1014 NodeProperties::ChangeOp(
1015 node, jsgraph_->common()->TypedStateValues(types, mask));
1015 } 1016 }
1016 SetOutput(node, MachineRepresentation::kTagged); 1017 SetOutput(node, MachineRepresentation::kTagged);
1017 } 1018 }
1018 1019
1019 void VisitObjectState(Node* node) { 1020 void VisitObjectState(Node* node) {
1020 if (propagate()) { 1021 if (propagate()) {
1021 for (int i = 0; i < node->InputCount(); i++) { 1022 for (int i = 0; i < node->InputCount(); i++) {
1022 Node* input = node->InputAt(i); 1023 Node* input = node->InputAt(i);
1023 Type* input_type = TypeOf(input); 1024 Type* input_type = TypeOf(input);
1024 // TODO(turbofan): Special treatment for ExternalPointer here, 1025 // TODO(turbofan): Special treatment for ExternalPointer here,
(...skipping 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3447 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3447 Operator::kNoProperties); 3448 Operator::kNoProperties);
3448 to_number_operator_.set(common()->Call(desc)); 3449 to_number_operator_.set(common()->Call(desc));
3449 } 3450 }
3450 return to_number_operator_.get(); 3451 return to_number_operator_.get();
3451 } 3452 }
3452 3453
3453 } // namespace compiler 3454 } // namespace compiler
3454 } // namespace internal 3455 } // namespace internal
3455 } // namespace v8 3456 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698