| OLD | NEW |
| 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 7223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7234 | 7234 |
| 7235 // Layout description. | 7235 // Layout description. |
| 7236 static const int kFunctionOffset = JSObject::kHeaderSize; | 7236 static const int kFunctionOffset = JSObject::kHeaderSize; |
| 7237 static const int kContextOffset = kFunctionOffset + kPointerSize; | 7237 static const int kContextOffset = kFunctionOffset + kPointerSize; |
| 7238 static const int kReceiverOffset = kContextOffset + kPointerSize; | 7238 static const int kReceiverOffset = kContextOffset + kPointerSize; |
| 7239 static const int kContinuationOffset = kReceiverOffset + kPointerSize; | 7239 static const int kContinuationOffset = kReceiverOffset + kPointerSize; |
| 7240 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 7240 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; |
| 7241 static const int kSize = kOperandStackOffset + kPointerSize; | 7241 static const int kSize = kOperandStackOffset + kPointerSize; |
| 7242 | 7242 |
| 7243 // Resume mode, for use by runtime functions. | 7243 // Resume mode, for use by runtime functions. |
| 7244 enum ResumeMode { NEXT, THROW }; | 7244 enum ResumeMode { NEXT, RETURN, THROW }; |
| 7245 | 7245 |
| 7246 private: | 7246 private: |
| 7247 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 7247 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); |
| 7248 }; | 7248 }; |
| 7249 | 7249 |
| 7250 | 7250 |
| 7251 // Representation for module instance objects. | 7251 // Representation for module instance objects. |
| 7252 class JSModule: public JSObject { | 7252 class JSModule: public JSObject { |
| 7253 public: | 7253 public: |
| 7254 // [context]: the context holding the module's locals, or undefined if none. | 7254 // [context]: the context holding the module's locals, or undefined if none. |
| (...skipping 3528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10783 } | 10783 } |
| 10784 return value; | 10784 return value; |
| 10785 } | 10785 } |
| 10786 }; | 10786 }; |
| 10787 | 10787 |
| 10788 | 10788 |
| 10789 } // NOLINT, false-positive due to second-order macros. | 10789 } // NOLINT, false-positive due to second-order macros. |
| 10790 } // NOLINT, false-positive due to second-order macros. | 10790 } // NOLINT, false-positive due to second-order macros. |
| 10791 | 10791 |
| 10792 #endif // V8_OBJECTS_H_ | 10792 #endif // V8_OBJECTS_H_ |
| OLD | NEW |