Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 1074123004: MIPS: Fix for StringCharCodeAtGenerator for vector-ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 DCHECK(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX); 3122 DCHECK(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX);
3123 // NumberToSmi discards numbers that are not exact integers. 3123 // NumberToSmi discards numbers that are not exact integers.
3124 __ CallRuntime(Runtime::kNumberToSmi, 1); 3124 __ CallRuntime(Runtime::kNumberToSmi, 1);
3125 } 3125 }
3126 3126
3127 // Save the conversion result before the pop instructions below 3127 // Save the conversion result before the pop instructions below
3128 // have a chance to overwrite it. 3128 // have a chance to overwrite it.
3129 3129
3130 __ Move(index_, v0); 3130 __ Move(index_, v0);
3131 if (FLAG_vector_ics && embed_mode == PART_OF_IC_HANDLER) { 3131 if (FLAG_vector_ics && embed_mode == PART_OF_IC_HANDLER) {
3132 __ Pop(VectorLoadICDescriptor::SlotRegister(), 3132 __ Pop(VectorLoadICDescriptor::VectorRegister(),
3133 VectorLoadICDescriptor::VectorRegister(), object_); 3133 VectorLoadICDescriptor::SlotRegister(), object_);
3134 } else { 3134 } else {
3135 __ pop(object_); 3135 __ pop(object_);
3136 } 3136 }
3137 // Reload the instance type. 3137 // Reload the instance type.
3138 __ ld(result_, FieldMemOperand(object_, HeapObject::kMapOffset)); 3138 __ ld(result_, FieldMemOperand(object_, HeapObject::kMapOffset));
3139 __ lbu(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset)); 3139 __ lbu(result_, FieldMemOperand(result_, Map::kInstanceTypeOffset));
3140 call_helper.AfterCall(masm); 3140 call_helper.AfterCall(masm);
3141 // If index is still not a smi, it must be out of range. 3141 // If index is still not a smi, it must be out of range.
3142 __ JumpIfNotSmi(index_, index_out_of_range_); 3142 __ JumpIfNotSmi(index_, index_out_of_range_);
3143 // Otherwise, return to the fast path. 3143 // Otherwise, return to the fast path.
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after
5556 kStackUnwindSpace, kInvalidStackOffset, 5556 kStackUnwindSpace, kInvalidStackOffset,
5557 MemOperand(fp, 6 * kPointerSize), NULL); 5557 MemOperand(fp, 6 * kPointerSize), NULL);
5558 } 5558 }
5559 5559
5560 5560
5561 #undef __ 5561 #undef __
5562 5562
5563 } } // namespace v8::internal 5563 } } // namespace v8::internal
5564 5564
5565 #endif // V8_TARGET_ARCH_MIPS64 5565 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698