OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 7188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7199 return false; | 7199 return false; |
7200 } | 7200 } |
7201 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { | 7201 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { |
7202 // The scope info might not have been set if a lazily compiled | 7202 // The scope info might not have been set if a lazily compiled |
7203 // function is inlined before being called for the first time. | 7203 // function is inlined before being called for the first time. |
7204 Handle<ScopeInfo> target_scope_info = | 7204 Handle<ScopeInfo> target_scope_info = |
7205 ScopeInfo::Create(target_info.scope(), zone()); | 7205 ScopeInfo::Create(target_info.scope(), zone()); |
7206 target_shared->set_scope_info(*target_scope_info); | 7206 target_shared->set_scope_info(*target_scope_info); |
7207 } | 7207 } |
7208 target_shared->EnableDeoptimizationSupport(*target_info.code()); | 7208 target_shared->EnableDeoptimizationSupport(*target_info.code()); |
| 7209 target_shared->set_feedback_vector(*target_info.feedback_vector()); |
7209 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, | 7210 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, |
7210 &target_info, | 7211 &target_info, |
7211 target_shared); | 7212 target_shared); |
7212 } | 7213 } |
7213 | 7214 |
7214 // ---------------------------------------------------------------- | 7215 // ---------------------------------------------------------------- |
7215 // After this point, we've made a decision to inline this function (so | 7216 // After this point, we've made a decision to inline this function (so |
7216 // TryInline should always return true). | 7217 // TryInline should always return true). |
7217 | 7218 |
7218 // Type-check the inlined function. | 7219 // Type-check the inlined function. |
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11285 if (ShouldProduceTraceOutput()) { | 11286 if (ShouldProduceTraceOutput()) { |
11286 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11287 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
11287 } | 11288 } |
11288 | 11289 |
11289 #ifdef DEBUG | 11290 #ifdef DEBUG |
11290 graph_->Verify(false); // No full verify. | 11291 graph_->Verify(false); // No full verify. |
11291 #endif | 11292 #endif |
11292 } | 11293 } |
11293 | 11294 |
11294 } } // namespace v8::internal | 11295 } } // namespace v8::internal |
OLD | NEW |