| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3335 return MemOperand(scratch0(), base_offset); | 3335 return MemOperand(scratch0(), base_offset); |
| 3336 } | 3336 } |
| 3337 } | 3337 } |
| 3338 | 3338 |
| 3339 | 3339 |
| 3340 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3340 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
| 3341 DCHECK(ToRegister(instr->context()).is(cp)); | 3341 DCHECK(ToRegister(instr->context()).is(cp)); |
| 3342 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3342 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
| 3343 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3343 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
| 3344 | 3344 |
| 3345 if (instr->hydrogen()->HasVectorAndSlot()) { | 3345 if (FLAG_vector_ics) { |
| 3346 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3346 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
| 3347 } | 3347 } |
| 3348 | 3348 |
| 3349 Handle<Code> ic = | 3349 Handle<Code> ic = |
| 3350 CodeFactory::KeyedLoadICInOptimizedCode( | 3350 CodeFactory::KeyedLoadICInOptimizedCode( |
| 3351 isolate(), instr->hydrogen()->initialization_state()).code(); | 3351 isolate(), instr->hydrogen()->initialization_state()).code(); |
| 3352 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3352 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3353 } | 3353 } |
| 3354 | 3354 |
| 3355 | 3355 |
| (...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5981 __ li(at, scope_info); | 5981 __ li(at, scope_info); |
| 5982 __ Push(at, ToRegister(instr->function())); | 5982 __ Push(at, ToRegister(instr->function())); |
| 5983 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5983 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5984 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5984 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5985 } | 5985 } |
| 5986 | 5986 |
| 5987 | 5987 |
| 5988 #undef __ | 5988 #undef __ |
| 5989 | 5989 |
| 5990 } } // namespace v8::internal | 5990 } } // namespace v8::internal |
| OLD | NEW |