summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-09 08:09:42 -0700
committerisaacs <i@izs.me>2012-06-09 08:09:42 -0700
commit940a6863ead6622e5439e07be631359c31e63b68 (patch)
treec5aa25c048b8f0fd622d4c42fa134ca645fcbcd7 /deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
parent569acea0eefed2c7da7453b7dcef6ff47491ca1c (diff)
downloadnode-940a6863ead6622e5439e07be631359c31e63b68.tar.gz
Roll V8 back to 3.9.24.31
Diffstat (limited to 'deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js')
-rw-r--r--deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js b/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
index 9c56a12be..c88a683a8 100644
--- a/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
+++ b/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
@@ -138,9 +138,20 @@ function listener(event, exec_state, event_data, data) {
assertFalse(frame.isConstructCall());
}
- if (i > 4) {
- assertFalse(frame.isOptimizedFrame());
- assertFalse(frame.isInlinedFrame());
+ // When function f is optimized (1 means YES, see runtime.cc) we
+ // expect an optimized frame for f with g1, g2 and g3 inlined.
+ if (%GetOptimizationStatus(f) == 1) {
+ if (i == 1 || i == 2 || i == 3) {
+ assertTrue(frame.isOptimizedFrame());
+ assertTrue(frame.isInlinedFrame());
+ assertEquals(4 - i, frame.inlinedFrameIndex());
+ } else if (i == 4) {
+ assertTrue(frame.isOptimizedFrame());
+ assertFalse(frame.isInlinedFrame());
+ } else {
+ assertFalse(frame.isOptimizedFrame());
+ assertFalse(frame.isInlinedFrame());
+ }
}
}