Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: src/arm/ic-arm.cc

Issue 549132: Bring a fix for v8 bug 589 and Chromium bug 27967 to 1.3.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.3/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/ic-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // Check that the key is a smi. 559 // Check that the key is a smi.
560 __ tst(r0, Operand(kSmiTagMask)); 560 __ tst(r0, Operand(kSmiTagMask));
561 __ b(ne, &slow); 561 __ b(ne, &slow);
562 __ mov(r0, Operand(r0, ASR, kSmiTagSize)); 562 __ mov(r0, Operand(r0, ASR, kSmiTagSize));
563 // Check that the object isn't a smi. 563 // Check that the object isn't a smi.
564 __ tst(r1, Operand(kSmiTagMask)); 564 __ tst(r1, Operand(kSmiTagMask));
565 __ b(eq, &slow); 565 __ b(eq, &slow);
566 566
567 // Get the map of the receiver. 567 // Get the map of the receiver.
568 __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset)); 568 __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset));
569 // Check that the receiver does not require access checks. We need 569
570 // to check this explicitly since this generic stub does not perform 570 // Check bit field.
571 // map checks.
572 __ ldrb(r3, FieldMemOperand(r2, Map::kBitFieldOffset)); 571 __ ldrb(r3, FieldMemOperand(r2, Map::kBitFieldOffset));
573 __ tst(r3, Operand(1 << Map::kIsAccessCheckNeeded)); 572 __ tst(r3, Operand(kSlowCaseBitFieldMask));
574 __ b(ne, &slow); 573 __ b(ne, &slow);
575 // Check that the object is some kind of JS object EXCEPT JS Value type. 574 // Check that the object is some kind of JS object EXCEPT JS Value type.
576 // In the case that the object is a value-wrapper object, 575 // In the case that the object is a value-wrapper object,
577 // we enter the runtime system to make sure that indexing into string 576 // we enter the runtime system to make sure that indexing into string
578 // objects work as intended. 577 // objects work as intended.
579 ASSERT(JS_OBJECT_TYPE > JS_VALUE_TYPE); 578 ASSERT(JS_OBJECT_TYPE > JS_VALUE_TYPE);
580 __ ldrb(r2, FieldMemOperand(r2, Map::kInstanceTypeOffset)); 579 __ ldrb(r2, FieldMemOperand(r2, Map::kInstanceTypeOffset));
581 __ cmp(r2, Operand(JS_OBJECT_TYPE)); 580 __ cmp(r2, Operand(JS_OBJECT_TYPE));
582 __ b(lt, &slow); 581 __ b(lt, &slow);
583 582
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 828
830 // Perform tail call to the entry. 829 // Perform tail call to the entry.
831 __ TailCallRuntime(f, 3, 1); 830 __ TailCallRuntime(f, 3, 1);
832 } 831 }
833 832
834 833
835 #undef __ 834 #undef __
836 835
837 836
838 } } // namespace v8::internal 837 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698