Revision: 5521
Author: [email protected]
Date: Fri Sep 24 02:35:19 2010
Log: Revert 5520 due to compilation failure.
http://code.google.com/p/v8/source/detail?r=5521

Modified:
 /branches/bleeding_edge/src/x64/full-codegen-x64.cc

=======================================
--- /branches/bleeding_edge/src/x64/full-codegen-x64.cc Fri Sep 24 01:34:52 2010 +++ /branches/bleeding_edge/src/x64/full-codegen-x64.cc Fri Sep 24 02:35:19 2010
@@ -375,10 +375,10 @@
     Label* materialize_false) const {
   NearLabel done;
   __ bind(materialize_true);
-  __ LoadRoot(result_register(), Heap::kTrueValueRootIndex);
+  __ Move(result_register(), Factory::true_value());
   __ jmp(&done);
   __ bind(materialize_false);
-  __ LoadRoot(result_register(), Heap::kFalseValueRootIndex);
+  __ Move(result_register(), Factory::false_value());
   __ bind(&done);
 }

@@ -388,10 +388,10 @@
     Label* materialize_false) const {
   NearLabel done;
   __ bind(materialize_true);
-  __ PushRoot(Heap::kTrueValueRootIndex);
+  __ Push(Factory::true_value());
   __ jmp(&done);
   __ bind(materialize_false);
-  __ PushRoot(Heap::kFalseValueRootIndex);
+  __ Push(Factory::false_value());
   __ bind(&done);
 }

@@ -2250,12 +2250,12 @@

   // Functions have class 'Function'.
   __ bind(&function);
-  __ LoadRoot(rax, Heap::kFunctionClassSymbolRootIndex);
+  __ Move(rax, Factory::function_class_symbol());
   __ jmp(&done);

   // Objects with a non-function constructor have class 'Object'.
   __ bind(&non_function_constructor);
-  __ LoadRoot(rax, Heap::kObjectSymbolRootIndex);
+  __ Move(rax, Factory::Object_symbol());
   __ jmp(&done);

   // Non-JS objects have class null.
@@ -2710,10 +2710,10 @@
   __ cmpq(tmp, FieldOperand(right, JSRegExp::kDataOffset));
   __ j(equal, &ok);
   __ bind(&fail);
-  __ LoadRoot(rax, Heap::kFalseValueRootIndex);
+  __ Move(rax, Factory::false_value());
   __ jmp(&done);
   __ bind(&ok);
-  __ LoadRoot(rax, Heap::kTrueValueRootIndex);
+  __ Move(rax, Factory::true_value());
   __ bind(&done);

   context()->Plug(rax);

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

Reply via email to