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

Side by Side Diff: src/objects.h

Issue 1884183002: First version of the new generators implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 7338 matching lines...) Expand 10 before | Expand all | Expand 10 after
7349 // [operand_stack]: Saved operand stack. 7349 // [operand_stack]: Saved operand stack.
7350 DECL_ACCESSORS(operand_stack, FixedArray) 7350 DECL_ACCESSORS(operand_stack, FixedArray)
7351 7351
7352 DECLARE_CAST(JSGeneratorObject) 7352 DECLARE_CAST(JSGeneratorObject)
7353 7353
7354 // Dispatched behavior. 7354 // Dispatched behavior.
7355 DECLARE_PRINTER(JSGeneratorObject) 7355 DECLARE_PRINTER(JSGeneratorObject)
7356 DECLARE_VERIFIER(JSGeneratorObject) 7356 DECLARE_VERIFIER(JSGeneratorObject)
7357 7357
7358 // Magic sentinel values for the continuation. 7358 // Magic sentinel values for the continuation.
7359 static const int kGeneratorExecuting = -1; 7359 static const int kGeneratorExecuting = -2;
7360 static const int kGeneratorClosed = 0; 7360 static const int kGeneratorClosed = -1;
7361 7361
7362 // Layout description. 7362 // Layout description.
7363 static const int kFunctionOffset = JSObject::kHeaderSize; 7363 static const int kFunctionOffset = JSObject::kHeaderSize;
7364 static const int kContextOffset = kFunctionOffset + kPointerSize; 7364 static const int kContextOffset = kFunctionOffset + kPointerSize;
7365 static const int kReceiverOffset = kContextOffset + kPointerSize; 7365 static const int kReceiverOffset = kContextOffset + kPointerSize;
7366 static const int kInputOffset = kReceiverOffset + kPointerSize; 7366 static const int kInputOffset = kReceiverOffset + kPointerSize;
7367 static const int kResumeModeOffset = kInputOffset + kPointerSize; 7367 static const int kResumeModeOffset = kInputOffset + kPointerSize;
7368 static const int kContinuationOffset = kResumeModeOffset + kPointerSize; 7368 static const int kContinuationOffset = kResumeModeOffset + kPointerSize;
7369 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; 7369 static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
7370 static const int kSize = kOperandStackOffset + kPointerSize; 7370 static const int kSize = kOperandStackOffset + kPointerSize;
(...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after
10780 } 10780 }
10781 return value; 10781 return value;
10782 } 10782 }
10783 }; 10783 };
10784 10784
10785 10785
10786 } // NOLINT, false-positive due to second-order macros. 10786 } // NOLINT, false-positive due to second-order macros.
10787 } // NOLINT, false-positive due to second-order macros. 10787 } // NOLINT, false-positive due to second-order macros.
10788 10788
10789 #endif // V8_OBJECTS_H_ 10789 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698