Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/d8.cc

Issue 15059009: Enable native implementation of array buffer and typed arrays in d8 and tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/cctest/cctest.cc » ('j') | test/cctest/test-api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/cctest/cctest.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698