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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 670543002: MIPS64: vector-based ICs did not update type feedback counts correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/mips64/lithium-codegen-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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 __ bind(&no_descriptors); 1169 __ bind(&no_descriptors);
1170 __ Drop(1); 1170 __ Drop(1);
1171 __ jmp(&exit); 1171 __ jmp(&exit);
1172 1172
1173 // We got a fixed array in register v0. Iterate through that. 1173 // We got a fixed array in register v0. Iterate through that.
1174 Label non_proxy; 1174 Label non_proxy;
1175 __ bind(&fixed_array); 1175 __ bind(&fixed_array);
1176 1176
1177 __ li(a1, FeedbackVector()); 1177 __ li(a1, FeedbackVector());
1178 __ li(a2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); 1178 __ li(a2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate())));
1179 __ sd(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(slot.ToInt()))); 1179 int vector_index = FeedbackVector()->GetIndex(slot);
1180 __ sd(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(vector_index)));
1180 1181
1181 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check 1182 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check
1182 __ ld(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object 1183 __ ld(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
1183 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1184 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1184 __ GetObjectType(a2, a3, a3); 1185 __ GetObjectType(a2, a3, a3);
1185 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE)); 1186 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE));
1186 __ li(a1, Operand(Smi::FromInt(0))); // Zero indicates proxy 1187 __ li(a1, Operand(Smi::FromInt(0))); // Zero indicates proxy
1187 __ bind(&non_proxy); 1188 __ bind(&non_proxy);
1188 __ Push(a1, v0); // Smi and array 1189 __ Push(a1, v0); // Smi and array
1189 __ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset)); 1190 __ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset));
(...skipping 4014 matching lines...) Expand 10 before | Expand all | Expand 10 after
5204 Assembler::target_address_at(pc_immediate_load_address)) == 5205 Assembler::target_address_at(pc_immediate_load_address)) ==
5205 reinterpret_cast<uint64_t>( 5206 reinterpret_cast<uint64_t>(
5206 isolate->builtins()->OsrAfterStackCheck()->entry())); 5207 isolate->builtins()->OsrAfterStackCheck()->entry()));
5207 return OSR_AFTER_STACK_CHECK; 5208 return OSR_AFTER_STACK_CHECK;
5208 } 5209 }
5209 5210
5210 5211
5211 } } // namespace v8::internal 5212 } } // namespace v8::internal
5212 5213
5213 #endif // V8_TARGET_ARCH_MIPS64 5214 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698