OLD | NEW |
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 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2436 "::(GC roots)", | 2436 "::(GC roots)", |
2437 "::(Strong roots)", | 2437 "::(Strong roots)", |
2438 "code_stubs::", | 2438 "code_stubs::", |
2439 "::(ArraySingleArgumentConstructorStub code)" | 2439 "::(ArraySingleArgumentConstructorStub code)" |
2440 }; | 2440 }; |
2441 const v8::HeapGraphNode* node = GetNodeByPath(snapshot, | 2441 const v8::HeapGraphNode* node = GetNodeByPath(snapshot, |
2442 stub_path, arraysize(stub_path)); | 2442 stub_path, arraysize(stub_path)); |
2443 CHECK(node); | 2443 CHECK(node); |
2444 | 2444 |
2445 const char* builtin_path1[] = {"::(GC roots)", "::(Builtins)", | 2445 const char* builtin_path1[] = {"::(GC roots)", "::(Builtins)", |
2446 "::(KeyedLoadIC_Megamorphic builtin)"}; | 2446 "::(KeyedLoadIC_Slow builtin)"}; |
2447 node = GetNodeByPath(snapshot, builtin_path1, arraysize(builtin_path1)); | 2447 node = GetNodeByPath(snapshot, builtin_path1, arraysize(builtin_path1)); |
2448 CHECK(node); | 2448 CHECK(node); |
2449 | 2449 |
2450 const char* builtin_path2[] = {"::(GC roots)", "::(Builtins)", | 2450 const char* builtin_path2[] = {"::(GC roots)", "::(Builtins)", |
2451 "::(CompileLazy builtin)"}; | 2451 "::(CompileLazy builtin)"}; |
2452 node = GetNodeByPath(snapshot, builtin_path2, arraysize(builtin_path2)); | 2452 node = GetNodeByPath(snapshot, builtin_path2, arraysize(builtin_path2)); |
2453 CHECK(node); | 2453 CHECK(node); |
2454 v8::String::Utf8Value node_name(node->GetName()); | 2454 v8::String::Utf8Value node_name(node->GetName()); |
2455 CHECK_EQ(0, strcmp("(CompileLazy builtin)", *node_name)); | 2455 CHECK_EQ(0, strcmp("(CompileLazy builtin)", *node_name)); |
2456 } | 2456 } |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 " a[i] = i;\n" | 3102 " a[i] = i;\n" |
3103 " for (var i = 0; i < 3; ++i)\n" | 3103 " for (var i = 0; i < 3; ++i)\n" |
3104 " a.shift();\n" | 3104 " a.shift();\n" |
3105 "}\n"); | 3105 "}\n"); |
3106 | 3106 |
3107 CcTest::CollectGarbage(v8::internal::NEW_SPACE); | 3107 CcTest::CollectGarbage(v8::internal::NEW_SPACE); |
3108 // Should not crash. | 3108 // Should not crash. |
3109 | 3109 |
3110 heap_profiler->StopSamplingHeapProfiler(); | 3110 heap_profiler->StopSamplingHeapProfiler(); |
3111 } | 3111 } |
OLD | NEW |