| 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 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2505 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2505 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
| 2506 __ li(vector_register, vector); | 2506 __ li(vector_register, vector); |
| 2507 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2507 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
| 2508 int index = vector->GetIndex(slot); | 2508 int index = vector->GetIndex(slot); |
| 2509 __ li(slot_register, Operand(Smi::FromInt(index))); | 2509 __ li(slot_register, Operand(Smi::FromInt(index))); |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 | 2512 |
| 2513 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2513 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2514 DCHECK(ToRegister(instr->context()).is(cp)); | 2514 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2515 DCHECK(ToRegister(instr->global_object()) | |
| 2516 .is(LoadDescriptor::ReceiverRegister())); | |
| 2517 DCHECK(ToRegister(instr->result()).is(v0)); | 2515 DCHECK(ToRegister(instr->result()).is(v0)); |
| 2518 | 2516 |
| 2519 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
| 2520 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2517 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
| 2521 Handle<Code> ic = | 2518 Handle<Code> ic = |
| 2522 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2519 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
| 2523 .code(); | 2520 .code(); |
| 2524 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2521 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2525 } | 2522 } |
| 2526 | 2523 |
| 2527 | 2524 |
| 2528 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2525 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2529 Register context = ToRegister(instr->context()); | 2526 Register context = ToRegister(instr->context()); |
| (...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5545 __ lw(result, FieldMemOperand(scratch, | 5542 __ lw(result, FieldMemOperand(scratch, |
| 5546 FixedArray::kHeaderSize - kPointerSize)); | 5543 FixedArray::kHeaderSize - kPointerSize)); |
| 5547 __ bind(deferred->exit()); | 5544 __ bind(deferred->exit()); |
| 5548 __ bind(&done); | 5545 __ bind(&done); |
| 5549 } | 5546 } |
| 5550 | 5547 |
| 5551 #undef __ | 5548 #undef __ |
| 5552 | 5549 |
| 5553 } // namespace internal | 5550 } // namespace internal |
| 5554 } // namespace v8 | 5551 } // namespace v8 |
| OLD | NEW |