Reviewers: Jakob,

Description:
Fix test failures.


[email protected]
BUG=


Please review this at https://chromiumcodereview.appspot.com/11299033/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/runtime.cc
  M test/mjsunit/fuzz-natives-part1.js


Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 323508a8aecad7b372f60e9a14853784e1a3dd50..825bd5be312a47e263cf6bd92afa1b363619dece 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -7995,6 +7995,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ParallelRecompile) {


 RUNTIME_FUNCTION(MaybeObject*, Runtime_ForceParallelRecompile) {
+  if (!V8::UseCrankshaft()) return isolate->heap()->undefined_value();
   HandleScope handle_scope(isolate);
ASSERT(FLAG_parallel_recompilation && FLAG_manual_parallel_recompilation);
   if (!isolate->optimizing_compiler_thread()->IsQueueAvailable()) {
@@ -8009,6 +8010,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ForceParallelRecompile) {


 RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) {
+  if (!V8::UseCrankshaft()) return isolate->heap()->undefined_value();
   HandleScope handle_scope(isolate);
ASSERT(FLAG_parallel_recompilation && FLAG_manual_parallel_recompilation);
   CONVERT_ARG_HANDLE_CHECKED(HeapObject, arg, 0);
Index: test/mjsunit/fuzz-natives-part1.js
diff --git a/test/mjsunit/fuzz-natives-part1.js b/test/mjsunit/fuzz-natives-part1.js index 6941d806cc4fc027b0cf52bbccb7ef9a2b216cd9..54869bb3a32a93744e51afbe840f67113a9b423b 100644
--- a/test/mjsunit/fuzz-natives-part1.js
+++ b/test/mjsunit/fuzz-natives-part1.js
@@ -195,7 +195,11 @@ var knownProblems = {

   // Only applicable to strings.
   "_HasCachedArrayIndex": true,
-  "_GetCachedArrayIndex": true
+  "_GetCachedArrayIndex": true,
+
+  // Only for debugging parallel recompilation.
+  "InstallRecompiledCode": true,
+  "ForceParallelRecompile": true
 };

 var currentlyUncallable = {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to