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

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

Issue 6639024: Get rid of distinction between below- and above-watermark in page allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« src/spaces.h ('K') | « test/cctest/test-threads.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 23 matching lines...) Expand all
34 34
35 // Count script types. 35 // Count script types.
36 var named_native_count = 0; 36 var named_native_count = 0;
37 var extension_count = 0; 37 var extension_count = 0;
38 var normal_count = 0; 38 var normal_count = 0;
39 var scripts = Debug.scripts(); 39 var scripts = Debug.scripts();
40 for (i = 0; i < scripts.length; i++) { 40 for (i = 0; i < scripts.length; i++) {
41 if (scripts[i].type == Debug.ScriptType.Native) { 41 if (scripts[i].type == Debug.ScriptType.Native) {
42 if (scripts[i].name) { 42 if (scripts[i].name) {
43 named_native_count++; 43 named_native_count++;
44 print(scripts[i].name);
Vyacheslav Egorov (Chromium) 2011/03/15 09:20:09 please remove
Erik Corry 2011/03/17 13:39:17 Done.
44 } 45 }
45 } else if (scripts[i].type == Debug.ScriptType.Extension) { 46 } else if (scripts[i].type == Debug.ScriptType.Extension) {
46 extension_count++; 47 extension_count++;
47 } else if (scripts[i].type == Debug.ScriptType.Normal) { 48 } else if (scripts[i].type == Debug.ScriptType.Normal) {
48 normal_count++; 49 normal_count++;
49 } else { 50 } else {
50 assertUnreachable('Unexpected type ' + scripts[i].type); 51 assertUnreachable('Unexpected type ' + scripts[i].type);
51 } 52 }
52 } 53 }
53 54
(...skipping 29 matching lines...) Expand all
83 } 84 }
84 85
85 // Test a normal script. 86 // Test a normal script.
86 var mjsunit_js_script = Debug.findScript(/mjsunit.js/); 87 var mjsunit_js_script = Debug.findScript(/mjsunit.js/);
87 assertTrue(/mjsunit.js/.test(mjsunit_js_script.name)); 88 assertTrue(/mjsunit.js/.test(mjsunit_js_script.name));
88 assertEquals(Debug.ScriptType.Normal, mjsunit_js_script.type); 89 assertEquals(Debug.ScriptType.Normal, mjsunit_js_script.type);
89 90
90 // Check a nonexistent script. 91 // Check a nonexistent script.
91 var dummy_script = Debug.findScript('dummy.js'); 92 var dummy_script = Debug.findScript('dummy.js');
92 assertTrue(typeof dummy_script == 'undefined'); 93 assertTrue(typeof dummy_script == 'undefined');
OLDNEW
« src/spaces.h ('K') | « test/cctest/test-threads.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698