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

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

Issue 2473001: - Continue removing [static] qualifier from methods on StubCache (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 6 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 | « src/stub-cache.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 while (node) { 388 while (node) {
389 debugged_functions->set(count++, *node->debug_info()); 389 debugged_functions->set(count++, *node->debug_info());
390 node = node->next(); 390 node = node->next();
391 } 391 }
392 392
393 return debugged_functions; 393 return debugged_functions;
394 } 394 }
395 395
396 396
397 static Handle<Code> ComputeCallDebugBreak(int argc) { 397 static Handle<Code> ComputeCallDebugBreak(int argc) {
398 CALL_HEAP_FUNCTION(v8::internal::StubCache::ComputeCallDebugBreak(argc), 398 CALL_HEAP_FUNCTION(
399 Code); 399 v8::internal::Isolate::Current()->stub_cache()->ComputeCallDebugBreak(
400 argc),
401 Code);
400 } 402 }
401 403
402 404
403 // Check that the debugger has been fully unloaded. 405 // Check that the debugger has been fully unloaded.
404 void CheckDebuggerUnloaded(bool check_functions) { 406 void CheckDebuggerUnloaded(bool check_functions) {
405 // Check that the debugger context is cleared and that there is no debug 407 // Check that the debugger context is cleared and that there is no debug
406 // information stored for the debugger. 408 // information stored for the debugger.
407 CHECK(Debug::debug_context().is_null()); 409 CHECK(Debug::debug_context().is_null());
408 CHECK_EQ(NULL, Debug::debug_info_list_); 410 CHECK_EQ(NULL, Debug::debug_info_list_);
409 411
(...skipping 5804 matching lines...) Expand 10 before | Expand all | Expand 10 after
6214 expected_context = v8::Context::New(); 6216 expected_context = v8::Context::New();
6215 v8::Context::Scope context_scope(expected_context); 6217 v8::Context::Scope context_scope(expected_context);
6216 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run(); 6218 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run();
6217 expected_context.Dispose(); 6219 expected_context.Dispose();
6218 expected_context.Clear(); 6220 expected_context.Clear();
6219 v8::Debug::SetDebugEventListener(NULL); 6221 v8::Debug::SetDebugEventListener(NULL);
6220 expected_context_data = v8::Handle<v8::Value>(); 6222 expected_context_data = v8::Handle<v8::Value>();
6221 CheckDebuggerUnloaded(); 6223 CheckDebuggerUnloaded();
6222 } 6224 }
6223 6225
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698