| 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 3014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3025 | 3025 |
| 3026 | 3026 |
| 3027 Handle<Code> LoadStubCompiler::CompileLoadGlobal( | 3027 Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
| 3028 Handle<JSObject> object, | 3028 Handle<JSObject> object, |
| 3029 Handle<GlobalObject> global, | 3029 Handle<GlobalObject> global, |
| 3030 Handle<PropertyCell> cell, | 3030 Handle<PropertyCell> cell, |
| 3031 Handle<Name> name, | 3031 Handle<Name> name, |
| 3032 bool is_dont_delete) { | 3032 bool is_dont_delete) { |
| 3033 Label success, miss; | 3033 Label success, miss; |
| 3034 | 3034 |
| 3035 __ CheckMap( | 3035 HandlerFrontendHeader(object, receiver(), global, name, &miss); |
| 3036 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); | |
| 3037 HandlerFrontendHeader( | |
| 3038 object, receiver(), Handle<JSObject>::cast(global), name, &miss); | |
| 3039 | 3036 |
| 3040 // Get the value from the cell. | 3037 // Get the value from the cell. |
| 3041 __ li(a3, Operand(cell)); | 3038 __ li(a3, Operand(cell)); |
| 3042 __ lw(t0, FieldMemOperand(a3, Cell::kValueOffset)); | 3039 __ lw(t0, FieldMemOperand(a3, Cell::kValueOffset)); |
| 3043 | 3040 |
| 3044 // Check for deleted property if property can actually be deleted. | 3041 // Check for deleted property if property can actually be deleted. |
| 3045 if (!is_dont_delete) { | 3042 if (!is_dont_delete) { |
| 3046 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 3043 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
| 3047 __ Branch(&miss, eq, t0, Operand(at)); | 3044 __ Branch(&miss, eq, t0, Operand(at)); |
| 3048 } | 3045 } |
| 3049 | 3046 |
| 3050 HandlerFrontendFooter(name, &success, &miss); | 3047 HandlerFrontendFooter(name, &success, &miss); |
| 3051 __ bind(&success); | 3048 __ bind(&success); |
| 3052 | 3049 |
| 3053 Counters* counters = isolate()->counters(); | 3050 Counters* counters = isolate()->counters(); |
| 3054 __ IncrementCounter(counters->named_load_global_stub(), 1, a1, a3); | 3051 __ IncrementCounter(counters->named_load_global_stub(), 1, a1, a3); |
| 3055 __ Ret(USE_DELAY_SLOT); | 3052 __ Ret(USE_DELAY_SLOT); |
| 3056 __ mov(v0, t0); | 3053 __ mov(v0, t0); |
| 3057 | 3054 |
| 3058 // Return the generated code. | 3055 // Return the generated code. |
| 3059 return GetICCode(kind(), Code::NORMAL, name); | 3056 return GetCode(kind(), Code::NORMAL, name); |
| 3060 } | 3057 } |
| 3061 | 3058 |
| 3062 | 3059 |
| 3063 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( | 3060 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( |
| 3064 MapHandleList* receiver_maps, | 3061 MapHandleList* receiver_maps, |
| 3065 CodeHandleList* handlers, | 3062 CodeHandleList* handlers, |
| 3066 Handle<Name> name, | 3063 Handle<Name> name, |
| 3067 Code::StubType type, | 3064 Code::StubType type, |
| 3068 IcCheckType check) { | 3065 IcCheckType check) { |
| 3069 Label miss; | 3066 Label miss; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3174 // ----------------------------------- | 3171 // ----------------------------------- |
| 3175 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3172 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
| 3176 } | 3173 } |
| 3177 | 3174 |
| 3178 | 3175 |
| 3179 #undef __ | 3176 #undef __ |
| 3180 | 3177 |
| 3181 } } // namespace v8::internal | 3178 } } // namespace v8::internal |
| 3182 | 3179 |
| 3183 #endif // V8_TARGET_ARCH_MIPS | 3180 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |