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

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

Issue 2819653002: Merged: Squashed multiple commits. (Closed)
Patch Set: Created 3 years, 8 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') | test/mjsunit/regress/regress-crbug-709753.js » ('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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 } 1963 }
1964 1964
1965 double Oddball::to_number_raw() const { 1965 double Oddball::to_number_raw() const {
1966 return READ_DOUBLE_FIELD(this, kToNumberRawOffset); 1966 return READ_DOUBLE_FIELD(this, kToNumberRawOffset);
1967 } 1967 }
1968 1968
1969 void Oddball::set_to_number_raw(double value) { 1969 void Oddball::set_to_number_raw(double value) {
1970 WRITE_DOUBLE_FIELD(this, kToNumberRawOffset, value); 1970 WRITE_DOUBLE_FIELD(this, kToNumberRawOffset, value);
1971 } 1971 }
1972 1972
1973 void Oddball::set_to_number_raw_as_bits(uint64_t bits) {
1974 WRITE_UINT64_FIELD(this, kToNumberRawOffset, bits);
1975 }
1976
1973 ACCESSORS(Oddball, to_string, String, kToStringOffset) 1977 ACCESSORS(Oddball, to_string, String, kToStringOffset)
1974 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) 1978 ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
1975 ACCESSORS(Oddball, type_of, String, kTypeOfOffset) 1979 ACCESSORS(Oddball, type_of, String, kTypeOfOffset)
1976 1980
1977 1981
1978 byte Oddball::kind() const { 1982 byte Oddball::kind() const {
1979 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); 1983 return Smi::cast(READ_FIELD(this, kKindOffset))->value();
1980 } 1984 }
1981 1985
1982 1986
(...skipping 6294 matching lines...) Expand 10 before | Expand all | Expand 10 after
8277 #undef WRITE_INT64_FIELD 8281 #undef WRITE_INT64_FIELD
8278 #undef READ_BYTE_FIELD 8282 #undef READ_BYTE_FIELD
8279 #undef WRITE_BYTE_FIELD 8283 #undef WRITE_BYTE_FIELD
8280 #undef NOBARRIER_READ_BYTE_FIELD 8284 #undef NOBARRIER_READ_BYTE_FIELD
8281 #undef NOBARRIER_WRITE_BYTE_FIELD 8285 #undef NOBARRIER_WRITE_BYTE_FIELD
8282 8286
8283 } // namespace internal 8287 } // namespace internal
8284 } // namespace v8 8288 } // namespace v8
8285 8289
8286 #endif // V8_OBJECTS_INL_H_ 8290 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/regress/regress-crbug-709753.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698