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

Unified Diff: runtime/vm/object.cc

Issue 293403009: Remove unused code, improve speed of Parser::CurrentToken (improvement seen in measurements and pro… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 36705)
+++ runtime/vm/object.cc (working copy)
@@ -4953,18 +4953,8 @@
void Function::SwitchToUnoptimizedCode() const {
ASSERT(HasOptimizedCode());
-
const Code& current_code = Code::Handle(CurrentCode());
- // Optimized code object might have been actually fully produced by the
- // intrinsifier in this case nothing has to be done. In fact an attempt to
- // patch such code will cause crash.
- // TODO(vegorov): if intrisifier can fully intrinsify the function then we
- // should not later try to optimize it.
- if (PcDescriptors::Handle(current_code.pc_descriptors()).Length() == 0) {
- return;
- }
-
if (FLAG_trace_disabling_optimized_code) {
OS::Print("Disabling optimized code: '%s' entry: %#" Px "\n",
ToFullyQualifiedCString(),
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.h » ('j') | runtime/vm/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698