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

Side by Side Diff: test/mjsunit/debug-materialized.js

Issue 1263333002: [deoptimizer] Do not pass arguments markers to the debugger. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --allow-natives-syntax --expose-debug-as debug
6
7 function dbg(x) {
8 debugger;
9 }
10
11 function foo() {
12 arguments[0];
13 dbg();
14 }
15
16 function bar() {
17 var t = { a : 1 };
18 dbg();
19 return t.a;
20 }
21
22 foo(1);
23 foo(1);
24 bar(1);
25 bar(1);
26 %OptimizeFunctionOnNextCall(foo);
27 %OptimizeFunctionOnNextCall(bar);
28
29 var Debug = debug.Debug;
30 Debug.setListener(function(event, exec_state, event_data, data) {
31 if (event != Debug.DebugEvent.Break) return;
32 for (var i = 0; i < exec_state.frameCount(); i++) {
33 var f = exec_state.frame(i);
34 for (var j = 0; j < f.localCount(); j++) {
35 print("'" + f.localName(j) + "' = " + f.localValue(j).value());
36 }
37 }
38 });
39
40 foo(1);
41 bar(1);
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698