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

Side by Side Diff: src/objects-inl.h

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/objects.h ('k') | src/ppc/builtins-ppc.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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 186
187 bool Object::IsConstructor() const { 187 bool Object::IsConstructor() const {
188 return Object::IsHeapObject() && 188 return Object::IsHeapObject() &&
189 HeapObject::cast(this)->map()->is_constructor(); 189 HeapObject::cast(this)->map()->is_constructor();
190 } 190 }
191 191
192 192
193 bool Object::IsSpecObject() const { 193 bool Object::IsSpecObject() const {
194 return Object::IsHeapObject() 194 return Object::IsHeapObject()
195 && HeapObject::cast(this)->map()->instance_type() >= FIRST_SPEC_OBJECT_TYPE; 195 && HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_RECEIVER_TYPE;
196 } 196 }
197 197
198 198
199 bool Object::IsTemplateInfo() const { 199 bool Object::IsTemplateInfo() const {
200 return IsObjectTemplateInfo() || IsFunctionTemplateInfo(); 200 return IsObjectTemplateInfo() || IsFunctionTemplateInfo();
201 } 201 }
202 202
203 203
204 bool Object::IsInternalizedString() const { 204 bool Object::IsInternalizedString() const {
205 if (!this->IsHeapObject()) return false; 205 if (!this->IsHeapObject()) return false;
(...skipping 7659 matching lines...) Expand 10 before | Expand all | Expand 10 after
7865 #undef WRITE_INT64_FIELD 7865 #undef WRITE_INT64_FIELD
7866 #undef READ_BYTE_FIELD 7866 #undef READ_BYTE_FIELD
7867 #undef WRITE_BYTE_FIELD 7867 #undef WRITE_BYTE_FIELD
7868 #undef NOBARRIER_READ_BYTE_FIELD 7868 #undef NOBARRIER_READ_BYTE_FIELD
7869 #undef NOBARRIER_WRITE_BYTE_FIELD 7869 #undef NOBARRIER_WRITE_BYTE_FIELD
7870 7870
7871 } // namespace internal 7871 } // namespace internal
7872 } // namespace v8 7872 } // namespace v8
7873 7873
7874 #endif // V8_OBJECTS_INL_H_ 7874 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698