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

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

Issue 2280007: Extend CallIC to support non-constant names.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « test/cctest/test-api.cc ('k') | test/mjsunit/keyed-call-ic.js » ('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 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::StubCache::ComputeCallDebugBreak(argc, Code::CALL_IC),
400 Code);
400 } 401 }
401 402
402 403
403 // Check that the debugger has been fully unloaded. 404 // Check that the debugger has been fully unloaded.
404 void CheckDebuggerUnloaded(bool check_functions) { 405 void CheckDebuggerUnloaded(bool check_functions) {
405 // Check that the debugger context is cleared and that there is no debug 406 // Check that the debugger context is cleared and that there is no debug
406 // information stored for the debugger. 407 // information stored for the debugger.
407 CHECK(Debug::debug_context().is_null()); 408 CHECK(Debug::debug_context().is_null());
408 CHECK_EQ(NULL, Debug::debug_info_list_); 409 CHECK_EQ(NULL, Debug::debug_info_list_);
409 410
(...skipping 5804 matching lines...) Expand 10 before | Expand all | Expand 10 after
6214 expected_context = v8::Context::New(); 6215 expected_context = v8::Context::New();
6215 v8::Context::Scope context_scope(expected_context); 6216 v8::Context::Scope context_scope(expected_context);
6216 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run(); 6217 v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run();
6217 expected_context.Dispose(); 6218 expected_context.Dispose();
6218 expected_context.Clear(); 6219 expected_context.Clear();
6219 v8::Debug::SetDebugEventListener(NULL); 6220 v8::Debug::SetDebugEventListener(NULL);
6220 expected_context_data = v8::Handle<v8::Value>(); 6221 expected_context_data = v8::Handle<v8::Value>();
6221 CheckDebuggerUnloaded(); 6222 CheckDebuggerUnloaded();
6222 } 6223 }
6223 6224
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/keyed-call-ic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698