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

Unified Diff: test/mjsunit/regress/regress-147497.js

Issue 11661008: Sync laziness between BuildFunctionInfo and MakeFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« src/compiler.cc ('K') | « src/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-147497.js
diff --git a/test/mjsunit/regress/regress-2296.js b/test/mjsunit/regress/regress-147497.js
similarity index 86%
copy from test/mjsunit/regress/regress-2296.js
copy to test/mjsunit/regress/regress-147497.js
index c00f14f172a0cb099d2ef411fe25bfffbab7e559..0012b08f32e28d33cd54d1d54979065d0e8e2ff7 100644
--- a/test/mjsunit/regress/regress-2296.js
+++ b/test/mjsunit/regress/regress-147497.js
@@ -27,14 +27,19 @@
// Flags: --expose-debug-as debug
-Debug = debug.Debug
+Debug = debug.Debug;
function listener(event, exec_state, event_data, data) {
- event_data.script().setSource(1);
+ if (event == Debug.DebugEvent.Break) {
+ exec_state.prepareStep(Debug.StepAction.StepNext, 10);
+ }
};
Debug.setListener(listener);
-eval('0');
+var statement = "";
+for (var i = 0; i < 1024; i++) statement += "z";
+statement = 'with(0)' + statement + '=function foo(){}';
-Debug.setListener(null);
+debugger;
+eval(statement);
« src/compiler.cc ('K') | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698