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

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

Issue 2520913002: [runtime] Rename {JSGeneratorObject::operand_stack} field. (Closed)
Patch Set: Created 4 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 | « src/objects-debug.cc ('k') | src/runtime/runtime-generator.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 6726 matching lines...) Expand 10 before | Expand all | Expand 10 after
6737 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); 6737 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value));
6738 } 6738 }
6739 6739
6740 6740
6741 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) 6741 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset)
6742 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) 6742 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
6743 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) 6743 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset)
6744 ACCESSORS(JSGeneratorObject, input_or_debug_pos, Object, kInputOrDebugPosOffset) 6744 ACCESSORS(JSGeneratorObject, input_or_debug_pos, Object, kInputOrDebugPosOffset)
6745 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset) 6745 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset)
6746 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) 6746 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset)
6747 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) 6747 ACCESSORS(JSGeneratorObject, register_file, FixedArray, kRegisterFileOffset)
6748 6748
6749 bool JSGeneratorObject::is_suspended() const { 6749 bool JSGeneratorObject::is_suspended() const {
6750 DCHECK_LT(kGeneratorExecuting, 0); 6750 DCHECK_LT(kGeneratorExecuting, 0);
6751 DCHECK_LT(kGeneratorClosed, 0); 6751 DCHECK_LT(kGeneratorClosed, 0);
6752 return continuation() >= 0; 6752 return continuation() >= 0;
6753 } 6753 }
6754 6754
6755 bool JSGeneratorObject::is_closed() const { 6755 bool JSGeneratorObject::is_closed() const {
6756 return continuation() == kGeneratorClosed; 6756 return continuation() == kGeneratorClosed;
6757 } 6757 }
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after
8444 #undef WRITE_INT64_FIELD 8444 #undef WRITE_INT64_FIELD
8445 #undef READ_BYTE_FIELD 8445 #undef READ_BYTE_FIELD
8446 #undef WRITE_BYTE_FIELD 8446 #undef WRITE_BYTE_FIELD
8447 #undef NOBARRIER_READ_BYTE_FIELD 8447 #undef NOBARRIER_READ_BYTE_FIELD
8448 #undef NOBARRIER_WRITE_BYTE_FIELD 8448 #undef NOBARRIER_WRITE_BYTE_FIELD
8449 8449
8450 } // namespace internal 8450 } // namespace internal
8451 } // namespace v8 8451 } // namespace v8
8452 8452
8453 #endif // V8_OBJECTS_INL_H_ 8453 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime/runtime-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698