Chromium Code Reviews| 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/vtune-jit.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 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1898 } | 1902 } |
| 1899 | 1903 |
| 1900 | 1904 |
| 1901 int Shell::Main(int argc, char* argv[]) { | 1905 int Shell::Main(int argc, char* argv[]) { |
| 1902 if (!SetOptions(argc, argv)) return 1; | 1906 if (!SetOptions(argc, argv)) return 1; |
| 1903 int result = 0; | 1907 int result = 0; |
| 1904 Isolate* isolate = Isolate::GetCurrent(); | 1908 Isolate* isolate = Isolate::GetCurrent(); |
| 1905 DumbLineEditor dumb_line_editor(isolate); | 1909 DumbLineEditor dumb_line_editor(isolate); |
| 1906 { | 1910 { |
| 1907 Initialize(isolate); | 1911 Initialize(isolate); |
| 1912 #ifdef ENABLE_VTUNE_JIT_INTERFACE | |
| 1913 V8::SetFlagsFromString("--nocompact_code_space", | |
| 1914 i::StrLength("--nocompact_code_space")); | |
|
danno
2013/02/25 20:25:38
Can you please move this call into v8::VTuneInitia
| |
| 1915 v8::VTuneInitilizer::initilizeVtune(); | |
|
danno
2013/02/25 20:25:38
Spelling: Initializer. Please capitalize all metho
| |
| 1916 #endif | |
| 1908 Symbols symbols(isolate); | 1917 Symbols symbols(isolate); |
| 1909 InitializeDebugger(isolate); | 1918 InitializeDebugger(isolate); |
| 1910 | 1919 |
| 1911 if (options.stress_opt || options.stress_deopt) { | 1920 if (options.stress_opt || options.stress_deopt) { |
| 1912 Testing::SetStressRunType(options.stress_opt | 1921 Testing::SetStressRunType(options.stress_opt |
| 1913 ? Testing::kStressTypeOpt | 1922 ? Testing::kStressTypeOpt |
| 1914 : Testing::kStressTypeDeopt); | 1923 : Testing::kStressTypeDeopt); |
| 1915 int stress_runs = Testing::GetStressRuns(); | 1924 int stress_runs = Testing::GetStressRuns(); |
| 1916 for (int i = 0; i < stress_runs && result == 0; i++) { | 1925 for (int i = 0; i < stress_runs && result == 0; i++) { |
| 1917 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); | 1926 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1965 } | 1974 } |
| 1966 | 1975 |
| 1967 } // namespace v8 | 1976 } // namespace v8 |
| 1968 | 1977 |
| 1969 | 1978 |
| 1970 #ifndef GOOGLE3 | 1979 #ifndef GOOGLE3 |
| 1971 int main(int argc, char* argv[]) { | 1980 int main(int argc, char* argv[]) { |
| 1972 return v8::Shell::Main(argc, argv); | 1981 return v8::Shell::Main(argc, argv); |
| 1973 } | 1982 } |
| 1974 #endif | 1983 #endif |
| OLD | NEW |