| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 } | 573 } |
| 574 | 574 |
| 575 // Return the value (register v0). | 575 // Return the value (register v0). |
| 576 DCHECK(value_reg.is(a0)); | 576 DCHECK(value_reg.is(a0)); |
| 577 __ bind(&exit); | 577 __ bind(&exit); |
| 578 __ Ret(USE_DELAY_SLOT); | 578 __ Ret(USE_DELAY_SLOT); |
| 579 __ mov(v0, a0); | 579 __ mov(v0, a0); |
| 580 } | 580 } |
| 581 | 581 |
| 582 | 582 |
| 583 void NamedStoreHandlerCompiler::GenerateStoreField(LookupResult* lookup, | 583 void NamedStoreHandlerCompiler::GenerateStoreField(LookupIterator* lookup, |
| 584 Register value_reg, | 584 Register value_reg, |
| 585 Label* miss_label) { | 585 Label* miss_label) { |
| 586 DCHECK(lookup->representation().IsHeapObject()); | 586 DCHECK(lookup->representation().IsHeapObject()); |
| 587 __ JumpIfSmi(value_reg, miss_label); | 587 __ JumpIfSmi(value_reg, miss_label); |
| 588 HeapType::Iterator<Map> it = lookup->GetFieldType()->Classes(); | 588 HeapType::Iterator<Map> it = lookup->GetFieldType()->Classes(); |
| 589 __ ld(scratch1(), FieldMemOperand(value_reg, HeapObject::kMapOffset)); | 589 __ ld(scratch1(), FieldMemOperand(value_reg, HeapObject::kMapOffset)); |
| 590 Label do_store; | 590 Label do_store; |
| 591 Handle<Map> current; | 591 Handle<Map> current; |
| 592 while (true) { | 592 while (true) { |
| 593 // Do the CompareMap() directly within the Branch() functions. | 593 // Do the CompareMap() directly within the Branch() functions. |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 | 1169 |
| 1170 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1170 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 | 1173 |
| 1174 #undef __ | 1174 #undef __ |
| 1175 | 1175 |
| 1176 } } // namespace v8::internal | 1176 } } // namespace v8::internal |
| 1177 | 1177 |
| 1178 #endif // V8_TARGET_ARCH_MIPS64 | 1178 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |