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

Side by Side Diff: src/ic/arm/handler-compiler-arm.cc

Issue 1486563002: Remove {FIRST,LAST}_SPEC_OBJECT_TYPE. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/ia32/code-stubs-ia32.cc ('k') | src/ic/arm64/handler-compiler-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/ic/call-optimization.h" 7 #include "src/ic/call-optimization.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Bail out if the receiver has a named interceptor or requires access checks. 139 // Bail out if the receiver has a named interceptor or requires access checks.
140 Register map = scratch1; 140 Register map = scratch1;
141 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); 141 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset));
142 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); 142 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset));
143 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); 143 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask));
144 __ b(ne, miss_label); 144 __ b(ne, miss_label);
145 145
146 // Check that receiver is a JSObject. 146 // Check that receiver is a JSObject.
147 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); 147 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset));
148 __ cmp(scratch0, Operand(FIRST_SPEC_OBJECT_TYPE)); 148 __ cmp(scratch0, Operand(FIRST_JS_RECEIVER_TYPE));
149 __ b(lt, miss_label); 149 __ b(lt, miss_label);
150 150
151 // Load properties array. 151 // Load properties array.
152 Register properties = scratch0; 152 Register properties = scratch0;
153 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); 153 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset));
154 // Check that the properties array is a dictionary. 154 // Check that the properties array is a dictionary.
155 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); 155 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset));
156 Register tmp = properties; 156 Register tmp = properties;
157 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); 157 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex);
158 __ cmp(map, tmp); 158 __ cmp(map, tmp);
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Return the generated code. 790 // Return the generated code.
791 return GetCode(kind(), Code::NORMAL, name); 791 return GetCode(kind(), Code::NORMAL, name);
792 } 792 }
793 793
794 794
795 #undef __ 795 #undef __
796 } // namespace internal 796 } // namespace internal
797 } // namespace v8 797 } // namespace v8
798 798
799 #endif // V8_TARGET_ARCH_ARM 799 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698