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

Side by Side Diff: src/hydrogen.cc

Issue 178463007: Moved type feedback vector to SharedFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 9 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 7192 matching lines...) Expand 10 before | Expand all | Expand 10 after
7203 return false; 7203 return false;
7204 } 7204 }
7205 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) { 7205 if (target_shared->scope_info() == ScopeInfo::Empty(isolate())) {
7206 // The scope info might not have been set if a lazily compiled 7206 // The scope info might not have been set if a lazily compiled
7207 // function is inlined before being called for the first time. 7207 // function is inlined before being called for the first time.
7208 Handle<ScopeInfo> target_scope_info = 7208 Handle<ScopeInfo> target_scope_info =
7209 ScopeInfo::Create(target_info.scope(), zone()); 7209 ScopeInfo::Create(target_info.scope(), zone());
7210 target_shared->set_scope_info(*target_scope_info); 7210 target_shared->set_scope_info(*target_scope_info);
7211 } 7211 }
7212 target_shared->EnableDeoptimizationSupport(*target_info.code()); 7212 target_shared->EnableDeoptimizationSupport(*target_info.code());
7213 target_shared->set_feedback_vector(*target_info.feedback_vector());
7213 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG, 7214 Compiler::RecordFunctionCompilation(Logger::FUNCTION_TAG,
7214 &target_info, 7215 &target_info,
7215 target_shared); 7216 target_shared);
7216 } 7217 }
7217 7218
7218 // ---------------------------------------------------------------- 7219 // ----------------------------------------------------------------
7219 // After this point, we've made a decision to inline this function (so 7220 // After this point, we've made a decision to inline this function (so
7220 // TryInline should always return true). 7221 // TryInline should always return true).
7221 7222
7222 // Type-check the inlined function. 7223 // Type-check the inlined function.
(...skipping 4072 matching lines...) Expand 10 before | Expand all | Expand 10 after
11295 if (ShouldProduceTraceOutput()) { 11296 if (ShouldProduceTraceOutput()) {
11296 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11297 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11297 } 11298 }
11298 11299
11299 #ifdef DEBUG 11300 #ifdef DEBUG
11300 graph_->Verify(false); // No full verify. 11301 graph_->Verify(false); // No full verify.
11301 #endif 11302 #endif
11302 } 11303 }
11303 11304
11304 } } // namespace v8::internal 11305 } } // 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