| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
| 8 | 8 |
| 9 #include "src/ast-numbering.h" | 9 #include "src/ast-numbering.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 CompilationInfoWithZone info(function); | 866 CompilationInfoWithZone info(function); |
| 867 | 867 |
| 868 VMState<COMPILER> state(isolate); | 868 VMState<COMPILER> state(isolate); |
| 869 PostponeInterruptsScope postpone(isolate); | 869 PostponeInterruptsScope postpone(isolate); |
| 870 | 870 |
| 871 info.SetOptimizing(BailoutId::None(), | 871 info.SetOptimizing(BailoutId::None(), |
| 872 Handle<Code>(function->shared()->code())); | 872 Handle<Code>(function->shared()->code())); |
| 873 | 873 |
| 874 info.MarkAsContextSpecializing(); | 874 info.MarkAsContextSpecializing(); |
| 875 info.MarkAsTypingEnabled(); | 875 info.MarkAsTypingEnabled(); |
| 876 info.MarkAsInliningDisabled(); | |
| 877 | 876 |
| 878 if (GetOptimizedCodeNow(&info)) { | 877 if (GetOptimizedCodeNow(&info)) { |
| 879 DCHECK(function->shared()->is_compiled()); | 878 DCHECK(function->shared()->is_compiled()); |
| 880 return info.code(); | 879 return info.code(); |
| 881 } | 880 } |
| 882 } | 881 } |
| 883 | 882 |
| 884 if (function->shared()->is_compiled()) { | 883 if (function->shared()->is_compiled()) { |
| 885 return Handle<Code>(function->shared()->code()); | 884 return Handle<Code>(function->shared()->code()); |
| 886 } | 885 } |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 AllowHandleDereference allow_deref; | 1480 AllowHandleDereference allow_deref; |
| 1482 bool tracing_on = info()->IsStub() | 1481 bool tracing_on = info()->IsStub() |
| 1483 ? FLAG_trace_hydrogen_stubs | 1482 ? FLAG_trace_hydrogen_stubs |
| 1484 : (FLAG_trace_hydrogen && | 1483 : (FLAG_trace_hydrogen && |
| 1485 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1484 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
| 1486 return (tracing_on && | 1485 return (tracing_on && |
| 1487 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1486 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
| 1488 } | 1487 } |
| 1489 | 1488 |
| 1490 } } // namespace v8::internal | 1489 } } // namespace v8::internal |
| OLD | NEW |