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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 6606002: Merge revision 6500-6600 from bleeding_edge to the isolates branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 // -- r2 : name 2650 // -- r2 : name
2651 // -- lr : return address 2651 // -- lr : return address
2652 // ----------------------------------- 2652 // -----------------------------------
2653 Label miss; 2653 Label miss;
2654 2654
2655 // Check that the map of the global has not changed. 2655 // Check that the map of the global has not changed.
2656 __ ldr(r3, FieldMemOperand(r1, HeapObject::kMapOffset)); 2656 __ ldr(r3, FieldMemOperand(r1, HeapObject::kMapOffset));
2657 __ cmp(r3, Operand(Handle<Map>(object->map()))); 2657 __ cmp(r3, Operand(Handle<Map>(object->map())));
2658 __ b(ne, &miss); 2658 __ b(ne, &miss);
2659 2659
2660 // Check that the value in the cell is not the hole. If it is, this
2661 // cell could have been deleted and reintroducing the global needs
2662 // to update the property details in the property dictionary of the
2663 // global object. We bail out to the runtime system to do that.
2664 __ mov(r4, Operand(Handle<JSGlobalPropertyCell>(cell)));
2665 __ LoadRoot(r5, Heap::kTheHoleValueRootIndex);
2666 __ ldr(r6, FieldMemOperand(r4, JSGlobalPropertyCell::kValueOffset));
2667 __ cmp(r5, r6);
2668 __ b(eq, &miss);
2669
2660 // Store the value in the cell. 2670 // Store the value in the cell.
2661 __ mov(r2, Operand(Handle<JSGlobalPropertyCell>(cell))); 2671 __ str(r0, FieldMemOperand(r4, JSGlobalPropertyCell::kValueOffset));
2662 __ str(r0, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset));
2663 2672
2664 __ IncrementCounter(COUNTERS->named_store_global_inline(), 1, r4, r3); 2673 __ IncrementCounter(COUNTERS->named_store_global_inline(), 1, r4, r3);
2665 __ Ret(); 2674 __ Ret();
2666 2675
2667 // Handle store cache miss. 2676 // Handle store cache miss.
2668 __ bind(&miss); 2677 __ bind(&miss);
2669 __ IncrementCounter(COUNTERS->named_store_global_inline_miss(), 1, r4, r3); 2678 __ IncrementCounter(COUNTERS->named_store_global_inline_miss(), 1, r4, r3);
2670 Handle<Code> ic(Isolate::Current()->builtins()->builtin( 2679 Handle<Code> ic(Isolate::Current()->builtins()->builtin(
2671 Builtins::StoreIC_Miss)); 2680 Builtins::StoreIC_Miss));
2672 __ Jump(ic, RelocInfo::CODE_TARGET); 2681 __ Jump(ic, RelocInfo::CODE_TARGET);
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
3937 3946
3938 return GetCode(flags); 3947 return GetCode(flags);
3939 } 3948 }
3940 3949
3941 3950
3942 #undef __ 3951 #undef __
3943 3952
3944 } } // namespace v8::internal 3953 } } // namespace v8::internal
3945 3954
3946 #endif // V8_TARGET_ARCH_ARM 3955 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm/virtual-frame-arm.cc » ('j') | src/ast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698