OLD | NEW |
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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 Register scratch1, | 1176 Register scratch1, |
1177 Register scratch2, | 1177 Register scratch2, |
1178 Register scratch3, | 1178 Register scratch3, |
1179 Object* value, | 1179 Object* value, |
1180 String* name, | 1180 String* name, |
1181 Label* miss) { | 1181 Label* miss) { |
1182 // Check that the receiver isn't a smi. | 1182 // Check that the receiver isn't a smi. |
1183 __ JumpIfSmi(receiver, miss); | 1183 __ JumpIfSmi(receiver, miss); |
1184 | 1184 |
1185 // Check that the maps haven't changed. | 1185 // Check that the maps haven't changed. |
1186 Register reg = | 1186 CheckPrototypes(object, receiver, holder, scratch1, scratch2, scratch3, name, |
1187 CheckPrototypes(object, receiver, holder, | 1187 miss); |
1188 scratch1, scratch2, scratch3, name, miss); | |
1189 | 1188 |
1190 // Return the constant value. | 1189 // Return the constant value. |
1191 __ mov(r0, Operand(Handle<Object>(value))); | 1190 __ mov(r0, Operand(Handle<Object>(value))); |
1192 __ Ret(); | 1191 __ Ret(); |
1193 } | 1192 } |
1194 | 1193 |
1195 | 1194 |
1196 MaybeObject* StubCompiler::GenerateLoadCallback(JSObject* object, | 1195 MaybeObject* StubCompiler::GenerateLoadCallback(JSObject* object, |
1197 JSObject* holder, | 1196 JSObject* holder, |
1198 Register receiver, | 1197 Register receiver, |
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4422 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 4421 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
4423 __ Jump(ic, RelocInfo::CODE_TARGET); | 4422 __ Jump(ic, RelocInfo::CODE_TARGET); |
4424 } | 4423 } |
4425 | 4424 |
4426 | 4425 |
4427 #undef __ | 4426 #undef __ |
4428 | 4427 |
4429 } } // namespace v8::internal | 4428 } } // namespace v8::internal |
4430 | 4429 |
4431 #endif // V8_TARGET_ARCH_ARM | 4430 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |