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

Side by Side Diff: src/objects.h

Issue 14066016: Generators can resume (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Use Abort() instead of int3() Created 7 years, 8 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
« no previous file with comments | « src/messages.js ('k') | src/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 { SEND, THROW };
6334
6332 private: 6335 private:
6333 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); 6336 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject);
6334 }; 6337 };
6335 6338
6336 6339
6337 // Representation for module instance objects. 6340 // Representation for module instance objects.
6338 class JSModule: public JSObject { 6341 class JSModule: public JSObject {
6339 public: 6342 public:
6340 // [context]: the context holding the module's locals, or undefined if none. 6343 // [context]: the context holding the module's locals, or undefined if none.
6341 DECL_ACCESSORS(context, Object) 6344 DECL_ACCESSORS(context, Object)
(...skipping 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after
9429 } else { 9432 } else {
9430 value &= ~(1 << bit_position); 9433 value &= ~(1 << bit_position);
9431 } 9434 }
9432 return value; 9435 return value;
9433 } 9436 }
9434 }; 9437 };
9435 9438
9436 } } // namespace v8::internal 9439 } } // namespace v8::internal
9437 9440
9438 #endif // V8_OBJECTS_H_ 9441 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698