| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 6805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6816 | 6816 |
| 6817 // ---------------------------------------------------------------- | 6817 // ---------------------------------------------------------------- |
| 6818 // After this point, we've made a decision to inline this function (so | 6818 // After this point, we've made a decision to inline this function (so |
| 6819 // TryInline should always return true). | 6819 // TryInline should always return true). |
| 6820 | 6820 |
| 6821 // Save the pending call context and type feedback oracle. Set up new ones | 6821 // Save the pending call context and type feedback oracle. Set up new ones |
| 6822 // for the inlined function. | 6822 // for the inlined function. |
| 6823 ASSERT(target_shared->has_deoptimization_support()); | 6823 ASSERT(target_shared->has_deoptimization_support()); |
| 6824 TypeFeedbackOracle target_oracle( | 6824 TypeFeedbackOracle target_oracle( |
| 6825 Handle<Code>(target_shared->code()), | 6825 Handle<Code>(target_shared->code()), |
| 6826 Handle<Context>(target->context()->native_context()), | 6826 Handle<Context>(target->context()->global_context()), |
| 6827 isolate(), | 6827 isolate(), |
| 6828 zone()); | 6828 zone()); |
| 6829 // The function state is new-allocated because we need to delete it | 6829 // The function state is new-allocated because we need to delete it |
| 6830 // in two different places. | 6830 // in two different places. |
| 6831 FunctionState* target_state = new FunctionState( | 6831 FunctionState* target_state = new FunctionState( |
| 6832 this, &target_info, &target_oracle, inlining_kind); | 6832 this, &target_info, &target_oracle, inlining_kind); |
| 6833 | 6833 |
| 6834 HConstant* undefined = graph()->GetConstantUndefined(); | 6834 HConstant* undefined = graph()->GetConstantUndefined(); |
| 6835 HEnvironment* inner_env = | 6835 HEnvironment* inner_env = |
| 6836 environment()->CopyForInlining(target, | 6836 environment()->CopyForInlining(target, |
| (...skipping 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9697 } | 9697 } |
| 9698 } | 9698 } |
| 9699 | 9699 |
| 9700 #ifdef DEBUG | 9700 #ifdef DEBUG |
| 9701 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 9701 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 9702 if (allocator_ != NULL) allocator_->Verify(); | 9702 if (allocator_ != NULL) allocator_->Verify(); |
| 9703 #endif | 9703 #endif |
| 9704 } | 9704 } |
| 9705 | 9705 |
| 9706 } } // namespace v8::internal | 9706 } } // namespace v8::internal |
| OLD | NEW |