| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 printf("Usage: %s [--list] [[V8_FLAGS] CCTEST]\n", argv[0]); | 179 printf("Usage: %s [--list] [[V8_FLAGS] CCTEST]\n", argv[0]); |
| 180 printf("\n"); | 180 printf("\n"); |
| 181 printf("Options:\n"); | 181 printf("Options:\n"); |
| 182 printf(" --list: list all cctests\n"); | 182 printf(" --list: list all cctests\n"); |
| 183 printf(" CCTEST: cctest identfier returned by --list\n"); | 183 printf(" CCTEST: cctest identfier returned by --list\n"); |
| 184 printf(" D8_FLAGS: see d8 output below\n"); | 184 printf(" D8_FLAGS: see d8 output below\n"); |
| 185 printf("\n\n"); | 185 printf("\n\n"); |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 | 188 |
| 189 v8::V8::InitializeICU(); | 189 v8::V8::InitializeICUDefaultLocation(argv[0]); |
| 190 v8::Platform* platform = v8::platform::CreateDefaultPlatform(); | 190 v8::Platform* platform = v8::platform::CreateDefaultPlatform(); |
| 191 v8::V8::InitializePlatform(platform); | 191 v8::V8::InitializePlatform(platform); |
| 192 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 192 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
| 193 v8::V8::Initialize(); | 193 v8::V8::Initialize(); |
| 194 v8::V8::InitializeExternalStartupData(argv[0]); | 194 v8::V8::InitializeExternalStartupData(argv[0]); |
| 195 | 195 |
| 196 CcTestArrayBufferAllocator array_buffer_allocator; | 196 CcTestArrayBufferAllocator array_buffer_allocator; |
| 197 CcTest::set_array_buffer_allocator(&array_buffer_allocator); | 197 CcTest::set_array_buffer_allocator(&array_buffer_allocator); |
| 198 | 198 |
| 199 i::PrintExtension print_extension; | 199 i::PrintExtension print_extension; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 CcTest::TearDown(); | 253 CcTest::TearDown(); |
| 254 // TODO(svenpanne) See comment above. | 254 // TODO(svenpanne) See comment above. |
| 255 // if (!disable_automatic_dispose_) v8::V8::Dispose(); | 255 // if (!disable_automatic_dispose_) v8::V8::Dispose(); |
| 256 v8::V8::ShutdownPlatform(); | 256 v8::V8::ShutdownPlatform(); |
| 257 delete platform; | 257 delete platform; |
| 258 return 0; | 258 return 0; |
| 259 } | 259 } |
| 260 | 260 |
| 261 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; | 261 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; |
| 262 int RegisterThreadedTest::count_ = 0; | 262 int RegisterThreadedTest::count_ = 0; |
| OLD | NEW |