Fix thinko in IC code.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 3 Jul 2009 12:43:59 +0000 (12:43 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 3 Jul 2009 12:43:59 +0000 (12:43 +0000)
Review URL: http://codereview.chromium.org/149175

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2354 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/ic-arm.cc
src/ia32/ic-ia32.cc

index 7e4b5e4..07c767e 100644 (file)
@@ -72,9 +72,9 @@ static void GenerateDictionaryLoad(MacroAssembler* masm,
   // Jump to miss if the interceptor bit is set.
   __ b(ne, miss);
 
-  // Bail out if we have a JS global object.
+  // Bail out if we have a JS global proxy object.
   __ ldrb(r3, FieldMemOperand(t0, Map::kInstanceTypeOffset));
-  __ cmp(r3, Operand(JS_GLOBAL_OBJECT_TYPE));
+  __ cmp(r3, Operand(JS_GLOBAL_PROXY_TYPE));
   __ b(eq, miss);
 
   // Check that the properties array is a dictionary.
index 1d899ca..97de4da 100644 (file)
@@ -70,7 +70,7 @@ static void GenerateDictionaryLoad(MacroAssembler* masm, Label* miss_label,
   // Jump to miss if the interceptor bit is set.
   __ j(not_zero, miss_label, not_taken);
 
-  // Bail out if we have a JS global object.
+  // Bail out if we have a JS global proxy object.
   __ movzx_b(r0, FieldOperand(r0, Map::kInstanceTypeOffset));
   __ cmp(r0, JS_GLOBAL_PROXY_TYPE);
   __ j(equal, miss_label, not_taken);