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

Side by Side Diff: test/cctest/test-debug.cc

Issue 7575013: Merge r8833 "Minimize malloc heap allocation on process startup" to 3.2. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.2/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-alloc.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 5801 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 5812
5813 debug_message_dispatch_v8_thread.Start(); 5813 debug_message_dispatch_v8_thread.Start();
5814 debug_message_dispatch_debugger_thread.Start(); 5814 debug_message_dispatch_debugger_thread.Start();
5815 5815
5816 debug_message_dispatch_v8_thread.Join(); 5816 debug_message_dispatch_v8_thread.Join();
5817 debug_message_dispatch_debugger_thread.Join(); 5817 debug_message_dispatch_debugger_thread.Join();
5818 } 5818 }
5819 5819
5820 5820
5821 TEST(DebuggerAgent) { 5821 TEST(DebuggerAgent) {
5822 v8::V8::Initialize();
5822 i::Debugger* debugger = i::Isolate::Current()->debugger(); 5823 i::Debugger* debugger = i::Isolate::Current()->debugger();
5823 // Make sure these ports is not used by other tests to allow tests to run in 5824 // Make sure these ports is not used by other tests to allow tests to run in
5824 // parallel. 5825 // parallel.
5825 const int kPort1 = 5858; 5826 const int kPort1 = 5858;
5826 const int kPort2 = 5857; 5827 const int kPort2 = 5857;
5827 const int kPort3 = 5856; 5828 const int kPort3 = 5856;
5828 5829
5829 // Make a string with the port2 number. 5830 // Make a string with the port2 number.
5830 const int kPortBufferLen = 6; 5831 const int kPortBufferLen = 6;
5831 char port2_str[kPortBufferLen]; 5832 char port2_str[kPortBufferLen];
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
7253 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}"); 7254 TestDebugBreakInLoop("for (;;) {", loop_bodies, "}");
7254 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}"); 7255 TestDebugBreakInLoop("for (;a == 1;) {", loop_bodies, "}");
7255 7256
7256 // Get rid of the debug event listener. 7257 // Get rid of the debug event listener.
7257 v8::Debug::SetDebugEventListener(NULL); 7258 v8::Debug::SetDebugEventListener(NULL);
7258 CheckDebuggerUnloaded(); 7259 CheckDebuggerUnloaded();
7259 } 7260 }
7260 7261
7261 7262
7262 #endif // ENABLE_DEBUGGER_SUPPORT 7263 #endif // ENABLE_DEBUGGER_SUPPORT
OLDNEW
« no previous file with comments | « test/cctest/test-alloc.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698