| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 Register scratch1, | 1163 Register scratch1, |
| 1164 Register scratch2, | 1164 Register scratch2, |
| 1165 Register scratch3, | 1165 Register scratch3, |
| 1166 Handle<JSFunction> value, | 1166 Handle<JSFunction> value, |
| 1167 Handle<String> name, | 1167 Handle<String> name, |
| 1168 Label* miss) { | 1168 Label* miss) { |
| 1169 // Check that the receiver isn't a smi. | 1169 // Check that the receiver isn't a smi. |
| 1170 __ JumpIfSmi(receiver, miss, scratch1); | 1170 __ JumpIfSmi(receiver, miss, scratch1); |
| 1171 | 1171 |
| 1172 // Check that the maps haven't changed. | 1172 // Check that the maps haven't changed. |
| 1173 Register reg = | 1173 CheckPrototypes(object, receiver, holder, |
| 1174 CheckPrototypes(object, receiver, holder, | 1174 scratch1, scratch2, scratch3, name, miss); |
| 1175 scratch1, scratch2, scratch3, name, miss); | |
| 1176 | 1175 |
| 1177 // Return the constant value. | 1176 // Return the constant value. |
| 1178 __ LoadHeapObject(v0, value); | 1177 __ LoadHeapObject(v0, value); |
| 1179 __ Ret(); | 1178 __ Ret(); |
| 1180 } | 1179 } |
| 1181 | 1180 |
| 1182 | 1181 |
| 1183 void StubCompiler::GenerateLoadCallback(Handle<JSObject> object, | 1182 void StubCompiler::GenerateLoadCallback(Handle<JSObject> object, |
| 1184 Handle<JSObject> holder, | 1183 Handle<JSObject> holder, |
| 1185 Register receiver, | 1184 Register receiver, |
| (...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4223 Label miss_force_generic, transition_elements_kind, grow, slow; | 4222 Label miss_force_generic, transition_elements_kind, grow, slow; |
| 4224 Label finish_store, check_capacity; | 4223 Label finish_store, check_capacity; |
| 4225 | 4224 |
| 4226 Register value_reg = a0; | 4225 Register value_reg = a0; |
| 4227 Register key_reg = a1; | 4226 Register key_reg = a1; |
| 4228 Register receiver_reg = a2; | 4227 Register receiver_reg = a2; |
| 4229 Register scratch = t0; | 4228 Register scratch = t0; |
| 4230 Register elements_reg = a3; | 4229 Register elements_reg = a3; |
| 4231 Register length_reg = t1; | 4230 Register length_reg = t1; |
| 4232 Register scratch2 = t2; | 4231 Register scratch2 = t2; |
| 4233 Register scratch3 = t3; | |
| 4234 | 4232 |
| 4235 // This stub is meant to be tail-jumped to, the receiver must already | 4233 // This stub is meant to be tail-jumped to, the receiver must already |
| 4236 // have been verified by the caller to not be a smi. | 4234 // have been verified by the caller to not be a smi. |
| 4237 | 4235 |
| 4238 // Check that the key is a smi. | 4236 // Check that the key is a smi. |
| 4239 __ JumpIfNotSmi(key_reg, &miss_force_generic); | 4237 __ JumpIfNotSmi(key_reg, &miss_force_generic); |
| 4240 | 4238 |
| 4241 if (elements_kind == FAST_SMI_ONLY_ELEMENTS) { | 4239 if (elements_kind == FAST_SMI_ONLY_ELEMENTS) { |
| 4242 __ JumpIfNotSmi(value_reg, &transition_elements_kind); | 4240 __ JumpIfNotSmi(value_reg, &transition_elements_kind); |
| 4243 } | 4241 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4514 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4512 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
| 4515 } | 4513 } |
| 4516 } | 4514 } |
| 4517 | 4515 |
| 4518 | 4516 |
| 4519 #undef __ | 4517 #undef __ |
| 4520 | 4518 |
| 4521 } } // namespace v8::internal | 4519 } } // namespace v8::internal |
| 4522 | 4520 |
| 4523 #endif // V8_TARGET_ARCH_MIPS | 4521 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |