| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 6246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6257 private: | 6257 private: |
| 6258 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); | 6258 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); |
| 6259 }; | 6259 }; |
| 6260 | 6260 |
| 6261 | 6261 |
| 6262 class JSGeneratorObject: public JSObject { | 6262 class JSGeneratorObject: public JSObject { |
| 6263 public: | 6263 public: |
| 6264 // [function]: The function corresponding to this generator object. | 6264 // [function]: The function corresponding to this generator object. |
| 6265 DECL_ACCESSORS(function, JSFunction) | 6265 DECL_ACCESSORS(function, JSFunction) |
| 6266 | 6266 |
| 6267 // [context]: The context of the suspended computation, or undefined. | 6267 // [context]: The context of the suspended computation. |
| 6268 DECL_ACCESSORS(context, Object) | 6268 DECL_ACCESSORS(context, Context) |
| 6269 | 6269 |
| 6270 // [continuation]: Offset into code of continuation. | 6270 // [continuation]: Offset into code of continuation. |
| 6271 inline int continuation(); | 6271 inline int continuation(); |
| 6272 inline void set_continuation(int continuation); | 6272 inline void set_continuation(int continuation); |
| 6273 | 6273 |
| 6274 // [operands]: Saved operand stack. | 6274 // [operands]: Saved operand stack. |
| 6275 DECL_ACCESSORS(operand_stack, FixedArray) | 6275 DECL_ACCESSORS(operand_stack, FixedArray) |
| 6276 | 6276 |
| 6277 // Casting. | 6277 // Casting. |
| 6278 static inline JSGeneratorObject* cast(Object* obj); | 6278 static inline JSGeneratorObject* cast(Object* obj); |
| (...skipping 3077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9356 } else { | 9356 } else { |
| 9357 value &= ~(1 << bit_position); | 9357 value &= ~(1 << bit_position); |
| 9358 } | 9358 } |
| 9359 return value; | 9359 return value; |
| 9360 } | 9360 } |
| 9361 }; | 9361 }; |
| 9362 | 9362 |
| 9363 } } // namespace v8::internal | 9363 } } // namespace v8::internal |
| 9364 | 9364 |
| 9365 #endif // V8_OBJECTS_H_ | 9365 #endif // V8_OBJECTS_H_ |
| OLD | NEW |