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

Side by Side Diff: src/ic/x87/handler-compiler-x87.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/ic/x64/handler-compiler-x64.cc ('k') | src/mips/builtins-mips.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 const int kInterceptorOrAccessCheckNeededMask = 86 const int kInterceptorOrAccessCheckNeededMask =
87 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); 87 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded);
88 88
89 // Bail out if the receiver has a named interceptor or requires access checks. 89 // Bail out if the receiver has a named interceptor or requires access checks.
90 __ test_b(FieldOperand(scratch0, Map::kBitFieldOffset), 90 __ test_b(FieldOperand(scratch0, Map::kBitFieldOffset),
91 kInterceptorOrAccessCheckNeededMask); 91 kInterceptorOrAccessCheckNeededMask);
92 __ j(not_zero, miss_label); 92 __ j(not_zero, miss_label);
93 93
94 // Check that receiver is a JSObject. 94 // Check that receiver is a JSObject.
95 __ CmpInstanceType(scratch0, FIRST_SPEC_OBJECT_TYPE); 95 __ CmpInstanceType(scratch0, FIRST_JS_RECEIVER_TYPE);
96 __ j(below, miss_label); 96 __ j(below, miss_label);
97 97
98 // Load properties array. 98 // Load properties array.
99 Register properties = scratch0; 99 Register properties = scratch0;
100 __ mov(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); 100 __ mov(properties, FieldOperand(receiver, JSObject::kPropertiesOffset));
101 101
102 // Check that the properties array is a dictionary. 102 // Check that the properties array is a dictionary.
103 __ cmp(FieldOperand(properties, HeapObject::kMapOffset), 103 __ cmp(FieldOperand(properties, HeapObject::kMapOffset),
104 Immediate(masm->isolate()->factory()->hash_table_map())); 104 Immediate(masm->isolate()->factory()->hash_table_map()));
105 __ j(not_equal, miss_label); 105 __ j(not_equal, miss_label);
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // Return the generated code. 813 // Return the generated code.
814 return GetCode(kind(), Code::NORMAL, name); 814 return GetCode(kind(), Code::NORMAL, name);
815 } 815 }
816 816
817 817
818 #undef __ 818 #undef __
819 } // namespace internal 819 } // namespace internal
820 } // namespace v8 820 } // namespace v8
821 821
822 #endif // V8_TARGET_ARCH_X87 822 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/ic/x64/handler-compiler-x64.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698