Revision: 19592
Author:   [email protected]
Date:     Fri Feb 28 08:45:07 2014 UTC
Log:      Removed bogus ASSERT.

LOG=y
BUG=347542
[email protected]

Review URL: https://codereview.chromium.org/183763007
http://code.google.com/p/v8/source/detail?r=19592

Added:
 /branches/bleeding_edge/test/mjsunit/regress/regress-347542.js
Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-347542.js Fri Feb 28 08:45:07 2014 UTC
@@ -0,0 +1,11 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax
+
+function foo() {}
+foo();
+%OptimizeFunctionOnNextCall(foo);
+foo();
+%NeverOptimizeFunction(foo);
=======================================
--- /branches/bleeding_edge/src/runtime.cc      Thu Feb 27 16:49:55 2014 UTC
+++ /branches/bleeding_edge/src/runtime.cc      Fri Feb 28 08:45:07 2014 UTC
@@ -8620,7 +8620,6 @@
   HandleScope scope(isolate);
   ASSERT(args.length() == 1);
   CONVERT_ARG_CHECKED(JSFunction, function, 0);
-  ASSERT(!function->IsOptimized());
   function->shared()->set_optimization_disabled(true);
   return isolate->heap()->undefined_value();
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to