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

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

Issue 480823004: Get rid of GetLazyValue and clients. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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-api.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 v8::Local<v8::Object> obj1 = js_global->Get(v8_str("obj1")).As<v8::Object>(); 1856 v8::Local<v8::Object> obj1 = js_global->Get(v8_str("obj1")).As<v8::Object>();
1857 i::Handle<i::JSObject> js_obj1 = v8::Utils::OpenHandle(*obj1); 1857 i::Handle<i::JSObject> js_obj1 = v8::Utils::OpenHandle(*obj1);
1858 CHECK_EQ(0, StringCmp( 1858 CHECK_EQ(0, StringCmp(
1859 "Constructor1", i::V8HeapExplorer::GetConstructorName(*js_obj1))); 1859 "Constructor1", i::V8HeapExplorer::GetConstructorName(*js_obj1)));
1860 v8::Local<v8::Object> obj2 = js_global->Get(v8_str("obj2")).As<v8::Object>(); 1860 v8::Local<v8::Object> obj2 = js_global->Get(v8_str("obj2")).As<v8::Object>();
1861 i::Handle<i::JSObject> js_obj2 = v8::Utils::OpenHandle(*obj2); 1861 i::Handle<i::JSObject> js_obj2 = v8::Utils::OpenHandle(*obj2);
1862 CHECK_EQ(0, StringCmp( 1862 CHECK_EQ(0, StringCmp(
1863 "Constructor2", i::V8HeapExplorer::GetConstructorName(*js_obj2))); 1863 "Constructor2", i::V8HeapExplorer::GetConstructorName(*js_obj2)));
1864 v8::Local<v8::Object> obj3 = js_global->Get(v8_str("obj3")).As<v8::Object>(); 1864 v8::Local<v8::Object> obj3 = js_global->Get(v8_str("obj3")).As<v8::Object>();
1865 i::Handle<i::JSObject> js_obj3 = v8::Utils::OpenHandle(*obj3); 1865 i::Handle<i::JSObject> js_obj3 = v8::Utils::OpenHandle(*obj3);
1866 CHECK_EQ(0, StringCmp( 1866 // TODO(verwaest): Restore to Constructor3 once supported by the
1867 "Constructor3", i::V8HeapExplorer::GetConstructorName(*js_obj3))); 1867 // heap-snapshot-generator.
1868 CHECK_EQ(
1869 0, StringCmp("Object", i::V8HeapExplorer::GetConstructorName(*js_obj3)));
1868 v8::Local<v8::Object> obj4 = js_global->Get(v8_str("obj4")).As<v8::Object>(); 1870 v8::Local<v8::Object> obj4 = js_global->Get(v8_str("obj4")).As<v8::Object>();
1869 i::Handle<i::JSObject> js_obj4 = v8::Utils::OpenHandle(*obj4); 1871 i::Handle<i::JSObject> js_obj4 = v8::Utils::OpenHandle(*obj4);
1870 CHECK_EQ(0, StringCmp( 1872 // TODO(verwaest): Restore to Constructor4 once supported by the
1871 "Constructor4", i::V8HeapExplorer::GetConstructorName(*js_obj4))); 1873 // heap-snapshot-generator.
1874 CHECK_EQ(
1875 0, StringCmp("Object", i::V8HeapExplorer::GetConstructorName(*js_obj4)));
1872 v8::Local<v8::Object> obj5 = js_global->Get(v8_str("obj5")).As<v8::Object>(); 1876 v8::Local<v8::Object> obj5 = js_global->Get(v8_str("obj5")).As<v8::Object>();
1873 i::Handle<i::JSObject> js_obj5 = v8::Utils::OpenHandle(*obj5); 1877 i::Handle<i::JSObject> js_obj5 = v8::Utils::OpenHandle(*obj5);
1874 CHECK_EQ(0, StringCmp( 1878 CHECK_EQ(0, StringCmp(
1875 "Object", i::V8HeapExplorer::GetConstructorName(*js_obj5))); 1879 "Object", i::V8HeapExplorer::GetConstructorName(*js_obj5)));
1876 v8::Local<v8::Object> obj6 = js_global->Get(v8_str("obj6")).As<v8::Object>(); 1880 v8::Local<v8::Object> obj6 = js_global->Get(v8_str("obj6")).As<v8::Object>();
1877 i::Handle<i::JSObject> js_obj6 = v8::Utils::OpenHandle(*obj6); 1881 i::Handle<i::JSObject> js_obj6 = v8::Utils::OpenHandle(*obj6);
1878 CHECK_EQ(0, StringCmp( 1882 CHECK_EQ(0, StringCmp(
1879 "Object", i::V8HeapExplorer::GetConstructorName(*js_obj6))); 1883 "Object", i::V8HeapExplorer::GetConstructorName(*js_obj6)));
1880 } 1884 }
1881 1885
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 map.AddRange(ToAddress(0x180), 0x80, 6U); 2760 map.AddRange(ToAddress(0x180), 0x80, 6U);
2757 map.AddRange(ToAddress(0x180), 0x80, 7U); 2761 map.AddRange(ToAddress(0x180), 0x80, 7U);
2758 CHECK_EQ(7, map.GetTraceNodeId(ToAddress(0x180))); 2762 CHECK_EQ(7, map.GetTraceNodeId(ToAddress(0x180)));
2759 CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200))); 2763 CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200)));
2760 CHECK_EQ(3, static_cast<int>(map.size())); 2764 CHECK_EQ(3, static_cast<int>(map.size()));
2761 2765
2762 map.Clear(); 2766 map.Clear();
2763 CHECK_EQ(0, static_cast<int>(map.size())); 2767 CHECK_EQ(0, static_cast<int>(map.size()));
2764 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x400))); 2768 CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x400)));
2765 } 2769 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698