| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Tests of profiles generator and utilities. | 3 // Tests of profiles generator and utilities. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 #include "profile-generator-inl.h" | 6 #include "profile-generator-inl.h" |
| 7 #include "cctest.h" | 7 #include "cctest.h" |
| 8 | 8 |
| 9 namespace i = v8::internal; | 9 namespace i = v8::internal; |
| 10 | 10 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 sample3.stack[1] = ToAddress(0x1610); | 405 sample3.stack[1] = ToAddress(0x1610); |
| 406 sample3.frames_count = 2; | 406 sample3.frames_count = 2; |
| 407 generator.RecordTickSample(sample3); | 407 generator.RecordTickSample(sample3); |
| 408 | 408 |
| 409 ProfileNode* node1 = top_down_test_helper.Walk(entry1); | 409 ProfileNode* node1 = top_down_test_helper.Walk(entry1); |
| 410 CHECK_NE(NULL, node1); | 410 CHECK_NE(NULL, node1); |
| 411 CHECK_EQ(entry1, node1->entry()); | 411 CHECK_EQ(entry1, node1->entry()); |
| 412 ProfileNode* node2 = top_down_test_helper.Walk(entry1, entry1); | 412 ProfileNode* node2 = top_down_test_helper.Walk(entry1, entry1); |
| 413 CHECK_NE(NULL, node2); | 413 CHECK_NE(NULL, node2); |
| 414 CHECK_EQ(entry1, node2->entry()); | 414 CHECK_EQ(entry1, node2->entry()); |
| 415 // ProfileNode* node3 = top_down_test_helper.Walk(entry1, entry2, entry3); | 415 ProfileNode* node3 = top_down_test_helper.Walk(entry1, entry2, entry3); |
| 416 // CHECK_NE(NULL, node3); | 416 CHECK_NE(NULL, node3); |
| 417 // CHECK_EQ(entry2, node3->entry()); | 417 CHECK_EQ(entry3, node3->entry()); |
| 418 ProfileNode* node4 = top_down_test_helper.Walk(entry1, entry3, entry1); | 418 ProfileNode* node4 = top_down_test_helper.Walk(entry1, entry3, entry1); |
| 419 CHECK_NE(NULL, node4); | 419 CHECK_NE(NULL, node4); |
| 420 CHECK_EQ(entry1, node4->entry()); | 420 CHECK_EQ(entry1, node4->entry()); |
| 421 } | 421 } |
| OLD | NEW |