OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #ifdef __linux__ | 30 #ifdef __linux__ |
31 #include <pthread.h> | 31 #include <pthread.h> |
32 #include <signal.h> | 32 #include <signal.h> |
33 #include <unistd.h> | 33 #include <unistd.h> |
34 #include <cmath> | 34 #include <cmath> |
35 #endif // __linux__ | 35 #endif // __linux__ |
36 | 36 |
37 #include "src/v8.h" | 37 #include "src/v8.h" |
38 | 38 |
39 #include "src/cpu-profiler.h" | |
40 #include "src/log.h" | 39 #include "src/log.h" |
41 #include "src/log-utils.h" | 40 #include "src/log-utils.h" |
| 41 #include "src/profiler/cpu-profiler.h" |
42 #include "src/snapshot/natives.h" | 42 #include "src/snapshot/natives.h" |
43 #include "src/utils.h" | 43 #include "src/utils.h" |
44 #include "src/v8threads.h" | 44 #include "src/v8threads.h" |
45 #include "src/version.h" | 45 #include "src/version.h" |
46 #include "src/vm-state-inl.h" | 46 #include "src/vm-state-inl.h" |
47 #include "test/cctest/cctest.h" | 47 #include "test/cctest/cctest.h" |
48 | 48 |
49 using v8::internal::Address; | 49 using v8::internal::Address; |
50 using v8::internal::EmbeddedVector; | 50 using v8::internal::EmbeddedVector; |
51 using v8::internal::Logger; | 51 using v8::internal::Logger; |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 CHECK(exists); | 524 CHECK(exists); |
525 i::EmbeddedVector<char, 100> ref_data; | 525 i::EmbeddedVector<char, 100> ref_data; |
526 i::SNPrintF(ref_data, "v8-version,%d,%d,%d,%d,%d", i::Version::GetMajor(), | 526 i::SNPrintF(ref_data, "v8-version,%d,%d,%d,%d,%d", i::Version::GetMajor(), |
527 i::Version::GetMinor(), i::Version::GetBuild(), | 527 i::Version::GetMinor(), i::Version::GetBuild(), |
528 i::Version::GetPatch(), i::Version::IsCandidate()); | 528 i::Version::GetPatch(), i::Version::IsCandidate()); |
529 CHECK(StrNStr(log.start(), ref_data.start(), log.length())); | 529 CHECK(StrNStr(log.start(), ref_data.start(), log.length())); |
530 log.Dispose(); | 530 log.Dispose(); |
531 } | 531 } |
532 isolate->Dispose(); | 532 isolate->Dispose(); |
533 } | 533 } |
OLD | NEW |