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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1881913002: Revert of [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/instruction.cc ('k') | src/compiler/instruction-selector-impl.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 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 case IrOpcode::kPhi: { 872 case IrOpcode::kPhi: {
873 MachineRepresentation rep = PhiRepresentationOf(node->op()); 873 MachineRepresentation rep = PhiRepresentationOf(node->op());
874 MarkAsRepresentation(rep, node); 874 MarkAsRepresentation(rep, node);
875 return VisitPhi(node); 875 return VisitPhi(node);
876 } 876 }
877 case IrOpcode::kProjection: 877 case IrOpcode::kProjection:
878 return VisitProjection(node); 878 return VisitProjection(node);
879 case IrOpcode::kInt32Constant: 879 case IrOpcode::kInt32Constant:
880 case IrOpcode::kInt64Constant: 880 case IrOpcode::kInt64Constant:
881 case IrOpcode::kExternalConstant: 881 case IrOpcode::kExternalConstant:
882 case IrOpcode::kRelocatableInt32Constant:
883 case IrOpcode::kRelocatableInt64Constant:
884 return VisitConstant(node); 882 return VisitConstant(node);
885 case IrOpcode::kFloat32Constant: 883 case IrOpcode::kFloat32Constant:
886 return MarkAsFloat32(node), VisitConstant(node); 884 return MarkAsFloat32(node), VisitConstant(node);
887 case IrOpcode::kFloat64Constant: 885 case IrOpcode::kFloat64Constant:
888 return MarkAsFloat64(node), VisitConstant(node); 886 return MarkAsFloat64(node), VisitConstant(node);
889 case IrOpcode::kHeapConstant: 887 case IrOpcode::kHeapConstant:
890 return MarkAsReference(node), VisitConstant(node); 888 return MarkAsReference(node), VisitConstant(node);
891 case IrOpcode::kNumberConstant: { 889 case IrOpcode::kNumberConstant: {
892 double value = OpParameter<double>(node); 890 double value = OpParameter<double>(node);
893 if (!IsSmiDouble(value)) MarkAsReference(node); 891 if (!IsSmiDouble(value)) MarkAsReference(node);
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 return new (instruction_zone()) FrameStateDescriptor( 1797 return new (instruction_zone()) FrameStateDescriptor(
1800 instruction_zone(), state_info.type(), state_info.bailout_id(), 1798 instruction_zone(), state_info.type(), state_info.bailout_id(),
1801 state_info.state_combine(), parameters, locals, stack, 1799 state_info.state_combine(), parameters, locals, stack,
1802 state_info.shared_info(), outer_state); 1800 state_info.shared_info(), outer_state);
1803 } 1801 }
1804 1802
1805 1803
1806 } // namespace compiler 1804 } // namespace compiler
1807 } // namespace internal 1805 } // namespace internal
1808 } // namespace v8 1806 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698