| 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::Run(&target_info); | 8338 AstTyper(&target_info).Run(); |
| 8339 | 8339 |
| 8340 int inlining_id = 0; | 8340 int inlining_id = 0; |
| 8341 if (top_info()->is_tracking_positions()) { | 8341 if (top_info()->is_tracking_positions()) { |
| 8342 inlining_id = top_info()->TraceInlinedFunction( | 8342 inlining_id = top_info()->TraceInlinedFunction( |
| 8343 target_shared, source_position(), function_state()->inlining_id()); | 8343 target_shared, source_position(), function_state()->inlining_id()); |
| 8344 } | 8344 } |
| 8345 | 8345 |
| 8346 // Save the pending call context. Set up new one for the inlined function. | 8346 // 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 | 8347 // The function state is new-allocated because we need to delete it |
| 8348 // in two different places. | 8348 // in two different places. |
| (...skipping 5086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13435 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13435 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13436 } | 13436 } |
| 13437 | 13437 |
| 13438 #ifdef DEBUG | 13438 #ifdef DEBUG |
| 13439 graph_->Verify(false); // No full verify. | 13439 graph_->Verify(false); // No full verify. |
| 13440 #endif | 13440 #endif |
| 13441 } | 13441 } |
| 13442 | 13442 |
| 13443 } // namespace internal | 13443 } // namespace internal |
| 13444 } // namespace v8 | 13444 } // namespace v8 |
| OLD | NEW |