| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5  |     5  | 
|     6 // Defined when linking against shared lib on Windows. |     6 // Defined when linking against shared lib on Windows. | 
|     7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |     7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 
|     8 #define V8_SHARED |     8 #define V8_SHARED | 
|     9 #endif |     9 #endif | 
|    10  |    10  | 
| (...skipping 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2415   _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); |  2415   _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); | 
|  2416   _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); |  2416   _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); | 
|  2417   _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); |  2417   _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); | 
|  2418   _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); |  2418   _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); | 
|  2419   _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); |  2419   _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); | 
|  2420   _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR); |  2420   _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR); | 
|  2421   _set_error_mode(_OUT_TO_STDERR); |  2421   _set_error_mode(_OUT_TO_STDERR); | 
|  2422 #endif  // defined(_MSC_VER) |  2422 #endif  // defined(_MSC_VER) | 
|  2423 #endif  // defined(_WIN32) || defined(_WIN64) |  2423 #endif  // defined(_WIN32) || defined(_WIN64) | 
|  2424   if (!SetOptions(argc, argv)) return 1; |  2424   if (!SetOptions(argc, argv)) return 1; | 
|  2425   v8::V8::InitializeICU(options.icu_data_file); |  2425   v8::V8::InitializeICUDefaultLocation(argv[0], options.icu_data_file); | 
|  2426 #ifndef V8_SHARED |  2426 #ifndef V8_SHARED | 
|  2427   g_platform = i::FLAG_verify_predictable |  2427   g_platform = i::FLAG_verify_predictable | 
|  2428                    ? new PredictablePlatform() |  2428                    ? new PredictablePlatform() | 
|  2429                    : v8::platform::CreateDefaultPlatform(); |  2429                    : v8::platform::CreateDefaultPlatform(); | 
|  2430 #else |  2430 #else | 
|  2431   g_platform = v8::platform::CreateDefaultPlatform(); |  2431   g_platform = v8::platform::CreateDefaultPlatform(); | 
|  2432 #endif  // !V8_SHARED |  2432 #endif  // !V8_SHARED | 
|  2433  |  2433  | 
|  2434   v8::V8::InitializePlatform(g_platform); |  2434   v8::V8::InitializePlatform(g_platform); | 
|  2435   v8::V8::Initialize(); |  2435   v8::V8::Initialize(); | 
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2547 } |  2547 } | 
|  2548  |  2548  | 
|  2549 }  // namespace v8 |  2549 }  // namespace v8 | 
|  2550  |  2550  | 
|  2551  |  2551  | 
|  2552 #ifndef GOOGLE3 |  2552 #ifndef GOOGLE3 | 
|  2553 int main(int argc, char* argv[]) { |  2553 int main(int argc, char* argv[]) { | 
|  2554   return v8::Shell::Main(argc, argv); |  2554   return v8::Shell::Main(argc, argv); | 
|  2555 } |  2555 } | 
|  2556 #endif |  2556 #endif | 
| OLD | NEW |