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

Side by Side Diff: src/mips/code-stubs-mips.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 | « no previous file | src/mips64/code-stubs-mips64.cc » ('j') | 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_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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698