| 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/hydrogen.h" | 5 #include "src/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-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 8317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8328 "too few arguments passed to a strong function"); | 8328 "too few arguments passed to a strong function"); |
| 8329 return false; | 8329 return false; |
| 8330 } | 8330 } |
| 8331 | 8331 |
| 8332 // ---------------------------------------------------------------- | 8332 // ---------------------------------------------------------------- |
| 8333 // After this point, we've made a decision to inline this function (so | 8333 // After this point, we've made a decision to inline this function (so |
| 8334 // TryInline should always return true). | 8334 // TryInline should always return true). |
| 8335 | 8335 |
| 8336 // Type-check the inlined function. | 8336 // Type-check the inlined function. |
| 8337 DCHECK(target_shared->has_deoptimization_support()); | 8337 DCHECK(target_shared->has_deoptimization_support()); |
| 8338 AstTyper(&target_info).Run(); | 8338 AstTyper(target_info.isolate(), target_info.zone(), target_info.closure(), |
| 8339 target_info.scope(), target_info.osr_ast_id(), target_info.literal()) |
| 8340 .Run(); |
| 8339 | 8341 |
| 8340 int inlining_id = 0; | 8342 int inlining_id = 0; |
| 8341 if (top_info()->is_tracking_positions()) { | 8343 if (top_info()->is_tracking_positions()) { |
| 8342 inlining_id = top_info()->TraceInlinedFunction( | 8344 inlining_id = top_info()->TraceInlinedFunction( |
| 8343 target_shared, source_position(), function_state()->inlining_id()); | 8345 target_shared, source_position(), function_state()->inlining_id()); |
| 8344 } | 8346 } |
| 8345 | 8347 |
| 8346 // Save the pending call context. Set up new one for the inlined function. | 8348 // Save the pending call context. Set up new one for the inlined function. |
| 8347 // The function state is new-allocated because we need to delete it | 8349 // The function state is new-allocated because we need to delete it |
| 8348 // in two different places. | 8350 // in two different places. |
| (...skipping 5106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13455 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13457 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13456 } | 13458 } |
| 13457 | 13459 |
| 13458 #ifdef DEBUG | 13460 #ifdef DEBUG |
| 13459 graph_->Verify(false); // No full verify. | 13461 graph_->Verify(false); // No full verify. |
| 13460 #endif | 13462 #endif |
| 13461 } | 13463 } |
| 13462 | 13464 |
| 13463 } // namespace internal | 13465 } // namespace internal |
| 13464 } // namespace v8 | 13466 } // namespace v8 |
| OLD | NEW |