| 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 2875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2886 | 2886 |
| 2887 template <class T> | 2887 template <class T> |
| 2888 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { | 2888 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { |
| 2889 DCHECK(FLAG_vector_ics); | 2889 DCHECK(FLAG_vector_ics); |
| 2890 Register vector = ToRegister(instr->temp_vector()); | 2890 Register vector = ToRegister(instr->temp_vector()); |
| 2891 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); | 2891 DCHECK(vector.is(VectorLoadICDescriptor::VectorRegister())); |
| 2892 __ li(vector, instr->hydrogen()->feedback_vector()); | 2892 __ li(vector, instr->hydrogen()->feedback_vector()); |
| 2893 // No need to allocate this register. | 2893 // No need to allocate this register. |
| 2894 DCHECK(VectorLoadICDescriptor::SlotRegister().is(a0)); | 2894 DCHECK(VectorLoadICDescriptor::SlotRegister().is(a0)); |
| 2895 __ li(VectorLoadICDescriptor::SlotRegister(), | 2895 __ li(VectorLoadICDescriptor::SlotRegister(), |
| 2896 Operand(Smi::FromInt(instr->hydrogen()->slot()))); | 2896 Operand(Smi::FromInt(instr->hydrogen()->slot().ToInt()))); |
| 2897 } | 2897 } |
| 2898 | 2898 |
| 2899 | 2899 |
| 2900 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2900 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2901 DCHECK(ToRegister(instr->context()).is(cp)); | 2901 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2902 DCHECK(ToRegister(instr->global_object()) | 2902 DCHECK(ToRegister(instr->global_object()) |
| 2903 .is(LoadDescriptor::ReceiverRegister())); | 2903 .is(LoadDescriptor::ReceiverRegister())); |
| 2904 DCHECK(ToRegister(instr->result()).is(v0)); | 2904 DCHECK(ToRegister(instr->result()).is(v0)); |
| 2905 | 2905 |
| 2906 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); | 2906 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); |
| (...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5925 __ li(at, scope_info); | 5925 __ li(at, scope_info); |
| 5926 __ Push(at, ToRegister(instr->function())); | 5926 __ Push(at, ToRegister(instr->function())); |
| 5927 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5927 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5928 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5928 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5929 } | 5929 } |
| 5930 | 5930 |
| 5931 | 5931 |
| 5932 #undef __ | 5932 #undef __ |
| 5933 | 5933 |
| 5934 } } // namespace v8::internal | 5934 } } // namespace v8::internal |
| OLD | NEW |