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

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

Issue 579153003: Move state sentinels into TypeFeedbackVector. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ports. Created 6 years, 3 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/arm64/code-stubs-arm64.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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 1186
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(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); 1196 __ mov(r2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate())));
1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot))); 1197 __ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot)));
1198 1198
1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check 1199 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check
1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object 1200 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1201 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); 1202 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE);
1203 __ b(gt, &non_proxy); 1203 __ b(gt, &non_proxy);
1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy 1204 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy
1205 __ bind(&non_proxy); 1205 __ bind(&non_proxy);
1206 __ Push(r1, r0); // Smi and array 1206 __ Push(r1, r0); // Smi and array
(...skipping 3715 matching lines...) Expand 10 before | Expand all | Expand 10 after
4922 4922
4923 DCHECK(interrupt_address == 4923 DCHECK(interrupt_address ==
4924 isolate->builtins()->OsrAfterStackCheck()->entry()); 4924 isolate->builtins()->OsrAfterStackCheck()->entry());
4925 return OSR_AFTER_STACK_CHECK; 4925 return OSR_AFTER_STACK_CHECK;
4926 } 4926 }
4927 4927
4928 4928
4929 } } // namespace v8::internal 4929 } } // namespace v8::internal
4930 4930
4931 #endif // V8_TARGET_ARCH_ARM 4931 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698