| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) | 89 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
| 90 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 90 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
| 91 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 91 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
| 92 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 92 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
| 93 | 93 |
| 94 // | 94 // |
| 95 // Flags in all modes. | 95 // Flags in all modes. |
| 96 // | 96 // |
| 97 #define FLAG FLAG_FULL | 97 #define FLAG FLAG_FULL |
| 98 | 98 |
| 99 // assembler-ia32.cc / assembler-arm.cc | 99 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
| 100 DEFINE_bool(debug_code, false, | 100 DEFINE_bool(debug_code, false, |
| 101 "generate extra code (comments, assertions) for debugging") | 101 "generate extra code (comments, assertions) for debugging") |
| 102 DEFINE_bool(emit_branch_hints, false, "emit branch hints") | 102 DEFINE_bool(emit_branch_hints, false, "emit branch hints") |
| 103 DEFINE_bool(push_pop_elimination, true, | 103 DEFINE_bool(push_pop_elimination, true, |
| 104 "eliminate redundant push/pops in assembly code") | 104 "eliminate redundant push/pops in assembly code") |
| 105 DEFINE_bool(print_push_pop_elimination, false, | 105 DEFINE_bool(print_push_pop_elimination, false, |
| 106 "print elimination of redundant push/pops in assembly code") | 106 "print elimination of redundant push/pops in assembly code") |
| 107 DEFINE_bool(enable_sse2, true, |
| 108 "enable use of SSE2 instructions if available") |
| 109 DEFINE_bool(enable_sse3, true, |
| 110 "enable use of SSE3 instructions if available") |
| 111 DEFINE_bool(enable_cmov, true, |
| 112 "enable use of CMOV instruction if available") |
| 113 DEFINE_bool(enable_rdtsc, true, |
| 114 "enable use of RDTSC instruction if available") |
| 115 DEFINE_bool(enable_sahf, true, |
| 116 "enable use of SAHF instruction if available (X64 only)") |
| 107 | 117 |
| 108 // bootstrapper.cc | 118 // bootstrapper.cc |
| 109 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") | 119 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") |
| 110 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") | 120 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") |
| 111 DEFINE_string(natives_file, NULL, "alternative natives file") | 121 DEFINE_string(natives_file, NULL, "alternative natives file") |
| 112 DEFINE_bool(expose_gc, false, "expose gc extension") | 122 DEFINE_bool(expose_gc, false, "expose gc extension") |
| 113 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") | 123 DEFINE_int(stack_trace_limit, 10, "number of stack frames to capture") |
| 114 | 124 |
| 115 // builtins-ia32.cc | 125 // builtins-ia32.cc |
| 116 DEFINE_bool(inline_new, true, "use fast inline allocation") | 126 DEFINE_bool(inline_new, true, "use fast inline allocation") |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 #undef FLAG | 394 #undef FLAG |
| 385 | 395 |
| 386 #undef DEFINE_bool | 396 #undef DEFINE_bool |
| 387 #undef DEFINE_int | 397 #undef DEFINE_int |
| 388 #undef DEFINE_string | 398 #undef DEFINE_string |
| 389 | 399 |
| 390 #undef FLAG_MODE_DECLARE | 400 #undef FLAG_MODE_DECLARE |
| 391 #undef FLAG_MODE_DEFINE | 401 #undef FLAG_MODE_DEFINE |
| 392 #undef FLAG_MODE_DEFINE_DEFAULTS | 402 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 393 #undef FLAG_MODE_META | 403 #undef FLAG_MODE_META |
| OLD | NEW |