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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3082 } else { | 3082 } else { |
3083 DCHECK(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX); | 3083 DCHECK(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX); |
3084 // NumberToSmi discards numbers that are not exact integers. | 3084 // NumberToSmi discards numbers that are not exact integers. |
3085 __ CallRuntime(Runtime::kNumberToSmi, 1); | 3085 __ CallRuntime(Runtime::kNumberToSmi, 1); |
3086 } | 3086 } |
3087 | 3087 |
3088 // Save the conversion result before the pop instructions below | 3088 // Save the conversion result before the pop instructions below |
3089 // have a chance to overwrite it. | 3089 // have a chance to overwrite it. |
3090 __ Move(index_, v0); | 3090 __ Move(index_, v0); |
3091 if (FLAG_vector_ics && embed_mode == PART_OF_IC_HANDLER) { | 3091 if (FLAG_vector_ics && embed_mode == PART_OF_IC_HANDLER) { |
3092 __ Pop(VectorLoadICDescriptor::SlotRegister(), | 3092 __ Pop(VectorLoadICDescriptor::VectorRegister(), |
3093 VectorLoadICDescriptor::VectorRegister(), object_); | 3093 VectorLoadICDescriptor::SlotRegister(), object_); |
3094 } else { | 3094 } else { |
3095 __ pop(object_); | 3095 __ pop(object_); |
3096 } | 3096 } |
3097 // Reload the instance type. | 3097 // Reload the instance type. |
3098 __ lw(result_, FieldMemOperand(object_, HeapObject::kMapOffset)); | 3098 __ lw(result_, FieldMemOperand(object_, HeapObject::kMapOffset)); |
3099 __ lbu(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset)); | 3099 __ lbu(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset)); |
3100 call_helper.AfterCall(masm); | 3100 call_helper.AfterCall(masm); |
3101 // If index is still not a smi, it must be out of range. | 3101 // If index is still not a smi, it must be out of range. |
3102 __ JumpIfNotSmi(index_, index_out_of_range_); | 3102 __ JumpIfNotSmi(index_, index_out_of_range_); |
3103 // Otherwise, return to the fast path. | 3103 // Otherwise, return to the fast path. |
(...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5511 kStackUnwindSpace, kInvalidStackOffset, | 5511 kStackUnwindSpace, kInvalidStackOffset, |
5512 MemOperand(fp, 6 * kPointerSize), NULL); | 5512 MemOperand(fp, 6 * kPointerSize), NULL); |
5513 } | 5513 } |
5514 | 5514 |
5515 | 5515 |
5516 #undef __ | 5516 #undef __ |
5517 | 5517 |
5518 } } // namespace v8::internal | 5518 } } // namespace v8::internal |
5519 | 5519 |
5520 #endif // V8_TARGET_ARCH_MIPS | 5520 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |