| 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 2902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2913 | 2913 |
| 2914 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2914 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2915 DCHECK(ToRegister(instr->context()).is(cp)); | 2915 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2916 DCHECK(ToRegister(instr->global_object()) | 2916 DCHECK(ToRegister(instr->global_object()) |
| 2917 .is(LoadDescriptor::ReceiverRegister())); | 2917 .is(LoadDescriptor::ReceiverRegister())); |
| 2918 DCHECK(ToRegister(instr->result()).is(v0)); | 2918 DCHECK(ToRegister(instr->result()).is(v0)); |
| 2919 | 2919 |
| 2920 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); | 2920 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); |
| 2921 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2921 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
| 2922 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; | 2922 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
| 2923 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, | 2923 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, |
| 2924 PREMONOMORPHIC).code(); | 2924 PREMONOMORPHIC).code(); |
| 2925 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2925 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2926 } | 2926 } |
| 2927 | 2927 |
| 2928 | 2928 |
| 2929 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2929 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2930 Register context = ToRegister(instr->context()); | 2930 Register context = ToRegister(instr->context()); |
| 2931 Register result = ToRegister(instr->result()); | 2931 Register result = ToRegister(instr->result()); |
| 2932 | 2932 |
| 2933 __ lw(result, ContextOperand(context, instr->slot_index())); | 2933 __ lw(result, ContextOperand(context, instr->slot_index())); |
| (...skipping 3123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6057 __ Push(at, ToRegister(instr->function())); | 6057 __ Push(at, ToRegister(instr->function())); |
| 6058 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6058 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6059 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6059 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6060 } | 6060 } |
| 6061 | 6061 |
| 6062 | 6062 |
| 6063 #undef __ | 6063 #undef __ |
| 6064 | 6064 |
| 6065 } // namespace internal | 6065 } // namespace internal |
| 6066 } // namespace v8 | 6066 } // namespace v8 |
| OLD | NEW |