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

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

Issue 2625093005: [modules] Define @@toStringTag on namespace object as a field. (Closed)
Patch Set: Created 3 years, 11 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.h ('k') | src/objects-printer.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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 return JSObject::kHeaderSize; 2211 return JSObject::kHeaderSize;
2212 case JS_MESSAGE_OBJECT_TYPE: 2212 case JS_MESSAGE_OBJECT_TYPE:
2213 return JSMessageObject::kSize; 2213 return JSMessageObject::kSize;
2214 case JS_ARGUMENTS_TYPE: 2214 case JS_ARGUMENTS_TYPE:
2215 return JSArgumentsObject::kHeaderSize; 2215 return JSArgumentsObject::kHeaderSize;
2216 case JS_ERROR_TYPE: 2216 case JS_ERROR_TYPE:
2217 return JSObject::kHeaderSize; 2217 return JSObject::kHeaderSize;
2218 case JS_STRING_ITERATOR_TYPE: 2218 case JS_STRING_ITERATOR_TYPE:
2219 return JSStringIterator::kSize; 2219 return JSStringIterator::kSize;
2220 case JS_MODULE_NAMESPACE_TYPE: 2220 case JS_MODULE_NAMESPACE_TYPE:
2221 return JSModuleNamespace::kSize; 2221 return JSModuleNamespace::kHeaderSize;
2222 default: 2222 default:
2223 if (type >= FIRST_ARRAY_ITERATOR_TYPE && 2223 if (type >= FIRST_ARRAY_ITERATOR_TYPE &&
2224 type <= LAST_ARRAY_ITERATOR_TYPE) { 2224 type <= LAST_ARRAY_ITERATOR_TYPE) {
2225 return JSArrayIterator::kSize; 2225 return JSArrayIterator::kSize;
2226 } 2226 }
2227 UNREACHABLE(); 2227 UNREACHABLE();
2228 return 0; 2228 return 0;
2229 } 2229 }
2230 } 2230 }
2231 2231
(...skipping 6216 matching lines...) Expand 10 before | Expand all | Expand 10 after
8448 #undef WRITE_INT64_FIELD 8448 #undef WRITE_INT64_FIELD
8449 #undef READ_BYTE_FIELD 8449 #undef READ_BYTE_FIELD
8450 #undef WRITE_BYTE_FIELD 8450 #undef WRITE_BYTE_FIELD
8451 #undef NOBARRIER_READ_BYTE_FIELD 8451 #undef NOBARRIER_READ_BYTE_FIELD
8452 #undef NOBARRIER_WRITE_BYTE_FIELD 8452 #undef NOBARRIER_WRITE_BYTE_FIELD
8453 8453
8454 } // namespace internal 8454 } // namespace internal
8455 } // namespace v8 8455 } // namespace v8
8456 8456
8457 #endif // V8_OBJECTS_INL_H_ 8457 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698