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

Side by Side Diff: src/objects.h

Issue 1606273002: Implement [Generator].prototype.return. (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 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 7171 matching lines...) Expand 10 before | Expand all | Expand 10 after
7182 7182
7183 // Layout description. 7183 // Layout description.
7184 static const int kFunctionOffset = JSObject::kHeaderSize; 7184 static const int kFunctionOffset = JSObject::kHeaderSize;
7185 static const int kContextOffset = kFunctionOffset + kPointerSize; 7185 static const int kContextOffset = kFunctionOffset + kPointerSize;
7186 static const int kReceiverOffset = kContextOffset + kPointerSize; 7186 static const int kReceiverOffset = kContextOffset + kPointerSize;
7187 static const int kContinuationOffset = kReceiverOffset + kPointerSize; 7187 static const int kContinuationOffset = kReceiverOffset + kPointerSize;
7188 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; 7188 static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
7189 static const int kSize = kOperandStackOffset + kPointerSize; 7189 static const int kSize = kOperandStackOffset + kPointerSize;
7190 7190
7191 // Resume mode, for use by runtime functions. 7191 // Resume mode, for use by runtime functions.
7192 enum ResumeMode { NEXT, THROW }; 7192 enum ResumeMode { NEXT, RETURN, THROW };
7193 7193
7194 private: 7194 private:
7195 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); 7195 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject);
7196 }; 7196 };
7197 7197
7198 7198
7199 // Representation for module instance objects. 7199 // Representation for module instance objects.
7200 class JSModule: public JSObject { 7200 class JSModule: public JSObject {
7201 public: 7201 public:
7202 // [context]: the context holding the module's locals, or undefined if none. 7202 // [context]: the context holding the module's locals, or undefined if none.
(...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after
10730 } 10730 }
10731 return value; 10731 return value;
10732 } 10732 }
10733 }; 10733 };
10734 10734
10735 10735
10736 } // NOLINT, false-positive due to second-order macros. 10736 } // NOLINT, false-positive due to second-order macros.
10737 } // NOLINT, false-positive due to second-order macros. 10737 } // NOLINT, false-positive due to second-order macros.
10738 10738
10739 #endif // V8_OBJECTS_H_ 10739 #endif // V8_OBJECTS_H_
OLDNEW
« src/js/generator.js ('K') | « src/js/generator.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698