| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/crankshaft/hydrogen.h" | 5 #include "src/crankshaft/hydrogen.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
| (...skipping 8025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8036 | 8036 |
| 8037 // Parse and allocate variables. | 8037 // Parse and allocate variables. |
| 8038 // Use the same AstValueFactory for creating strings in the sub-compilation | 8038 // Use the same AstValueFactory for creating strings in the sub-compilation |
| 8039 // step, but don't transfer ownership to target_info. | 8039 // step, but don't transfer ownership to target_info. |
| 8040 Handle<SharedFunctionInfo> target_shared(target->shared()); | 8040 Handle<SharedFunctionInfo> target_shared(target->shared()); |
| 8041 ParseInfo parse_info(target_shared, top_info()->parse_info()->zone_shared()); | 8041 ParseInfo parse_info(target_shared, top_info()->parse_info()->zone_shared()); |
| 8042 parse_info.set_ast_value_factory( | 8042 parse_info.set_ast_value_factory( |
| 8043 top_info()->parse_info()->ast_value_factory()); | 8043 top_info()->parse_info()->ast_value_factory()); |
| 8044 parse_info.set_ast_value_factory_owned(false); | 8044 parse_info.set_ast_value_factory_owned(false); |
| 8045 | 8045 |
| 8046 CompilationInfo target_info(&parse_info, target); | 8046 CompilationInfo target_info(parse_info.zone(), &parse_info, target); |
| 8047 | 8047 |
| 8048 if (inlining_kind != CONSTRUCT_CALL_RETURN && | 8048 if (inlining_kind != CONSTRUCT_CALL_RETURN && |
| 8049 IsClassConstructor(target_shared->kind())) { | 8049 IsClassConstructor(target_shared->kind())) { |
| 8050 TraceInline(target, caller, "target is classConstructor"); | 8050 TraceInline(target, caller, "target is classConstructor"); |
| 8051 return false; | 8051 return false; |
| 8052 } | 8052 } |
| 8053 | 8053 |
| 8054 if (target_shared->HasDebugInfo()) { | 8054 if (target_shared->HasDebugInfo()) { |
| 8055 TraceInline(target, caller, "target is being debugged"); | 8055 TraceInline(target, caller, "target is being debugged"); |
| 8056 return false; | 8056 return false; |
| (...skipping 4968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13026 } | 13026 } |
| 13027 | 13027 |
| 13028 #ifdef DEBUG | 13028 #ifdef DEBUG |
| 13029 graph_->Verify(false); // No full verify. | 13029 graph_->Verify(false); // No full verify. |
| 13030 #endif | 13030 #endif |
| 13031 } | 13031 } |
| 13032 | 13032 |
| 13033 } // namespace internal | 13033 } // namespace internal |
| 13034 } // namespace v8 | 13034 } // namespace v8 |
| OLD | NEW |