| 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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 3733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3744 | 3744 |
| 3745 __ AssertString(v0); | 3745 __ AssertString(v0); |
| 3746 | 3746 |
| 3747 __ lw(v0, FieldMemOperand(v0, String::kHashFieldOffset)); | 3747 __ lw(v0, FieldMemOperand(v0, String::kHashFieldOffset)); |
| 3748 __ IndexFromHash(v0, v0); | 3748 __ IndexFromHash(v0, v0); |
| 3749 | 3749 |
| 3750 context()->Plug(v0); | 3750 context()->Plug(v0); |
| 3751 } | 3751 } |
| 3752 | 3752 |
| 3753 | 3753 |
| 3754 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
| 3755 ZoneList<Expression*>* args = expr->arguments(); |
| 3756 DCHECK_EQ(1, args->length()); |
| 3757 VisitForAccumulatorValue(args->at(0)); |
| 3758 __ AssertFunction(v0); |
| 3759 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); |
| 3760 __ lw(v0, FieldMemOperand(v0, Map::kPrototypeOffset)); |
| 3761 context()->Plug(v0); |
| 3762 } |
| 3763 |
| 3764 |
| 3754 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { | 3765 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
| 3755 Label bailout, done, one_char_separator, long_separator, | 3766 Label bailout, done, one_char_separator, long_separator, |
| 3756 non_trivial_array, not_size_one_array, loop, | 3767 non_trivial_array, not_size_one_array, loop, |
| 3757 empty_separator_loop, one_char_separator_loop, | 3768 empty_separator_loop, one_char_separator_loop, |
| 3758 one_char_separator_loop_entry, long_separator_loop; | 3769 one_char_separator_loop_entry, long_separator_loop; |
| 3759 ZoneList<Expression*>* args = expr->arguments(); | 3770 ZoneList<Expression*>* args = expr->arguments(); |
| 3760 DCHECK(args->length() == 2); | 3771 DCHECK(args->length() == 2); |
| 3761 VisitForStackValue(args->at(1)); | 3772 VisitForStackValue(args->at(1)); |
| 3762 VisitForAccumulatorValue(args->at(0)); | 3773 VisitForAccumulatorValue(args->at(0)); |
| 3763 | 3774 |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4836 reinterpret_cast<uint32_t>( | 4847 reinterpret_cast<uint32_t>( |
| 4837 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4848 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4838 return OSR_AFTER_STACK_CHECK; | 4849 return OSR_AFTER_STACK_CHECK; |
| 4839 } | 4850 } |
| 4840 | 4851 |
| 4841 | 4852 |
| 4842 } // namespace internal | 4853 } // namespace internal |
| 4843 } // namespace v8 | 4854 } // namespace v8 |
| 4844 | 4855 |
| 4845 #endif // V8_TARGET_ARCH_MIPS | 4856 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |