| 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 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3196 LookupPostInterceptor(holder, name, &lookup); | 3196 LookupPostInterceptor(holder, name, &lookup); |
| 3197 GenerateLoadInterceptor(receiver, holder, &lookup, a1, a0, a2, a3, t0, name, | 3197 GenerateLoadInterceptor(receiver, holder, &lookup, a1, a0, a2, a3, t0, name, |
| 3198 &miss); | 3198 &miss); |
| 3199 __ bind(&miss); | 3199 __ bind(&miss); |
| 3200 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 3200 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
| 3201 | 3201 |
| 3202 return GetCode(Code::INTERCEPTOR, name); | 3202 return GetCode(Code::INTERCEPTOR, name); |
| 3203 } | 3203 } |
| 3204 | 3204 |
| 3205 | 3205 |
| 3206 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype( | |
| 3207 Handle<String> name) { | |
| 3208 // ----------- S t a t e ------------- | |
| 3209 // -- ra : return address | |
| 3210 // -- a0 : key | |
| 3211 // -- a1 : receiver | |
| 3212 // ----------------------------------- | |
| 3213 Label miss; | |
| 3214 | |
| 3215 Counters* counters = masm()->isolate()->counters(); | |
| 3216 __ IncrementCounter(counters->keyed_load_function_prototype(), 1, a2, a3); | |
| 3217 | |
| 3218 // Check the name hasn't changed. | |
| 3219 __ Branch(&miss, ne, a0, Operand(name)); | |
| 3220 | |
| 3221 GenerateLoadFunctionPrototype(masm(), a1, a2, a3, &miss); | |
| 3222 __ bind(&miss); | |
| 3223 __ DecrementCounter(counters->keyed_load_function_prototype(), 1, a2, a3); | |
| 3224 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | |
| 3225 | |
| 3226 return GetCode(Code::CALLBACKS, name); | |
| 3227 } | |
| 3228 | |
| 3229 | |
| 3230 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( | 3206 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( |
| 3231 Handle<Map> receiver_map) { | 3207 Handle<Map> receiver_map) { |
| 3232 // ----------- S t a t e ------------- | 3208 // ----------- S t a t e ------------- |
| 3233 // -- ra : return address | 3209 // -- ra : return address |
| 3234 // -- a0 : key | 3210 // -- a0 : key |
| 3235 // -- a1 : receiver | 3211 // -- a1 : receiver |
| 3236 // ----------------------------------- | 3212 // ----------------------------------- |
| 3237 ElementsKind elements_kind = receiver_map->elements_kind(); | 3213 ElementsKind elements_kind = receiver_map->elements_kind(); |
| 3238 if (receiver_map->has_fast_elements() || | 3214 if (receiver_map->has_fast_elements() || |
| 3239 receiver_map->has_external_array_elements()) { | 3215 receiver_map->has_external_array_elements()) { |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4383 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4359 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
| 4384 } | 4360 } |
| 4385 } | 4361 } |
| 4386 | 4362 |
| 4387 | 4363 |
| 4388 #undef __ | 4364 #undef __ |
| 4389 | 4365 |
| 4390 } } // namespace v8::internal | 4366 } } // namespace v8::internal |
| 4391 | 4367 |
| 4392 #endif // V8_TARGET_ARCH_MIPS | 4368 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |