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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 printf("%s/%s<\n", current->file(), current->name()); | 91 printf("%s/%s<\n", current->file(), current->name()); |
92 } | 92 } |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 v8::Isolate* CcTest::default_isolate_; | 96 v8::Isolate* CcTest::default_isolate_; |
97 | 97 |
98 | 98 |
99 int main(int argc, char* argv[]) { | 99 int main(int argc, char* argv[]) { |
100 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 100 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
| 101 v8::internal::FLAG_harmony_array_buffer = true; |
| 102 v8::internal::FLAG_harmony_typed_arrays = true; |
101 CcTest::set_default_isolate(v8::Isolate::GetCurrent()); | 103 CcTest::set_default_isolate(v8::Isolate::GetCurrent()); |
102 CHECK(CcTest::default_isolate() != NULL); | 104 CHECK(CcTest::default_isolate() != NULL); |
103 int tests_run = 0; | 105 int tests_run = 0; |
104 bool print_run_count = true; | 106 bool print_run_count = true; |
105 for (int i = 1; i < argc; i++) { | 107 for (int i = 1; i < argc; i++) { |
106 char* arg = argv[i]; | 108 char* arg = argv[i]; |
107 if (strcmp(arg, "--list") == 0) { | 109 if (strcmp(arg, "--list") == 0) { |
108 PrintTestList(CcTest::last()); | 110 PrintTestList(CcTest::last()); |
109 print_run_count = false; | 111 print_run_count = false; |
110 | 112 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 148 } |
147 } | 149 } |
148 if (print_run_count && tests_run != 1) | 150 if (print_run_count && tests_run != 1) |
149 printf("Ran %i tests.\n", tests_run); | 151 printf("Ran %i tests.\n", tests_run); |
150 v8::V8::Dispose(); | 152 v8::V8::Dispose(); |
151 return 0; | 153 return 0; |
152 } | 154 } |
153 | 155 |
154 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; | 156 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; |
155 int RegisterThreadedTest::count_ = 0; | 157 int RegisterThreadedTest::count_ = 0; |
OLD | NEW |