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

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

Issue 1867263002: [generators] Store the resume mode in the generator object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Other platforms Created 4 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.h ('k') | src/x64/builtins-x64.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 6251 matching lines...) Expand 10 before | Expand all | Expand 10 after
6262 6262
6263 void Foreign::set_foreign_address(Address value) { 6263 void Foreign::set_foreign_address(Address value) {
6264 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); 6264 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value));
6265 } 6265 }
6266 6266
6267 6267
6268 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) 6268 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset)
6269 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) 6269 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
6270 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) 6270 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset)
6271 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset) 6271 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset)
6272 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset)
6272 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) 6273 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset)
6273 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) 6274 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset)
6274 6275
6275 bool JSGeneratorObject::is_suspended() { 6276 bool JSGeneratorObject::is_suspended() {
6276 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); 6277 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed);
6277 DCHECK_EQ(kGeneratorClosed, 0); 6278 DCHECK_EQ(kGeneratorClosed, 0);
6278 return continuation() > 0; 6279 return continuation() > 0;
6279 } 6280 }
6280 6281
6281 bool JSGeneratorObject::is_closed() { 6282 bool JSGeneratorObject::is_closed() {
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
7800 #undef WRITE_INT64_FIELD 7801 #undef WRITE_INT64_FIELD
7801 #undef READ_BYTE_FIELD 7802 #undef READ_BYTE_FIELD
7802 #undef WRITE_BYTE_FIELD 7803 #undef WRITE_BYTE_FIELD
7803 #undef NOBARRIER_READ_BYTE_FIELD 7804 #undef NOBARRIER_READ_BYTE_FIELD
7804 #undef NOBARRIER_WRITE_BYTE_FIELD 7805 #undef NOBARRIER_WRITE_BYTE_FIELD
7805 7806
7806 } // namespace internal 7807 } // namespace internal
7807 } // namespace v8 7808 } // namespace v8
7808 7809
7809 #endif // V8_OBJECTS_INL_H_ 7810 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698