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

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

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 9 years, 6 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 | « src/arm/macro-assembler-arm.cc ('k') | src/bootstrapper.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Bail out if the receiver has a named interceptor or requires access checks. 115 // Bail out if the receiver has a named interceptor or requires access checks.
116 Register map = scratch1; 116 Register map = scratch1;
117 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); 117 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset));
118 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); 118 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset));
119 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); 119 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask));
120 __ b(ne, miss_label); 120 __ b(ne, miss_label);
121 121
122 // Check that receiver is a JSObject. 122 // Check that receiver is a JSObject.
123 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); 123 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset));
124 __ cmp(scratch0, Operand(FIRST_JS_OBJECT_TYPE)); 124 __ cmp(scratch0, Operand(FIRST_SPEC_OBJECT_TYPE));
125 __ b(lt, miss_label); 125 __ b(lt, miss_label);
126 126
127 // Load properties array. 127 // Load properties array.
128 Register properties = scratch0; 128 Register properties = scratch0;
129 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); 129 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset));
130 // Check that the properties array is a dictionary. 130 // Check that the properties array is a dictionary.
131 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); 131 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset));
132 Register tmp = properties; 132 Register tmp = properties;
133 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); 133 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex);
134 __ cmp(map, tmp); 134 __ cmp(map, tmp);
(...skipping 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after
4233 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); 4233 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric();
4234 __ Jump(ic, RelocInfo::CODE_TARGET); 4234 __ Jump(ic, RelocInfo::CODE_TARGET);
4235 } 4235 }
4236 4236
4237 4237
4238 #undef __ 4238 #undef __
4239 4239
4240 } } // namespace v8::internal 4240 } } // namespace v8::internal
4241 4241
4242 #endif // V8_TARGET_ARCH_ARM 4242 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698