| 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 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 | 3013 |
| 3014 | 3014 |
| 3015 Handle<Code> LoadStubCompiler::CompileLoadGlobal( | 3015 Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
| 3016 Handle<JSObject> object, | 3016 Handle<JSObject> object, |
| 3017 Handle<GlobalObject> global, | 3017 Handle<GlobalObject> global, |
| 3018 Handle<PropertyCell> cell, | 3018 Handle<PropertyCell> cell, |
| 3019 Handle<Name> name, | 3019 Handle<Name> name, |
| 3020 bool is_dont_delete) { | 3020 bool is_dont_delete) { |
| 3021 Label success, miss; | 3021 Label success, miss; |
| 3022 | 3022 |
| 3023 __ CheckMap( | 3023 HandlerFrontendHeader(object, receiver(), global, name, &miss); |
| 3024 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); | |
| 3025 HandlerFrontendHeader( | |
| 3026 object, receiver(), Handle<JSObject>::cast(global), name, &miss); | |
| 3027 | 3024 |
| 3028 // Get the value from the cell. | 3025 // Get the value from the cell. |
| 3029 __ mov(r3, Operand(cell)); | 3026 __ mov(r3, Operand(cell)); |
| 3030 __ ldr(r4, FieldMemOperand(r3, Cell::kValueOffset)); | 3027 __ ldr(r4, FieldMemOperand(r3, Cell::kValueOffset)); |
| 3031 | 3028 |
| 3032 // Check for deleted property if property can actually be deleted. | 3029 // Check for deleted property if property can actually be deleted. |
| 3033 if (!is_dont_delete) { | 3030 if (!is_dont_delete) { |
| 3034 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); | 3031 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
| 3035 __ cmp(r4, ip); | 3032 __ cmp(r4, ip); |
| 3036 __ b(eq, &miss); | 3033 __ b(eq, &miss); |
| 3037 } | 3034 } |
| 3038 | 3035 |
| 3039 HandlerFrontendFooter(name, &success, &miss); | 3036 HandlerFrontendFooter(name, &success, &miss); |
| 3040 __ bind(&success); | 3037 __ bind(&success); |
| 3041 | 3038 |
| 3042 Counters* counters = isolate()->counters(); | 3039 Counters* counters = isolate()->counters(); |
| 3043 __ IncrementCounter(counters->named_load_global_stub(), 1, r1, r3); | 3040 __ IncrementCounter(counters->named_load_global_stub(), 1, r1, r3); |
| 3044 __ mov(r0, r4); | 3041 __ mov(r0, r4); |
| 3045 __ Ret(); | 3042 __ Ret(); |
| 3046 | 3043 |
| 3047 // Return the generated code. | 3044 // Return the generated code. |
| 3048 return GetICCode(kind(), Code::NORMAL, name); | 3045 return GetCode(kind(), Code::NORMAL, name); |
| 3049 } | 3046 } |
| 3050 | 3047 |
| 3051 | 3048 |
| 3052 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( | 3049 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( |
| 3053 MapHandleList* receiver_maps, | 3050 MapHandleList* receiver_maps, |
| 3054 CodeHandleList* handlers, | 3051 CodeHandleList* handlers, |
| 3055 Handle<Name> name, | 3052 Handle<Name> name, |
| 3056 Code::StubType type, | 3053 Code::StubType type, |
| 3057 IcCheckType check) { | 3054 IcCheckType check) { |
| 3058 Label miss; | 3055 Label miss; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3163 // ----------------------------------- | 3160 // ----------------------------------- |
| 3164 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3161 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
| 3165 } | 3162 } |
| 3166 | 3163 |
| 3167 | 3164 |
| 3168 #undef __ | 3165 #undef __ |
| 3169 | 3166 |
| 3170 } } // namespace v8::internal | 3167 } } // namespace v8::internal |
| 3171 | 3168 |
| 3172 #endif // V8_TARGET_ARCH_ARM | 3169 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |