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

Side by Side Diff: src/objects.h

Issue 1639343005: [generators] Implement Generator.prototype.return. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@yield-star
Patch Set: Another rebase Created 4 years, 10 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/js/generator.js ('k') | src/parsing/parser.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 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/allocation.h" 10 #include "src/allocation.h"
(...skipping 7253 matching lines...) Expand 10 before | Expand all | Expand 10 after
7264 // Layout description. 7264 // Layout description.
7265 static const int kFunctionOffset = JSObject::kHeaderSize; 7265 static const int kFunctionOffset = JSObject::kHeaderSize;
7266 static const int kContextOffset = kFunctionOffset + kPointerSize; 7266 static const int kContextOffset = kFunctionOffset + kPointerSize;
7267 static const int kReceiverOffset = kContextOffset + kPointerSize; 7267 static const int kReceiverOffset = kContextOffset + kPointerSize;
7268 static const int kInputOffset = kReceiverOffset + kPointerSize; 7268 static const int kInputOffset = kReceiverOffset + kPointerSize;
7269 static const int kContinuationOffset = kInputOffset + kPointerSize; 7269 static const int kContinuationOffset = kInputOffset + kPointerSize;
7270 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; 7270 static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
7271 static const int kSize = kOperandStackOffset + kPointerSize; 7271 static const int kSize = kOperandStackOffset + kPointerSize;
7272 7272
7273 // Resume mode, for use by runtime functions. 7273 // Resume mode, for use by runtime functions.
7274 enum ResumeMode { NEXT, THROW }; 7274 enum ResumeMode { NEXT, RETURN, THROW };
7275 7275
7276 private: 7276 private:
7277 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); 7277 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject);
7278 }; 7278 };
7279 7279
7280 7280
7281 // Representation for module instance objects. 7281 // Representation for module instance objects.
7282 class JSModule: public JSObject { 7282 class JSModule: public JSObject {
7283 public: 7283 public:
7284 // [context]: the context holding the module's locals, or undefined if none. 7284 // [context]: the context holding the module's locals, or undefined if none.
(...skipping 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after
10822 } 10822 }
10823 return value; 10823 return value;
10824 } 10824 }
10825 }; 10825 };
10826 10826
10827 10827
10828 } // NOLINT, false-positive due to second-order macros. 10828 } // NOLINT, false-positive due to second-order macros.
10829 } // NOLINT, false-positive due to second-order macros. 10829 } // NOLINT, false-positive due to second-order macros.
10830 10830
10831 #endif // V8_OBJECTS_H_ 10831 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/generator.js ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698