Chromium Code Reviews| 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 7207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7218 return false; | 7218 return false; |
| 7219 } | 7219 } |
| 7220 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { | 7220 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { |
| 7221 // The scope info might not have been set if a lazily compiled | 7221 // The scope info might not have been set if a lazily compiled |
| 7222 // function is inlined before being called for the first time. | 7222 // function is inlined before being called for the first time. |
| 7223 Handle<ScopeInfo> target_scope_info = | 7223 Handle<ScopeInfo> target_scope_info = |
| 7224 ScopeInfo::Create(target_info.scope(), zone()); | 7224 ScopeInfo::Create(target_info.scope(), zone()); |
| 7225 target_shared->set_scope_info(*target_scope_info); | 7225 target_shared->set_scope_info(*target_scope_info); |
| 7226 } | 7226 } |
| 7227 target_shared->EnableDeoptimizationSupport(*target_info.code()); | 7227 target_shared->EnableDeoptimizationSupport(*target_info.code()); |
| 7228 target_shared->set_feedback_vector(*(target_info.feedback_vector())); | |
|
Benedikt Meurer
2014/03/05 07:22:56
Nit: *target_info.feedback_vector()
mvstanton
2014/03/05 08:48:02
Done.
| |
| 7228 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, | 7229 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, |
| 7229 &target_info, | 7230 &target_info, |
| 7230 target_shared); | 7231 target_shared); |
| 7231 } | 7232 } |
| 7232 | 7233 |
| 7233 // ---------------------------------------------------------------- | 7234 // ---------------------------------------------------------------- |
| 7234 // After this point, we've made a decision to inline this function (so | 7235 // After this point, we've made a decision to inline this function (so |
| 7235 // TryInline should always return true). | 7236 // TryInline should always return true). |
| 7236 | 7237 |
| 7237 // Type-check the inlined function. | 7238 // Type-check the inlined function. |
| (...skipping 4060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11298 if (ShouldProduceTraceOutput()) { | 11299 if (ShouldProduceTraceOutput()) { |
| 11299 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11300 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 11300 } | 11301 } |
| 11301 | 11302 |
| 11302 #ifdef DEBUG | 11303 #ifdef DEBUG |
| 11303 graph_->Verify(false); // No full verify. | 11304 graph_->Verify(false); // No full verify. |
| 11304 #endif | 11305 #endif |
| 11305 } | 11306 } |
| 11306 | 11307 |
| 11307 } } // namespace v8::internal | 11308 } } // namespace v8::internal |
| OLD | NEW |