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 <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
10 #include "src/ast/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
(...skipping 8379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8390 } | 8390 } |
8391 | 8391 |
8392 // Parse and allocate variables. | 8392 // Parse and allocate variables. |
8393 // Use the same AstValueFactory for creating strings in the sub-compilation | 8393 // Use the same AstValueFactory for creating strings in the sub-compilation |
8394 // step, but don't transfer ownership to target_info. | 8394 // step, but don't transfer ownership to target_info. |
8395 ParseInfo parse_info(zone(), target); | 8395 ParseInfo parse_info(zone(), target); |
8396 parse_info.set_ast_value_factory( | 8396 parse_info.set_ast_value_factory( |
8397 top_info()->parse_info()->ast_value_factory()); | 8397 top_info()->parse_info()->ast_value_factory()); |
8398 parse_info.set_ast_value_factory_owned(false); | 8398 parse_info.set_ast_value_factory_owned(false); |
8399 | 8399 |
8400 CompilationInfo target_info(&parse_info); | 8400 CompilationInfo target_info(&parse_info, target); |
8401 Handle<SharedFunctionInfo> target_shared(target->shared()); | 8401 Handle<SharedFunctionInfo> target_shared(target->shared()); |
8402 | 8402 |
8403 if (inlining_kind != CONSTRUCT_CALL_RETURN && | 8403 if (inlining_kind != CONSTRUCT_CALL_RETURN && |
8404 IsClassConstructor(target_shared->kind())) { | 8404 IsClassConstructor(target_shared->kind())) { |
8405 TraceInline(target, caller, "target is classConstructor"); | 8405 TraceInline(target, caller, "target is classConstructor"); |
8406 return false; | 8406 return false; |
8407 } | 8407 } |
8408 | 8408 |
8409 if (target_shared->HasDebugInfo()) { | 8409 if (target_shared->HasDebugInfo()) { |
8410 TraceInline(target, caller, "target is being debugged"); | 8410 TraceInline(target, caller, "target is being debugged"); |
(...skipping 5159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13570 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13570 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13571 } | 13571 } |
13572 | 13572 |
13573 #ifdef DEBUG | 13573 #ifdef DEBUG |
13574 graph_->Verify(false); // No full verify. | 13574 graph_->Verify(false); // No full verify. |
13575 #endif | 13575 #endif |
13576 } | 13576 } |
13577 | 13577 |
13578 } // namespace internal | 13578 } // namespace internal |
13579 } // namespace v8 | 13579 } // namespace v8 |
OLD | NEW |