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 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 Locker lock(isolate); | 2162 Locker lock(isolate); |
2163 Locker::StopPreemption(); | 2163 Locker::StopPreemption(); |
2164 } | 2164 } |
2165 #endif // V8_SHARED | 2165 #endif // V8_SHARED |
2166 return 0; | 2166 return 0; |
2167 } | 2167 } |
2168 | 2168 |
2169 | 2169 |
2170 int Shell::Main(int argc, char* argv[]) { | 2170 int Shell::Main(int argc, char* argv[]) { |
2171 if (!SetOptions(argc, argv)) return 1; | 2171 if (!SetOptions(argc, argv)) return 1; |
| 2172 #ifndef V8_SHARED |
| 2173 i::FLAG_harmony_array_buffer = true; |
| 2174 i::FLAG_harmony_typed_arrays = true; |
| 2175 #endif |
2172 int result = 0; | 2176 int result = 0; |
2173 Isolate* isolate = Isolate::GetCurrent(); | 2177 Isolate* isolate = Isolate::GetCurrent(); |
2174 DumbLineEditor dumb_line_editor(isolate); | 2178 DumbLineEditor dumb_line_editor(isolate); |
2175 { | 2179 { |
2176 Initialize(isolate); | 2180 Initialize(isolate); |
2177 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 2181 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
2178 vTune::InitilizeVtuneForV8(); | 2182 vTune::InitilizeVtuneForV8(); |
2179 #endif | 2183 #endif |
2180 PerIsolateData data(isolate); | 2184 PerIsolateData data(isolate); |
2181 InitializeDebugger(isolate); | 2185 InitializeDebugger(isolate); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 } | 2241 } |
2238 | 2242 |
2239 } // namespace v8 | 2243 } // namespace v8 |
2240 | 2244 |
2241 | 2245 |
2242 #ifndef GOOGLE3 | 2246 #ifndef GOOGLE3 |
2243 int main(int argc, char* argv[]) { | 2247 int main(int argc, char* argv[]) { |
2244 return v8::Shell::Main(argc, argv); | 2248 return v8::Shell::Main(argc, argv); |
2245 } | 2249 } |
2246 #endif | 2250 #endif |
OLD | NEW |