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 8365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8376 } | 8376 } |
8377 | 8377 |
8378 // Parse and allocate variables. | 8378 // Parse and allocate variables. |
8379 // Use the same AstValueFactory for creating strings in the sub-compilation | 8379 // Use the same AstValueFactory for creating strings in the sub-compilation |
8380 // step, but don't transfer ownership to target_info. | 8380 // step, but don't transfer ownership to target_info. |
8381 ParseInfo parse_info(zone(), target); | 8381 ParseInfo parse_info(zone(), target); |
8382 parse_info.set_ast_value_factory( | 8382 parse_info.set_ast_value_factory( |
8383 top_info()->parse_info()->ast_value_factory()); | 8383 top_info()->parse_info()->ast_value_factory()); |
8384 parse_info.set_ast_value_factory_owned(false); | 8384 parse_info.set_ast_value_factory_owned(false); |
8385 | 8385 |
8386 CompilationInfo target_info(&parse_info); | 8386 CompilationInfo target_info(&parse_info, target); |
8387 Handle<SharedFunctionInfo> target_shared(target->shared()); | 8387 Handle<SharedFunctionInfo> target_shared(target->shared()); |
8388 | 8388 |
8389 if (inlining_kind != CONSTRUCT_CALL_RETURN && | 8389 if (inlining_kind != CONSTRUCT_CALL_RETURN && |
8390 IsClassConstructor(target_shared->kind())) { | 8390 IsClassConstructor(target_shared->kind())) { |
8391 TraceInline(target, caller, "target is classConstructor"); | 8391 TraceInline(target, caller, "target is classConstructor"); |
8392 return false; | 8392 return false; |
8393 } | 8393 } |
8394 | 8394 |
8395 if (target_shared->HasDebugInfo()) { | 8395 if (target_shared->HasDebugInfo()) { |
8396 TraceInline(target, caller, "target is being debugged"); | 8396 TraceInline(target, caller, "target is being debugged"); |
(...skipping 5159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13556 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13556 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13557 } | 13557 } |
13558 | 13558 |
13559 #ifdef DEBUG | 13559 #ifdef DEBUG |
13560 graph_->Verify(false); // No full verify. | 13560 graph_->Verify(false); // No full verify. |
13561 #endif | 13561 #endif |
13562 } | 13562 } |
13563 | 13563 |
13564 } // namespace internal | 13564 } // namespace internal |
13565 } // namespace v8 | 13565 } // namespace v8 |
OLD | NEW |