| 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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 thread->Join(); | 1557 thread->Join(); |
| 1558 delete thread; | 1558 delete thread; |
| 1559 } | 1559 } |
| 1560 #endif // V8_SHARED | 1560 #endif // V8_SHARED |
| 1561 return 0; | 1561 return 0; |
| 1562 } | 1562 } |
| 1563 | 1563 |
| 1564 | 1564 |
| 1565 #ifdef V8_SHARED | 1565 #ifdef V8_SHARED |
| 1566 static void SetStandaloneFlagsViaCommandLine() { | 1566 static void SetStandaloneFlagsViaCommandLine() { |
| 1567 int fake_argc = 2; | 1567 int fake_argc = 3; |
| 1568 char **fake_argv = new char*[2]; | 1568 char **fake_argv = new char*[3]; |
| 1569 fake_argv[0] = NULL; | 1569 fake_argv[0] = NULL; |
| 1570 fake_argv[1] = strdup("--trace-hydrogen-file=hydrogen.cfg"); | 1570 fake_argv[1] = strdup("--trace-hydrogen-file=hydrogen.cfg"); |
| 1571 fake_argv[2] = strdup("--redirect-code-traces-to=code.asm"); | 1571 fake_argv[2] = strdup("--redirect-code-traces-to=code.asm"); |
| 1572 v8::V8::SetFlagsFromCommandLine(&fake_argc, fake_argv, false); | 1572 v8::V8::SetFlagsFromCommandLine(&fake_argc, fake_argv, false); |
| 1573 free(fake_argv[1]); | 1573 free(fake_argv[1]); |
| 1574 free(fake_argv[2]); |
| 1574 delete[] fake_argv; | 1575 delete[] fake_argv; |
| 1575 } | 1576 } |
| 1576 #endif | 1577 #endif |
| 1577 | 1578 |
| 1578 | 1579 |
| 1579 #ifndef V8_SHARED | 1580 #ifndef V8_SHARED |
| 1580 static void DumpHeapConstants(i::Isolate* isolate) { | 1581 static void DumpHeapConstants(i::Isolate* isolate) { |
| 1581 i::Heap* heap = isolate->heap(); | 1582 i::Heap* heap = isolate->heap(); |
| 1582 | 1583 |
| 1583 // Dump the INSTANCE_TYPES table to the console. | 1584 // Dump the INSTANCE_TYPES table to the console. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 } | 1764 } |
| 1764 | 1765 |
| 1765 } // namespace v8 | 1766 } // namespace v8 |
| 1766 | 1767 |
| 1767 | 1768 |
| 1768 #ifndef GOOGLE3 | 1769 #ifndef GOOGLE3 |
| 1769 int main(int argc, char* argv[]) { | 1770 int main(int argc, char* argv[]) { |
| 1770 return v8::Shell::Main(argc, argv); | 1771 return v8::Shell::Main(argc, argv); |
| 1771 } | 1772 } |
| 1772 #endif | 1773 #endif |
| OLD | NEW |