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

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

Issue 1846083005: 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 case IrOpcode::kPhi: { 870 case IrOpcode::kPhi: {
871 MachineRepresentation rep = PhiRepresentationOf(node->op()); 871 MachineRepresentation rep = PhiRepresentationOf(node->op());
872 MarkAsRepresentation(rep, node); 872 MarkAsRepresentation(rep, node);
873 return VisitPhi(node); 873 return VisitPhi(node);
874 } 874 }
875 case IrOpcode::kProjection: 875 case IrOpcode::kProjection:
876 return VisitProjection(node); 876 return VisitProjection(node);
877 case IrOpcode::kInt32Constant: 877 case IrOpcode::kInt32Constant:
878 case IrOpcode::kInt64Constant: 878 case IrOpcode::kInt64Constant:
879 case IrOpcode::kExternalConstant: 879 case IrOpcode::kExternalConstant:
880 case IrOpcode::kRelocatableInt32Constant:
881 case IrOpcode::kRelocatableInt64Constant:
882 return VisitConstant(node); 880 return VisitConstant(node);
883 case IrOpcode::kFloat32Constant: 881 case IrOpcode::kFloat32Constant:
884 return MarkAsFloat32(node), VisitConstant(node); 882 return MarkAsFloat32(node), VisitConstant(node);
885 case IrOpcode::kFloat64Constant: 883 case IrOpcode::kFloat64Constant:
886 return MarkAsFloat64(node), VisitConstant(node); 884 return MarkAsFloat64(node), VisitConstant(node);
887 case IrOpcode::kHeapConstant: 885 case IrOpcode::kHeapConstant:
888 return MarkAsReference(node), VisitConstant(node); 886 return MarkAsReference(node), VisitConstant(node);
889 case IrOpcode::kNumberConstant: { 887 case IrOpcode::kNumberConstant: {
890 double value = OpParameter<double>(node); 888 double value = OpParameter<double>(node);
891 if (!IsSmiDouble(value)) MarkAsReference(node); 889 if (!IsSmiDouble(value)) MarkAsReference(node);
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 return new (instruction_zone()) FrameStateDescriptor( 1793 return new (instruction_zone()) FrameStateDescriptor(
1796 instruction_zone(), state_info.type(), state_info.bailout_id(), 1794 instruction_zone(), state_info.type(), state_info.bailout_id(),
1797 state_info.state_combine(), parameters, locals, stack, 1795 state_info.state_combine(), parameters, locals, stack,
1798 state_info.shared_info(), outer_state); 1796 state_info.shared_info(), outer_state);
1799 } 1797 }
1800 1798
1801 1799
1802 } // namespace compiler 1800 } // namespace compiler
1803 } // namespace internal 1801 } // namespace internal
1804 } // namespace v8 1802 } // 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