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 7253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |