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 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 | 2166 |
2167 | 2167 |
2168 int Shell::Main(int argc, char* argv[]) { | 2168 int Shell::Main(int argc, char* argv[]) { |
2169 if (!SetOptions(argc, argv)) return 1; | 2169 if (!SetOptions(argc, argv)) return 1; |
2170 int result = 0; | 2170 int result = 0; |
2171 Isolate* isolate = Isolate::GetCurrent(); | 2171 Isolate* isolate = Isolate::GetCurrent(); |
2172 DumbLineEditor dumb_line_editor(isolate); | 2172 DumbLineEditor dumb_line_editor(isolate); |
2173 { | 2173 { |
2174 Initialize(isolate); | 2174 Initialize(isolate); |
2175 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 2175 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
2176 vTune::InitilizeVtuneForV8(); | 2176 vTune::InitializeVtuneForV8(); |
2177 #endif | 2177 #endif |
2178 PerIsolateData data(isolate); | 2178 PerIsolateData data(isolate); |
2179 InitializeDebugger(isolate); | 2179 InitializeDebugger(isolate); |
2180 | 2180 |
2181 if (options.stress_opt || options.stress_deopt) { | 2181 if (options.stress_opt || options.stress_deopt) { |
2182 Testing::SetStressRunType(options.stress_opt | 2182 Testing::SetStressRunType(options.stress_opt |
2183 ? Testing::kStressTypeOpt | 2183 ? Testing::kStressTypeOpt |
2184 : Testing::kStressTypeDeopt); | 2184 : Testing::kStressTypeDeopt); |
2185 int stress_runs = Testing::GetStressRuns(); | 2185 int stress_runs = Testing::GetStressRuns(); |
2186 for (int i = 0; i < stress_runs && result == 0; i++) { | 2186 for (int i = 0; i < stress_runs && result == 0; i++) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 } | 2235 } |
2236 | 2236 |
2237 } // namespace v8 | 2237 } // namespace v8 |
2238 | 2238 |
2239 | 2239 |
2240 #ifndef GOOGLE3 | 2240 #ifndef GOOGLE3 |
2241 int main(int argc, char* argv[]) { | 2241 int main(int argc, char* argv[]) { |
2242 return v8::Shell::Main(argc, argv); | 2242 return v8::Shell::Main(argc, argv); |
2243 } | 2243 } |
2244 #endif | 2244 #endif |
OLD | NEW |