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

Side by Side Diff: src/objects.h

Issue 16136011: Generator object "next" method takes optional send value (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased onto master Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/runtime.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 6511 matching lines...) Expand 10 before | Expand all | Expand 10 after
6522 static const int kFunctionOffset = JSObject::kHeaderSize; 6522 static const int kFunctionOffset = JSObject::kHeaderSize;
6523 static const int kContextOffset = kFunctionOffset + kPointerSize; 6523 static const int kContextOffset = kFunctionOffset + kPointerSize;
6524 static const int kReceiverOffset = kContextOffset + kPointerSize; 6524 static const int kReceiverOffset = kContextOffset + kPointerSize;
6525 static const int kContinuationOffset = kReceiverOffset + kPointerSize; 6525 static const int kContinuationOffset = kReceiverOffset + kPointerSize;
6526 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; 6526 static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
6527 static const int kStackHandlerIndexOffset = 6527 static const int kStackHandlerIndexOffset =
6528 kOperandStackOffset + kPointerSize; 6528 kOperandStackOffset + kPointerSize;
6529 static const int kSize = kStackHandlerIndexOffset + kPointerSize; 6529 static const int kSize = kStackHandlerIndexOffset + kPointerSize;
6530 6530
6531 // Resume mode, for use by runtime functions. 6531 // Resume mode, for use by runtime functions.
6532 enum ResumeMode { SEND, THROW }; 6532 enum ResumeMode { NEXT, THROW };
6533 6533
6534 // Yielding from a generator returns an object with the following inobject 6534 // Yielding from a generator returns an object with the following inobject
6535 // properties. See Context::generator_result_map() for the map. 6535 // properties. See Context::generator_result_map() for the map.
6536 static const int kResultValuePropertyIndex = 0; 6536 static const int kResultValuePropertyIndex = 0;
6537 static const int kResultDonePropertyIndex = 1; 6537 static const int kResultDonePropertyIndex = 1;
6538 static const int kResultPropertyCount = 2; 6538 static const int kResultPropertyCount = 2;
6539 6539
6540 static const int kResultValuePropertyOffset = JSObject::kHeaderSize; 6540 static const int kResultValuePropertyOffset = JSObject::kHeaderSize;
6541 static const int kResultDonePropertyOffset = 6541 static const int kResultDonePropertyOffset =
6542 kResultValuePropertyOffset + kPointerSize; 6542 kResultValuePropertyOffset + kPointerSize;
(...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after
9681 } else { 9681 } else {
9682 value &= ~(1 << bit_position); 9682 value &= ~(1 << bit_position);
9683 } 9683 }
9684 return value; 9684 return value;
9685 } 9685 }
9686 }; 9686 };
9687 9687
9688 } } // namespace v8::internal 9688 } } // namespace v8::internal
9689 9689
9690 #endif // V8_OBJECTS_H_ 9690 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698