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

Side by Side Diff: test/cctest/test-cpu-profiler.cc

Issue 357383003: Make JsNative1JsNative2JsSample cctest work on Win Release (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebaseline Created 6 years, 5 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/cctest.status ('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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 // other functions e.g. "get length". 1483 // other functions e.g. "get length".
1484 CHECK_LE(1, barNode->GetChildrenCount()); 1484 CHECK_LE(1, barNode->GetChildrenCount());
1485 CHECK_GE(2, barNode->GetChildrenCount()); 1485 CHECK_GE(2, barNode->GetChildrenCount());
1486 GetChild(env->GetIsolate(), barNode, "foo"); 1486 GetChild(env->GetIsolate(), barNode, "foo");
1487 1487
1488 profile->Delete(); 1488 profile->Delete();
1489 } 1489 }
1490 1490
1491 1491
1492 static void CallJsFunction2(const v8::FunctionCallbackInfo<v8::Value>& info) { 1492 static void CallJsFunction2(const v8::FunctionCallbackInfo<v8::Value>& info) {
1493 v8::base::OS::Print("In CallJsFunction2\n");
1493 CallJsFunction(info); 1494 CallJsFunction(info);
1494 } 1495 }
1495 1496
1496 1497
1497 static const char* js_native1_js_native2_js_test_source = 1498 static const char* js_native1_js_native2_js_test_source =
1498 "var is_profiling = false;\n" 1499 "var is_profiling = false;\n"
1499 "function foo(iterations) {\n" 1500 "function foo(iterations) {\n"
1500 " if (!is_profiling) {\n" 1501 " if (!is_profiling) {\n"
1501 " is_profiling = true;\n" 1502 " is_profiling = true;\n"
1502 " startProfiling('my_profile');\n" 1503 " startProfiling('my_profile');\n"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 inner_profile = NULL; 1727 inner_profile = NULL;
1727 CHECK_EQ(0, iprofiler->GetProfilesCount()); 1728 CHECK_EQ(0, iprofiler->GetProfilesCount());
1728 1729
1729 v8::CpuProfile* outer_profile = profiler->StopProfiling(outer); 1730 v8::CpuProfile* outer_profile = profiler->StopProfiling(outer);
1730 CHECK(outer_profile); 1731 CHECK(outer_profile);
1731 CHECK_EQ(1, iprofiler->GetProfilesCount()); 1732 CHECK_EQ(1, iprofiler->GetProfilesCount());
1732 outer_profile->Delete(); 1733 outer_profile->Delete();
1733 outer_profile = NULL; 1734 outer_profile = NULL;
1734 CHECK_EQ(0, iprofiler->GetProfilesCount()); 1735 CHECK_EQ(0, iprofiler->GetProfilesCount());
1735 } 1736 }
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698