Revision: 5753
Author: [email protected]
Date: Tue Nov  2 04:56:10 2010
Log: Fix converting NULL to Failure bugs introduced in r5698.

Review URL: http://codereview.chromium.org/4293002
http://code.google.com/p/v8/source/detail?r=5753

Modified:
 /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc Mon Nov 1 02:16:39 2010 +++ /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc Tue Nov 2 04:56:10 2010
@@ -905,7 +905,7 @@
         MaybeObject* maybe_lookup_result = Heap::LookupSymbol(name);
Object* lookup_result = NULL; // Initialization to please compiler.
         if (!maybe_lookup_result->ToObject(&lookup_result)) {
-          set_failure(Failure::cast(lookup_result));
+          set_failure(Failure::cast(maybe_lookup_result));
           return reg;
         }
         name = String::cast(lookup_result);
@@ -1077,7 +1077,7 @@
   Object* result = NULL;  // Initialization to please compiler.
   { MaybeObject* try_call_result = masm()->TryCallStub(&stub);
     if (!try_call_result->ToObject(&result)) {
-      *failure = Failure::cast(result);
+      *failure = Failure::cast(try_call_result);
       return false;
     }
   }

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

Reply via email to