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

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

Issue 1620253003: Implement the function.sent proposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
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 6280 matching lines...) Expand 10 before | Expand all | Expand 10 after
6291 6291
6292 6292
6293 void Foreign::set_foreign_address(Address value) { 6293 void Foreign::set_foreign_address(Address value) {
6294 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); 6294 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value));
6295 } 6295 }
6296 6296
6297 6297
6298 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) 6298 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset)
6299 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) 6299 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
6300 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) 6300 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset)
6301 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset)
6301 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) 6302 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset)
6302 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) 6303 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset)
6303 6304
6304 bool JSGeneratorObject::is_suspended() { 6305 bool JSGeneratorObject::is_suspended() {
6305 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); 6306 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed);
6306 DCHECK_EQ(kGeneratorClosed, 0); 6307 DCHECK_EQ(kGeneratorClosed, 0);
6307 return continuation() > 0; 6308 return continuation() > 0;
6308 } 6309 }
6309 6310
6310 bool JSGeneratorObject::is_closed() { 6311 bool JSGeneratorObject::is_closed() {
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
7810 #undef WRITE_INT64_FIELD 7811 #undef WRITE_INT64_FIELD
7811 #undef READ_BYTE_FIELD 7812 #undef READ_BYTE_FIELD
7812 #undef WRITE_BYTE_FIELD 7813 #undef WRITE_BYTE_FIELD
7813 #undef NOBARRIER_READ_BYTE_FIELD 7814 #undef NOBARRIER_READ_BYTE_FIELD
7814 #undef NOBARRIER_WRITE_BYTE_FIELD 7815 #undef NOBARRIER_WRITE_BYTE_FIELD
7815 7816
7816 } // namespace internal 7817 } // namespace internal
7817 } // namespace v8 7818 } // namespace v8
7818 7819
7819 #endif // V8_OBJECTS_INL_H_ 7820 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698