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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // Compiling for the snapshot typically results in different code than | 180 // Compiling for the snapshot typically results in different code than |
181 // compiling later on. This means that code recompiled with deoptimization | 181 // compiling later on. This means that code recompiled with deoptimization |
182 // support won't be "equivalent" (as defined by SharedFunctionInfo:: | 182 // support won't be "equivalent" (as defined by SharedFunctionInfo:: |
183 // EnableDeoptimizationSupport), so it will replace the old code and all | 183 // EnableDeoptimizationSupport), so it will replace the old code and all |
184 // its type feedback. To avoid this, always compile functions in the snapshot | 184 // its type feedback. To avoid this, always compile functions in the snapshot |
185 // with deoptimization support. | 185 // with deoptimization support. |
186 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); | 186 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); |
187 | 187 |
188 if (isolate_->debug()->is_active()) MarkAsDebug(); | 188 if (isolate_->debug()->is_active()) MarkAsDebug(); |
189 if (FLAG_context_specialization) MarkAsContextSpecializing(); | 189 if (FLAG_context_specialization) MarkAsContextSpecializing(); |
| 190 if (FLAG_turbo_builtin_inlining) MarkAsBuiltinInliningEnabled(); |
190 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); | 191 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); |
191 if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); | 192 if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); |
192 if (FLAG_turbo_types) MarkAsTypingEnabled(); | 193 if (FLAG_turbo_types) MarkAsTypingEnabled(); |
193 | 194 |
194 if (!shared_info_.is_null()) { | 195 if (!shared_info_.is_null()) { |
195 DCHECK(is_sloppy(language_mode())); | 196 DCHECK(is_sloppy(language_mode())); |
196 SetLanguageMode(shared_info_->language_mode()); | 197 SetLanguageMode(shared_info_->language_mode()); |
197 } | 198 } |
198 bailout_reason_ = kNoReason; | 199 bailout_reason_ = kNoReason; |
199 | 200 |
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 } | 1614 } |
1614 | 1615 |
1615 | 1616 |
1616 #if DEBUG | 1617 #if DEBUG |
1617 void CompilationInfo::PrintAstForTesting() { | 1618 void CompilationInfo::PrintAstForTesting() { |
1618 PrintF("--- Source from AST ---\n%s\n", | 1619 PrintF("--- Source from AST ---\n%s\n", |
1619 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1620 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
1620 } | 1621 } |
1621 #endif | 1622 #endif |
1622 } } // namespace v8::internal | 1623 } } // namespace v8::internal |
OLD | NEW |