| Index: test/cctest/compiler/test-changes-lowering.cc
|
| diff --git a/test/cctest/compiler/test-changes-lowering.cc b/test/cctest/compiler/test-changes-lowering.cc
|
| index 148f4b34f546c896e3b9dd63abfd9cd333da81fb..6839b2dc77badedb7908f873744bdc957cc4bb8c 100644
|
| --- a/test/cctest/compiler/test-changes-lowering.cc
|
| +++ b/test/cctest/compiler/test-changes-lowering.cc
|
| @@ -27,7 +27,7 @@ using namespace v8::internal::compiler;
|
| template <typename ReturnType>
|
| class ChangesLoweringTester : public GraphBuilderTester<ReturnType> {
|
| public:
|
| - explicit ChangesLoweringTester(MachineType p0 = kMachineLast)
|
| + explicit ChangesLoweringTester(MachineType p0 = kMachNone)
|
| : GraphBuilderTester<ReturnType>(p0),
|
| typer(this->zone()),
|
| source_positions(this->graph()),
|
| @@ -77,22 +77,22 @@ class ChangesLoweringTester : public GraphBuilderTester<ReturnType> {
|
|
|
| void StoreFloat64(Node* node, double* ptr) {
|
| Node* ptr_node = this->PointerConstant(ptr);
|
| - this->Store(kMachineFloat64, ptr_node, node);
|
| + this->Store(kMachFloat64, ptr_node, node);
|
| }
|
|
|
| Node* LoadInt32(int32_t* ptr) {
|
| Node* ptr_node = this->PointerConstant(ptr);
|
| - return this->Load(kMachineWord32, ptr_node);
|
| + return this->Load(kMachInt32, ptr_node);
|
| }
|
|
|
| Node* LoadUint32(uint32_t* ptr) {
|
| Node* ptr_node = this->PointerConstant(ptr);
|
| - return this->Load(kMachineWord32, ptr_node);
|
| + return this->Load(kMachUint32, ptr_node);
|
| }
|
|
|
| Node* LoadFloat64(double* ptr) {
|
| Node* ptr_node = this->PointerConstant(ptr);
|
| - return this->Load(kMachineFloat64, ptr_node);
|
| + return this->Load(kMachFloat64, ptr_node);
|
| }
|
|
|
| void CheckNumber(double expected, Object* number) {
|
| @@ -150,7 +150,7 @@ class ChangesLoweringTester : public GraphBuilderTester<ReturnType> {
|
|
|
| TEST(RunChangeTaggedToInt32) {
|
| // Build and lower a graph by hand.
|
| - ChangesLoweringTester<int32_t> t(kMachineTagged);
|
| + ChangesLoweringTester<int32_t> t(kMachAnyTagged);
|
| t.BuildAndLower(t.simplified()->ChangeTaggedToInt32());
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| @@ -180,7 +180,7 @@ TEST(RunChangeTaggedToInt32) {
|
|
|
| TEST(RunChangeTaggedToUint32) {
|
| // Build and lower a graph by hand.
|
| - ChangesLoweringTester<uint32_t> t(kMachineTagged);
|
| + ChangesLoweringTester<uint32_t> t(kMachAnyTagged);
|
| t.BuildAndLower(t.simplified()->ChangeTaggedToUint32());
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| @@ -209,11 +209,11 @@ TEST(RunChangeTaggedToUint32) {
|
|
|
|
|
| TEST(RunChangeTaggedToFloat64) {
|
| - ChangesLoweringTester<int32_t> t(kMachineTagged);
|
| + ChangesLoweringTester<int32_t> t(kMachAnyTagged);
|
| double result;
|
|
|
| t.BuildStoreAndLower(t.simplified()->ChangeTaggedToFloat64(),
|
| - t.machine()->Store(kMachineFloat64, kNoWriteBarrier),
|
| + t.machine()->Store(kMachFloat64, kNoWriteBarrier),
|
| &result);
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| @@ -259,7 +259,7 @@ TEST(RunChangeTaggedToFloat64) {
|
|
|
|
|
| TEST(RunChangeBoolToBit) {
|
| - ChangesLoweringTester<int32_t> t(kMachineTagged);
|
| + ChangesLoweringTester<int32_t> t(kMachAnyTagged);
|
| t.BuildAndLower(t.simplified()->ChangeBoolToBit());
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| @@ -277,7 +277,7 @@ TEST(RunChangeBoolToBit) {
|
|
|
|
|
| TEST(RunChangeBitToBool) {
|
| - ChangesLoweringTester<Object*> t(kMachineWord32);
|
| + ChangesLoweringTester<Object*> t(kMachInt32);
|
| t.BuildAndLower(t.simplified()->ChangeBitToBool());
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| @@ -312,7 +312,7 @@ TEST(RunChangeInt32ToTagged) {
|
| ChangesLoweringTester<Object*> t;
|
| int32_t input;
|
| t.BuildLoadAndLower(t.simplified()->ChangeInt32ToTagged(),
|
| - t.machine()->Load(kMachineWord32), &input);
|
| + t.machine()->Load(kMachInt32), &input);
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| FOR_INT32_INPUTS(i) {
|
| @@ -341,7 +341,7 @@ TEST(RunChangeUint32ToTagged) {
|
| ChangesLoweringTester<Object*> t;
|
| uint32_t input;
|
| t.BuildLoadAndLower(t.simplified()->ChangeUint32ToTagged(),
|
| - t.machine()->Load(kMachineWord32), &input);
|
| + t.machine()->Load(kMachUint32), &input);
|
|
|
| if (Pipeline::SupportedTarget()) {
|
| FOR_UINT32_INPUTS(i) {
|
| @@ -375,7 +375,7 @@ TEST(RunChangeFloat64ToTagged) {
|
| ChangesLoweringTester<Object*> t;
|
| double input;
|
| t.BuildLoadAndLower(t.simplified()->ChangeFloat64ToTagged(),
|
| - t.machine()->Load(kMachineFloat64), &input);
|
| + t.machine()->Load(kMachFloat64), &input);
|
|
|
| // TODO(titzer): need inline allocation to change float to tagged.
|
| if (TODO_FLOAT64_TO_TAGGED && Pipeline::SupportedTarget()) {
|
|
|