OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // --always-full-compiler and --always-fast-compiler, which are mutually | 114 // --always-full-compiler and --always-fast-compiler, which are mutually |
115 // incompatible. | 115 // incompatible. |
116 CHECK(!FLAG_always_full_compiler || !FLAG_always_fast_compiler); | 116 CHECK(!FLAG_always_full_compiler || !FLAG_always_fast_compiler); |
117 | 117 |
118 Handle<SharedFunctionInfo> shared = info->shared_info(); | 118 Handle<SharedFunctionInfo> shared = info->shared_info(); |
119 bool is_run_once = (shared.is_null()) | 119 bool is_run_once = (shared.is_null()) |
120 ? info->scope()->is_global_scope() | 120 ? info->scope()->is_global_scope() |
121 : (shared->is_toplevel() || shared->try_full_codegen()); | 121 : (shared->is_toplevel() || shared->try_full_codegen()); |
122 | 122 |
123 bool force_full_compiler = false; | 123 bool force_full_compiler = false; |
124 #ifdef V8_TARGET_ARCH_IA32 | 124 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X64) |
125 // On ia32 the full compiler can compile all code whereas the other platforms | 125 // On ia32 the full compiler can compile all code whereas the other platforms |
126 // the constructs supported is checked by the associated syntax checker. When | 126 // the constructs supported is checked by the associated syntax checker. When |
127 // --always-full-compiler is used on ia32 the syntax checker is still in | 127 // --always-full-compiler is used on ia32 the syntax checker is still in |
128 // effect, but there is a special flag --force-full-compiler to ignore the | 128 // effect, but there is a special flag --force-full-compiler to ignore the |
129 // syntax checker completely and use the full compiler for all code. Also | 129 // syntax checker completely and use the full compiler for all code. Also |
130 // when debugging on ia32 the full compiler will be used for all code. | 130 // when debugging on ia32 the full compiler will be used for all code. |
131 force_full_compiler = | 131 force_full_compiler = |
132 Debugger::IsDebuggerActive() || FLAG_force_full_compiler; | 132 Debugger::IsDebuggerActive() || FLAG_force_full_compiler; |
133 #endif | 133 #endif |
134 | 134 |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), | 628 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
629 *code, *func_name)); | 629 *code, *func_name)); |
630 OPROFILE(CreateNativeCodeRegion(*func_name, | 630 OPROFILE(CreateNativeCodeRegion(*func_name, |
631 code->instruction_start(), | 631 code->instruction_start(), |
632 code->instruction_size())); | 632 code->instruction_size())); |
633 } | 633 } |
634 } | 634 } |
635 } | 635 } |
636 | 636 |
637 } } // namespace v8::internal | 637 } } // namespace v8::internal |
OLD | NEW |