| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 27 matching lines...) Expand all Loading... |
| 38 #include <errno.h> | 38 #include <errno.h> |
| 39 #include <stdlib.h> | 39 #include <stdlib.h> |
| 40 #include <string.h> | 40 #include <string.h> |
| 41 #include <sys/stat.h> | 41 #include <sys/stat.h> |
| 42 | 42 |
| 43 #ifdef V8_SHARED | 43 #ifdef V8_SHARED |
| 44 #include <assert.h> | 44 #include <assert.h> |
| 45 #include "../include/v8-testing.h" | 45 #include "../include/v8-testing.h" |
| 46 #endif // V8_SHARED | 46 #endif // V8_SHARED |
| 47 | 47 |
| 48 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 49 #include "third_party/vtune/v8-vtune.h" |
| 50 #endif |
| 51 |
| 48 #include "d8.h" | 52 #include "d8.h" |
| 49 | 53 |
| 50 #ifndef V8_SHARED | 54 #ifndef V8_SHARED |
| 51 #include "api.h" | 55 #include "api.h" |
| 52 #include "checks.h" | 56 #include "checks.h" |
| 53 #include "d8-debug.h" | 57 #include "d8-debug.h" |
| 54 #include "debug.h" | 58 #include "debug.h" |
| 55 #include "natives.h" | 59 #include "natives.h" |
| 56 #include "platform.h" | 60 #include "platform.h" |
| 57 #include "v8.h" | 61 #include "v8.h" |
| (...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 } | 1923 } |
| 1920 | 1924 |
| 1921 | 1925 |
| 1922 int Shell::Main(int argc, char* argv[]) { | 1926 int Shell::Main(int argc, char* argv[]) { |
| 1923 if (!SetOptions(argc, argv)) return 1; | 1927 if (!SetOptions(argc, argv)) return 1; |
| 1924 int result = 0; | 1928 int result = 0; |
| 1925 Isolate* isolate = Isolate::GetCurrent(); | 1929 Isolate* isolate = Isolate::GetCurrent(); |
| 1926 DumbLineEditor dumb_line_editor(isolate); | 1930 DumbLineEditor dumb_line_editor(isolate); |
| 1927 { | 1931 { |
| 1928 Initialize(isolate); | 1932 Initialize(isolate); |
| 1933 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 1934 vTune::InitilizeVtuneForV8(); |
| 1935 #endif |
| 1929 Symbols symbols(isolate); | 1936 Symbols symbols(isolate); |
| 1930 InitializeDebugger(isolate); | 1937 InitializeDebugger(isolate); |
| 1931 | 1938 |
| 1932 if (options.stress_opt || options.stress_deopt) { | 1939 if (options.stress_opt || options.stress_deopt) { |
| 1933 Testing::SetStressRunType(options.stress_opt | 1940 Testing::SetStressRunType(options.stress_opt |
| 1934 ? Testing::kStressTypeOpt | 1941 ? Testing::kStressTypeOpt |
| 1935 : Testing::kStressTypeDeopt); | 1942 : Testing::kStressTypeDeopt); |
| 1936 int stress_runs = Testing::GetStressRuns(); | 1943 int stress_runs = Testing::GetStressRuns(); |
| 1937 for (int i = 0; i < stress_runs && result == 0; i++) { | 1944 for (int i = 0; i < stress_runs && result == 0; i++) { |
| 1938 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); | 1945 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1986 } | 1993 } |
| 1987 | 1994 |
| 1988 } // namespace v8 | 1995 } // namespace v8 |
| 1989 | 1996 |
| 1990 | 1997 |
| 1991 #ifndef GOOGLE3 | 1998 #ifndef GOOGLE3 |
| 1992 int main(int argc, char* argv[]) { | 1999 int main(int argc, char* argv[]) { |
| 1993 return v8::Shell::Main(argc, argv); | 2000 return v8::Shell::Main(argc, argv); |
| 1994 } | 2001 } |
| 1995 #endif | 2002 #endif |
| OLD | NEW |