 Chromium Code Reviews
 Chromium Code Reviews| 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 6311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6322 static const int kGeneratorExecuting = -1; | 6322 static const int kGeneratorExecuting = -1; | 
| 6323 static const int kGeneratorClosed = 0; | 6323 static const int kGeneratorClosed = 0; | 
| 6324 | 6324 | 
| 6325 // Layout description. | 6325 // Layout description. | 
| 6326 static const int kFunctionOffset = JSObject::kHeaderSize; | 6326 static const int kFunctionOffset = JSObject::kHeaderSize; | 
| 6327 static const int kContextOffset = kFunctionOffset + kPointerSize; | 6327 static const int kContextOffset = kFunctionOffset + kPointerSize; | 
| 6328 static const int kContinuationOffset = kContextOffset + kPointerSize; | 6328 static const int kContinuationOffset = kContextOffset + kPointerSize; | 
| 6329 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 6329 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 
| 6330 static const int kSize = kOperandStackOffset + kPointerSize; | 6330 static const int kSize = kOperandStackOffset + kPointerSize; | 
| 6331 | 6331 | 
| 6332 // Resume mode, for use by runtime functions. | |
| 6333 enum ResumeMode { | |
| 6334 kSend, | |
| 
Michael Starzinger
2013/04/21 22:45:21
style: Enums use all-uppercase names without the "
 
wingo
2013/04/23 13:51:04
Done.
 | |
| 6335 kThrow | |
| 6336 }; | |
| 6337 | |
| 6332 private: | 6338 private: | 
| 6333 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 6339 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 
| 6334 }; | 6340 }; | 
| 6335 | 6341 | 
| 6336 | 6342 | 
| 6337 // Representation for module instance objects. | 6343 // Representation for module instance objects. | 
| 6338 class JSModule: public JSObject { | 6344 class JSModule: public JSObject { | 
| 6339 public: | 6345 public: | 
| 6340 // [context]: the context holding the module's locals, or undefined if none. | 6346 // [context]: the context holding the module's locals, or undefined if none. | 
| 6341 DECL_ACCESSORS(context, Object) | 6347 DECL_ACCESSORS(context, Object) | 
| (...skipping 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9429 } else { | 9435 } else { | 
| 9430 value &= ~(1 << bit_position); | 9436 value &= ~(1 << bit_position); | 
| 9431 } | 9437 } | 
| 9432 return value; | 9438 return value; | 
| 9433 } | 9439 } | 
| 9434 }; | 9440 }; | 
| 9435 | 9441 | 
| 9436 } } // namespace v8::internal | 9442 } } // namespace v8::internal | 
| 9437 | 9443 | 
| 9438 #endif // V8_OBJECTS_H_ | 9444 #endif // V8_OBJECTS_H_ | 
| OLD | NEW |