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

Side by Side Diff: src/d8.cc

Issue 22390008: Promote ArrayBuffer, DataView and typed arrays to non-experimental. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased + style Created 7 years, 4 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 | « src/bootstrapper.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
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 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 Locker lock(isolate); 1549 Locker lock(isolate);
1550 Locker::StopPreemption(); 1550 Locker::StopPreemption();
1551 } 1551 }
1552 #endif // V8_SHARED 1552 #endif // V8_SHARED
1553 return 0; 1553 return 0;
1554 } 1554 }
1555 1555
1556 1556
1557 #ifdef V8_SHARED 1557 #ifdef V8_SHARED
1558 static void SetStandaloneFlagsViaCommandLine() { 1558 static void SetStandaloneFlagsViaCommandLine() {
1559 int fake_argc = 3; 1559 int fake_argc = 2;
1560 char **fake_argv = new char*[3]; 1560 char **fake_argv = new char*[2];
1561 fake_argv[0] = NULL; 1561 fake_argv[0] = NULL;
1562 fake_argv[1] = strdup("--harmony-typed-arrays"); 1562 fake_argv[1] = strdup("--trace-hydrogen-file=hydrogen.cfg");
1563 fake_argv[2] = strdup("--trace-hydrogen-file=hydrogen.cfg");
1564 v8::V8::SetFlagsFromCommandLine(&fake_argc, fake_argv, false); 1563 v8::V8::SetFlagsFromCommandLine(&fake_argc, fake_argv, false);
1565 free(fake_argv[1]); 1564 free(fake_argv[1]);
1566 delete[] fake_argv; 1565 delete[] fake_argv;
1567 } 1566 }
1568 #endif 1567 #endif
1569 1568
1570 1569
1571 #ifndef V8_SHARED 1570 #ifndef V8_SHARED
1572 static void DumpHeapConstants(i::Isolate* isolate) { 1571 static void DumpHeapConstants(i::Isolate* isolate) {
1573 i::Heap* heap = isolate->heap(); 1572 i::Heap* heap = isolate->heap();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 UNREACHABLE(); 1641 UNREACHABLE();
1643 #endif 1642 #endif
1644 } 1643 }
1645 }; 1644 };
1646 1645
1647 1646
1648 int Shell::Main(int argc, char* argv[]) { 1647 int Shell::Main(int argc, char* argv[]) {
1649 if (!SetOptions(argc, argv)) return 1; 1648 if (!SetOptions(argc, argv)) return 1;
1650 v8::V8::InitializeICU(); 1649 v8::V8::InitializeICU();
1651 #ifndef V8_SHARED 1650 #ifndef V8_SHARED
1652 i::FLAG_harmony_array_buffer = true;
1653 i::FLAG_harmony_typed_arrays = true;
1654 i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; 1651 i::FLAG_trace_hydrogen_file = "hydrogen.cfg";
1655 #else 1652 #else
1656 SetStandaloneFlagsViaCommandLine(); 1653 SetStandaloneFlagsViaCommandLine();
1657 #endif 1654 #endif
1658 ShellArrayBufferAllocator array_buffer_allocator; 1655 ShellArrayBufferAllocator array_buffer_allocator;
1659 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); 1656 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
1660 int result = 0; 1657 int result = 0;
1661 Isolate* isolate = Isolate::GetCurrent(); 1658 Isolate* isolate = Isolate::GetCurrent();
1662 DumbLineEditor dumb_line_editor(isolate); 1659 DumbLineEditor dumb_line_editor(isolate);
1663 { 1660 {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 } 1729 }
1733 1730
1734 } // namespace v8 1731 } // namespace v8
1735 1732
1736 1733
1737 #ifndef GOOGLE3 1734 #ifndef GOOGLE3
1738 int main(int argc, char* argv[]) { 1735 int main(int argc, char* argv[]) {
1739 return v8::Shell::Main(argc, argv); 1736 return v8::Shell::Main(argc, argv);
1740 } 1737 }
1741 #endif 1738 #endif
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698