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

Side by Side Diff: test/mjsunit/regress/regress-618608.js

Issue 2670823002: [debugger] remove mirror cache and v8::Debug::GetMirror. (Closed)
Patch Set: address comments. Created 3 years, 10 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 | « test/cctest/test-debug.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
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --validate-asm --allow-natives-syntax --crankshaft --no-always-opt 5 // Flags: --validate-asm --allow-natives-syntax --crankshaft --no-always-opt
6 6
7 // /v8/test/mjsunit/regress/regress-crbug-431602.js 7 // /v8/test/mjsunit/regress/regress-crbug-431602.js
8 // /v8/test/mjsunit/lazy-load.js 8 // /v8/test/mjsunit/lazy-load.js
9 // /v8/test/mjsunit/wasm/asm-wasm.js 9 // /v8/test/mjsunit/wasm/asm-wasm.js
10 // /v8/test/mjsunit/debug-toggle-mirror-cache.js 10 // /v8/test/mjsunit/debug-toggle-mirror-cache.js
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 return {__f_73: __f_73}; 1231 return {__f_73: __f_73};
1232 } 1232 }
1233 var __v_32 = Wasm.instantiateModuleFromAsm(__f_110.toString()); 1233 var __v_32 = Wasm.instantiateModuleFromAsm(__f_110.toString());
1234 assertEquals(3, __v_32.__f_73()); 1234 assertEquals(3, __v_32.__f_73());
1235 })(); 1235 })();
1236 (function __f_62() { 1236 (function __f_62() {
1237 function __f_110(stdlib, __v_34, heap) { 1237 function __f_110(stdlib, __v_34, heap) {
1238 "use asm"; 1238 "use asm";
1239 var __v_9 = new stdlib.Float32Array(heap); 1239 var __v_9 = new stdlib.Float32Array(heap);
1240 var __v_13 = stdlib.Math.fround; 1240 var __v_13 = stdlib.Math.fround;
1241 assertEquals("number", debug.LookupMirror(__v_112).type());
1242 function __f_73() { 1241 function __f_73() {
1243 var __v_23 = __v_13(1.0); 1242 var __v_23 = __v_13(1.0);
1244 var __v_25 = __v_13(2.0); 1243 var __v_25 = __v_13(2.0);
1245 __v_9[0] = __v_23 + __v_25; 1244 __v_9[0] = __v_23 + __v_25;
1246 gc(); 1245 gc();
1247 return +__v_9[0]; 1246 return +__v_9[0];
1248 } 1247 }
1249 return {__f_73: __f_73}; 1248 return {__f_73: __f_73};
1250 } 1249 }
1251 var __v_32 = Wasm.instantiateModuleFromAsm(__f_110.toString()); 1250 var __v_32 = Wasm.instantiateModuleFromAsm(__f_110.toString());
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 __f_95: __f_95, 1425 __f_95: __f_95,
1427 __f_50: __f_50, 1426 __f_50: __f_50,
1428 }; 1427 };
1429 } 1428 }
1430 var __v_36 = Wasm.instantiateModuleFromAsm(__f_61.toString()); 1429 var __v_36 = Wasm.instantiateModuleFromAsm(__f_61.toString());
1431 assertEquals(0xffffffff, __v_36.__f_76()); 1430 assertEquals(0xffffffff, __v_36.__f_76());
1432 assertEquals(0x80000000, __v_36.__f_95()); 1431 assertEquals(0x80000000, __v_36.__f_95());
1433 assertEquals(0x87654321, __v_30.__f_50()); 1432 assertEquals(0x87654321, __v_30.__f_50());
1434 })(); 1433 })();
1435 } catch(e) { print("Caught: " + e); } 1434 } catch(e) { print("Caught: " + e); }
1436 try {
1437 var __v_112 = debug.MakeMirror(123).handle();
1438 assertEquals("number", debug.LookupMirror(__v_112).type());
1439 debug.ToggleMirrorCache(false);
1440 var __v_114 = debug.MakeMirror(123).handle();
1441 gc();
1442 assertEquals(undefined, __v_114);
1443 assertThrows(function() { debug.LookupMirror(__v_114) });
1444 debug.ToggleMirrorCache(true);
1445 var __v_113 = debug.MakeMirror(123).handle();
1446 assertEquals("number", debug.LookupMirror(__v_113).type());
1447 } catch(e) { print("Caught: " + e); }
1448 try {
1449 var Debug = debug.Debug;
1450 var __v_25 = null;
1451 var __v_113 = true;
1452 } catch(e) { print("Caught: " + e); }
1453 function __f_112(event, exec_state, event_data, data) {
1454 if (event != Debug.DebugEvent.Break) return;
1455 try {
1456 assertTrue(exec_state.frame(0).sourceLineText().indexOf("BREAK") > 0);
1457 } catch (e) {
1458 __v_0 = e;
1459 }
1460 }
1461 function __f_113() {
1462 return 1;
1463 }
1464 try {
1465 Debug.setListener(__f_112);
1466 nop();
1467 __f_113();
1468 Debug.setListener(null);
1469 assertNull(__v_112);
1470 } catch(e) { print("Caught: " + e); }
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698