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

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

Issue 1272763005: [stubs] Store typeof string on Oddballs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/objects.cc ('k') | no next file » | 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 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 1994
1995 1995
1996 void JSObject::initialize_elements() { 1996 void JSObject::initialize_elements() {
1997 FixedArrayBase* elements = map()->GetInitialElements(); 1997 FixedArrayBase* elements = map()->GetInitialElements();
1998 WRITE_FIELD(this, kElementsOffset, elements); 1998 WRITE_FIELD(this, kElementsOffset, elements);
1999 } 1999 }
2000 2000
2001 2001
2002 ACCESSORS(Oddball, to_string, String, kToStringOffset) 2002 ACCESSORS(Oddball, to_string, String, kToStringOffset)
2003 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) 2003 ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
2004 ACCESSORS(Oddball, type_of, String, kTypeOfOffset)
2004 2005
2005 2006
2006 byte Oddball::kind() const { 2007 byte Oddball::kind() const {
2007 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); 2008 return Smi::cast(READ_FIELD(this, kKindOffset))->value();
2008 } 2009 }
2009 2010
2010 2011
2011 void Oddball::set_kind(byte value) { 2012 void Oddball::set_kind(byte value) {
2012 WRITE_FIELD(this, kKindOffset, Smi::FromInt(value)); 2013 WRITE_FIELD(this, kKindOffset, Smi::FromInt(value));
2013 } 2014 }
(...skipping 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 #undef READ_INT64_FIELD 7221 #undef READ_INT64_FIELD
7221 #undef WRITE_INT64_FIELD 7222 #undef WRITE_INT64_FIELD
7222 #undef READ_BYTE_FIELD 7223 #undef READ_BYTE_FIELD
7223 #undef WRITE_BYTE_FIELD 7224 #undef WRITE_BYTE_FIELD
7224 #undef NOBARRIER_READ_BYTE_FIELD 7225 #undef NOBARRIER_READ_BYTE_FIELD
7225 #undef NOBARRIER_WRITE_BYTE_FIELD 7226 #undef NOBARRIER_WRITE_BYTE_FIELD
7226 7227
7227 } } // namespace v8::internal 7228 } } // namespace v8::internal
7228 7229
7229 #endif // V8_OBJECTS_INL_H_ 7230 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698