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

Side by Side Diff: test/cctest/test-profile-generator.cc

Issue 315003003: Compilation API: next step of deprecations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 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-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 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // b 655 // b
656 // a 656 // a
657 // There can also be: 657 // There can also be:
658 // startProfiling 658 // startProfiling
659 // if the sampler managed to get a tick. 659 // if the sampler managed to get a tick.
660 current = PickChild(current, i::ProfileGenerator::kAnonymousFunctionName); 660 current = PickChild(current, i::ProfileGenerator::kAnonymousFunctionName);
661 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 661 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
662 662
663 current = PickChild(current, "b"); 663 current = PickChild(current, "b");
664 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 664 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
665 CHECK_EQ(script_b->GetId(), current->GetScriptId()); 665 CHECK_EQ(script_b->GetUnboundScript()->GetId(), current->GetScriptId());
666 666
667 current = PickChild(current, "a"); 667 current = PickChild(current, "a");
668 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 668 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
669 CHECK_EQ(script_a->GetId(), current->GetScriptId()); 669 CHECK_EQ(script_a->GetUnboundScript()->GetId(), current->GetScriptId());
670 } 670 }
671 671
672 672
673 673
674 674
675 static const char* line_number_test_source_existing_functions = 675 static const char* line_number_test_source_existing_functions =
676 "function foo_at_the_first_line() {\n" 676 "function foo_at_the_first_line() {\n"
677 "}\n" 677 "}\n"
678 "foo_at_the_first_line();\n" 678 "foo_at_the_first_line();\n"
679 "function lazy_func_at_forth_line() {}\n"; 679 "function lazy_func_at_forth_line() {}\n";
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 767 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
768 768
769 current = PickChild(current, "TryFinally"); 769 current = PickChild(current, "TryFinally");
770 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 770 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
771 CHECK(!strcmp("TryFinallyStatement", current->GetBailoutReason())); 771 CHECK(!strcmp("TryFinallyStatement", current->GetBailoutReason()));
772 772
773 current = PickChild(current, "TryCatch"); 773 current = PickChild(current, "TryCatch");
774 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current)); 774 CHECK_NE(NULL, const_cast<v8::CpuProfileNode*>(current));
775 CHECK(!strcmp("TryCatchStatement", current->GetBailoutReason())); 775 CHECK(!strcmp("TryCatchStatement", current->GetBailoutReason()));
776 } 776 }
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