MIPS: Fix test-simplified-lowering to pass without tf implemention.
authorpaul.lind@imgtec.com <paul.lind@imgtec.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Aug 2014 18:54:40 +0000 (18:54 +0000)
committerpaul.lind@imgtec.com <paul.lind@imgtec.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Aug 2014 18:54:40 +0000 (18:54 +0000)
GenerateCode() only for SupportedTarget() in 3 places, as in the
other tests here.

BUG=
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/459913002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23055 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/compiler/test-simplified-lowering.cc

index e46350b..af4d2d0 100644 (file)
@@ -407,9 +407,9 @@ class AccessTester : public HandleAndZoneScope {
     t.StoreElement(access, ptr, t.Int32Constant(to_index), load);
     t.Return(t.jsgraph.TrueConstant());
     t.LowerAllNodes();
-    t.GenerateCode();
 
     if (Pipeline::SupportedTarget()) {
+      t.GenerateCode();
       Object* result = t.Call();
       CHECK_EQ(t.isolate()->heap()->true_value(), result);
     }
@@ -429,9 +429,9 @@ class AccessTester : public HandleAndZoneScope {
     t.StoreField(to_access, ptr, load);
     t.Return(t.jsgraph.TrueConstant());
     t.LowerAllNodes();
-    t.GenerateCode();
 
     if (Pipeline::SupportedTarget()) {
+      t.GenerateCode();
       Object* result = t.Call();
       CHECK_EQ(t.isolate()->heap()->true_value(), result);
     }
@@ -468,9 +468,9 @@ class AccessTester : public HandleAndZoneScope {
     index = t.environment()->Pop();
     t.Return(t.jsgraph.TrueConstant());
     t.LowerAllNodes();
-    t.GenerateCode();
 
     if (Pipeline::SupportedTarget()) {
+      t.GenerateCode();
       Object* result = t.Call();
       CHECK_EQ(t.isolate()->heap()->true_value(), result);
     }