From 8a35e9ce475b10bc4d9c0ae74a6ec112289be7df Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Wed, 25 Jun 2014 12:12:21 +0000 Subject: [PATCH] Drop obsolete dont_optimize compiler hint. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/354813003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22009 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 2 +- src/objects-inl.h | 2 -- src/objects.h | 6 +----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index d4ea580..df1f7a0 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -7569,7 +7569,7 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle target) { TraceInline(target, caller, "target not inlineable"); return kNotInlinable; } - if (target_shared->dont_inline() || target_shared->dont_optimize()) { + if (target_shared->dont_inline()) { TraceInline(target, caller, "target contains unsupported syntax [early]"); return kNotInlinable; } diff --git a/src/objects-inl.h b/src/objects-inl.h index a56792c..eeec572 100644 --- a/src/objects-inl.h +++ b/src/objects-inl.h @@ -5447,8 +5447,6 @@ BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) -BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, - kDontOptimize) BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) diff --git a/src/objects.h b/src/objects.h index 259f60d..cf38eab 100644 --- a/src/objects.h +++ b/src/objects.h @@ -7223,9 +7223,6 @@ class SharedFunctionInfo: public HeapObject { // Is this a function or top-level/eval code. DECL_BOOLEAN_ACCESSORS(is_function) - // Indicates that the function cannot be optimized. - DECL_BOOLEAN_ACCESSORS(dont_optimize) - // Indicates that the function cannot be inlined. DECL_BOOLEAN_ACCESSORS(dont_inline) @@ -7292,7 +7289,7 @@ class SharedFunctionInfo: public HeapObject { void set_dont_optimize_reason(BailoutReason reason) { set_bailout_reason(reason); - set_dont_optimize(reason != kNoReason); + set_dont_inline(reason != kNoReason); } // Check whether or not this function is inlineable. @@ -7437,7 +7434,6 @@ class SharedFunctionInfo: public HeapObject { kIsAnonymous, kNameShouldPrintAsAnonymous, kIsFunction, - kDontOptimize, kDontInline, kDontCache, kDontFlush, -- 2.7.4