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 3189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3200 LookupPostInterceptor(holder, name, &lookup); | 3200 LookupPostInterceptor(holder, name, &lookup); |
3201 GenerateLoadInterceptor(receiver, holder, &lookup, r1, r0, r2, r3, r4, name, | 3201 GenerateLoadInterceptor(receiver, holder, &lookup, r1, r0, r2, r3, r4, name, |
3202 &miss); | 3202 &miss); |
3203 __ bind(&miss); | 3203 __ bind(&miss); |
3204 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 3204 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
3205 | 3205 |
3206 return GetCode(Code::INTERCEPTOR, name); | 3206 return GetCode(Code::INTERCEPTOR, name); |
3207 } | 3207 } |
3208 | 3208 |
3209 | 3209 |
3210 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype( | |
3211 Handle<String> name) { | |
3212 // ----------- S t a t e ------------- | |
3213 // -- lr : return address | |
3214 // -- r0 : key | |
3215 // -- r1 : receiver | |
3216 // ----------------------------------- | |
3217 Label miss; | |
3218 | |
3219 Counters* counters = masm()->isolate()->counters(); | |
3220 __ IncrementCounter(counters->keyed_load_function_prototype(), 1, r2, r3); | |
3221 | |
3222 // Check the name hasn't changed. | |
3223 __ cmp(r0, Operand(name)); | |
3224 __ b(ne, &miss); | |
3225 | |
3226 GenerateLoadFunctionPrototype(masm(), r1, r2, r3, &miss); | |
3227 __ bind(&miss); | |
3228 __ DecrementCounter(counters->keyed_load_function_prototype(), 1, r2, r3); | |
3229 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | |
3230 | |
3231 return GetCode(Code::CALLBACKS, name); | |
3232 } | |
3233 | |
3234 | |
3235 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( | 3210 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( |
3236 Handle<Map> receiver_map) { | 3211 Handle<Map> receiver_map) { |
3237 // ----------- S t a t e ------------- | 3212 // ----------- S t a t e ------------- |
3238 // -- lr : return address | 3213 // -- lr : return address |
3239 // -- r0 : key | 3214 // -- r0 : key |
3240 // -- r1 : receiver | 3215 // -- r1 : receiver |
3241 // ----------------------------------- | 3216 // ----------------------------------- |
3242 ElementsKind elements_kind = receiver_map->elements_kind(); | 3217 ElementsKind elements_kind = receiver_map->elements_kind(); |
3243 if (receiver_map->has_fast_elements() || | 3218 if (receiver_map->has_fast_elements() || |
3244 receiver_map->has_external_array_elements()) { | 3219 receiver_map->has_external_array_elements()) { |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4329 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4304 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4330 } | 4305 } |
4331 } | 4306 } |
4332 | 4307 |
4333 | 4308 |
4334 #undef __ | 4309 #undef __ |
4335 | 4310 |
4336 } } // namespace v8::internal | 4311 } } // namespace v8::internal |
4337 | 4312 |
4338 #endif // V8_TARGET_ARCH_ARM | 4313 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |