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

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

Issue 1459253002: Fix missing case for JS_PROMISE_TYPE for header size. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | 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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 case JS_SET_ITERATOR_TYPE: 2113 case JS_SET_ITERATOR_TYPE:
2114 return JSSetIterator::kSize; 2114 return JSSetIterator::kSize;
2115 case JS_MAP_ITERATOR_TYPE: 2115 case JS_MAP_ITERATOR_TYPE:
2116 return JSMapIterator::kSize; 2116 return JSMapIterator::kSize;
2117 case JS_ITERATOR_RESULT_TYPE: 2117 case JS_ITERATOR_RESULT_TYPE:
2118 return JSIteratorResult::kSize; 2118 return JSIteratorResult::kSize;
2119 case JS_WEAK_MAP_TYPE: 2119 case JS_WEAK_MAP_TYPE:
2120 return JSWeakMap::kSize; 2120 return JSWeakMap::kSize;
2121 case JS_WEAK_SET_TYPE: 2121 case JS_WEAK_SET_TYPE:
2122 return JSWeakSet::kSize; 2122 return JSWeakSet::kSize;
2123 case JS_PROMISE_TYPE:
2124 return JSObject::kHeaderSize;
2123 case JS_REGEXP_TYPE: 2125 case JS_REGEXP_TYPE:
2124 return JSRegExp::kSize; 2126 return JSRegExp::kSize;
2125 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 2127 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
2126 return JSObject::kHeaderSize; 2128 return JSObject::kHeaderSize;
2127 case JS_MESSAGE_OBJECT_TYPE: 2129 case JS_MESSAGE_OBJECT_TYPE:
2128 return JSMessageObject::kSize; 2130 return JSMessageObject::kSize;
2129 default: 2131 default:
2130 UNREACHABLE(); 2132 UNREACHABLE();
2131 return 0; 2133 return 0;
2132 } 2134 }
(...skipping 5749 matching lines...) Expand 10 before | Expand all | Expand 10 after
7882 #undef WRITE_INT64_FIELD 7884 #undef WRITE_INT64_FIELD
7883 #undef READ_BYTE_FIELD 7885 #undef READ_BYTE_FIELD
7884 #undef WRITE_BYTE_FIELD 7886 #undef WRITE_BYTE_FIELD
7885 #undef NOBARRIER_READ_BYTE_FIELD 7887 #undef NOBARRIER_READ_BYTE_FIELD
7886 #undef NOBARRIER_WRITE_BYTE_FIELD 7888 #undef NOBARRIER_WRITE_BYTE_FIELD
7887 7889
7888 } // namespace internal 7890 } // namespace internal
7889 } // namespace v8 7891 } // namespace v8
7890 7892
7891 #endif // V8_OBJECTS_INL_H_ 7893 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698