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

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

Issue 650073002: vector-based ICs did not update type feedback counts correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. 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/arm/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 __ bind(&no_descriptors); 1187 __ bind(&no_descriptors);
1188 __ Drop(1); 1188 __ Drop(1);
1189 __ jmp(&exit); 1189 __ jmp(&exit);
1190 1190
1191 // We got a fixed array in register r0. Iterate through that. 1191 // We got a fixed array in register r0. Iterate through that.
1192 Label non_proxy; 1192 Label non_proxy;
1193 __ bind(&fixed_array); 1193 __ bind(&fixed_array);
1194 1194
1195 __ Move(r1, FeedbackVector()); 1195 __ Move(r1, FeedbackVector());
1196 __ mov(r2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); 1196 __ mov(r2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate())));
1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot.ToInt()))); 1197 int vector_index = FeedbackVector()->GetIndex(slot);
1198 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(vector_index)));
1198 1199
1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check 1200 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check
1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object 1201 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1202 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); 1203 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE);
1203 __ b(gt, &non_proxy); 1204 __ b(gt, &non_proxy);
1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy 1205 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy
1205 __ bind(&non_proxy); 1206 __ bind(&non_proxy);
1206 __ Push(r1, r0); // Smi and array 1207 __ Push(r1, r0); // Smi and array
1207 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset)); 1208 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset));
(...skipping 4054 matching lines...) Expand 10 before | Expand all | Expand 10 after
5262 5263
5263 DCHECK(interrupt_address == 5264 DCHECK(interrupt_address ==
5264 isolate->builtins()->OsrAfterStackCheck()->entry()); 5265 isolate->builtins()->OsrAfterStackCheck()->entry());
5265 return OSR_AFTER_STACK_CHECK; 5266 return OSR_AFTER_STACK_CHECK;
5266 } 5267 }
5267 5268
5268 5269
5269 } } // namespace v8::internal 5270 } } // namespace v8::internal
5270 5271
5271 #endif // V8_TARGET_ARCH_ARM 5272 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698