Index: test/mjsunit/debug-evaluate-locals-optimized-double.js |
diff --git a/test/mjsunit/debug-evaluate-locals-optimized-double.js b/test/mjsunit/debug-evaluate-locals-optimized-double.js |
index 7178661f25eb171429a0f727e93870bfaa690d9f..fed72f0fc21f9cb40d1fbd14e79903d881b27356 100644 |
--- a/test/mjsunit/debug-evaluate-locals-optimized-double.js |
+++ b/test/mjsunit/debug-evaluate-locals-optimized-double.js |
@@ -25,7 +25,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --expose-debug-as debug --allow-natives-syntax |
+// Flags: --expose-debug-as debug --allow-natives-syntax --inline-construct |
// Get the Debug object exposed from the debug context global object. |
Debug = debug.Debug |
@@ -140,7 +140,13 @@ function listener(event, exec_state, event_data, data) { |
} |
// Check for construct call. |
- assertEquals(testingConstructCall && i == 4, frame.isConstructCall()); |
+ if (i == 4) { |
+ assertEquals(testingConstructCall, frame.isConstructCall()); |
+ } else if (i == 2) { |
+ assertTrue(frame.isConstructCall()); |
+ } else { |
+ assertFalse(frame.isConstructCall()); |
+ } |
// When function f is optimized (1 means YES, see runtime.cc) we |
// expect an optimized frame for f with g1, g2 and g3 inlined. |
@@ -204,7 +210,7 @@ function g1(i, x3, y3, z3) { |
var b3 = input[i].b; |
a3 = a3 + a3 / 100; |
b3 = b3 + b3 / 100; |
- g2(i - 1, a3, b3); |
+ new g2(i - 1, a3, b3); |
}; |
function f(i, x4, y4) { |
@@ -222,7 +228,7 @@ testingConstructCall = true; |
new f(input.length - 1, 11.11, 12.12); |
new f(input.length - 1, 11.11, 12.12, ""); |
-// Make sure that the debug event listener vas invoked. |
+// Make sure that the debug event listener was invoked. |
assertFalse(exception, "exception in listener " + exception) |
assertTrue(listenerComplete); |