| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3073 | 3073 |
| 3074 | 3074 |
| 3075 Handle<Code> LoadStubCompiler::CompileLoadGlobal( | 3075 Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
| 3076 Handle<JSObject> object, | 3076 Handle<JSObject> object, |
| 3077 Handle<GlobalObject> global, | 3077 Handle<GlobalObject> global, |
| 3078 Handle<PropertyCell> cell, | 3078 Handle<PropertyCell> cell, |
| 3079 Handle<Name> name, | 3079 Handle<Name> name, |
| 3080 bool is_dont_delete) { | 3080 bool is_dont_delete) { |
| 3081 Label success, miss; | 3081 Label success, miss; |
| 3082 | 3082 |
| 3083 __ CheckMap( | 3083 HandlerFrontendHeader(object, receiver(), global, name, &miss); |
| 3084 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); | |
| 3085 HandlerFrontendHeader( | |
| 3086 object, receiver(), Handle<JSObject>::cast(global), name, &miss); | |
| 3087 | 3084 |
| 3088 // Get the value from the cell. | 3085 // Get the value from the cell. |
| 3089 __ Mov(x3, Operand(cell)); | 3086 __ Mov(x3, Operand(cell)); |
| 3090 __ Ldr(x4, FieldMemOperand(x3, Cell::kValueOffset)); | 3087 __ Ldr(x4, FieldMemOperand(x3, Cell::kValueOffset)); |
| 3091 | 3088 |
| 3092 // Check for deleted property if property can actually be deleted. | 3089 // Check for deleted property if property can actually be deleted. |
| 3093 if (!is_dont_delete) { | 3090 if (!is_dont_delete) { |
| 3094 __ JumpIfRoot(x4, Heap::kTheHoleValueRootIndex, &miss); | 3091 __ JumpIfRoot(x4, Heap::kTheHoleValueRootIndex, &miss); |
| 3095 } | 3092 } |
| 3096 | 3093 |
| 3097 HandlerFrontendFooter(name, &success, &miss); | 3094 HandlerFrontendFooter(name, &success, &miss); |
| 3098 __ Bind(&success); | 3095 __ Bind(&success); |
| 3099 | 3096 |
| 3100 Counters* counters = isolate()->counters(); | 3097 Counters* counters = isolate()->counters(); |
| 3101 __ IncrementCounter(counters->named_load_global_stub(), 1, x1, x3); | 3098 __ IncrementCounter(counters->named_load_global_stub(), 1, x1, x3); |
| 3102 __ Mov(x0, x4); | 3099 __ Mov(x0, x4); |
| 3103 __ Ret(); | 3100 __ Ret(); |
| 3104 | 3101 |
| 3105 // Return the generated code. | 3102 // Return the generated code. |
| 3106 return GetICCode(kind(), Code::NORMAL, name); | 3103 return GetCode(kind(), Code::NORMAL, name); |
| 3107 } | 3104 } |
| 3108 | 3105 |
| 3109 | 3106 |
| 3110 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( | 3107 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC( |
| 3111 MapHandleList* receiver_maps, | 3108 MapHandleList* receiver_maps, |
| 3112 CodeHandleList* handlers, | 3109 CodeHandleList* handlers, |
| 3113 Handle<Name> name, | 3110 Handle<Name> name, |
| 3114 Code::StubType type, | 3111 Code::StubType type, |
| 3115 IcCheckType check) { | 3112 IcCheckType check) { |
| 3116 Label miss; | 3113 Label miss; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3228 | 3225 |
| 3229 // Miss case, call the runtime. | 3226 // Miss case, call the runtime. |
| 3230 __ Bind(&miss_force_generic); | 3227 __ Bind(&miss_force_generic); |
| 3231 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3228 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
| 3232 } | 3229 } |
| 3233 | 3230 |
| 3234 | 3231 |
| 3235 } } // namespace v8::internal | 3232 } } // namespace v8::internal |
| 3236 | 3233 |
| 3237 #endif // V8_TARGET_ARCH_A64 | 3234 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |