Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: src/hydrogen.cc

Issue 254623002: Simplify feedback vector creation and store in SharedFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7429 matching lines...) Expand 10 before | Expand all | Expand 10 after
7440 return false; 7440 return false;
7441 } 7441 }
7442 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { 7442 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) {
7443 // The scope info might not have been set if a lazily compiled 7443 // The scope info might not have been set if a lazily compiled
7444 // function is inlined before being called for the first time. 7444 // function is inlined before being called for the first time.
7445 Handle<ScopeInfo> target_scope_info = 7445 Handle<ScopeInfo> target_scope_info =
7446 ScopeInfo::Create(target_info.scope(), zone()); 7446 ScopeInfo::Create(target_info.scope(), zone());
7447 target_shared->set_scope_info(*target_scope_info); 7447 target_shared->set_scope_info(*target_scope_info);
7448 } 7448 }
7449 target_shared->EnableDeoptimizationSupport(*target_info.code()); 7449 target_shared->EnableDeoptimizationSupport(*target_info.code());
7450 target_shared->set_feedback_vector(*target_info.feedback_vector());
7450 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, 7451 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG,
7451 &target_info, 7452 &target_info,
7452 target_shared); 7453 target_shared);
7453 } 7454 }
7454 7455
7455 // ---------------------------------------------------------------- 7456 // ----------------------------------------------------------------
7456 // After this point, we've made a decision to inline this function (so 7457 // After this point, we've made a decision to inline this function (so
7457 // TryInline should always return true). 7458 // TryInline should always return true).
7458 7459
7459 // Type-check the inlined function. 7460 // Type-check the inlined function.
(...skipping 4318 matching lines...) Expand 10 before | Expand all | Expand 10 after
11778 if (ShouldProduceTraceOutput()) { 11779 if (ShouldProduceTraceOutput()) {
11779 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11780 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11780 } 11781 }
11781 11782
11782 #ifdef DEBUG 11783 #ifdef DEBUG
11783 graph_->Verify(false); // No full verify. 11784 graph_->Verify(false); // No full verify.
11784 #endif 11785 #endif
11785 } 11786 }
11786 11787
11787 } } // namespace v8::internal 11788 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698