| 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 6403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6414 static const int kFunctionOffset = JSObject::kHeaderSize; | 6414 static const int kFunctionOffset = JSObject::kHeaderSize; |
| 6415 static const int kContextOffset = kFunctionOffset + kPointerSize; | 6415 static const int kContextOffset = kFunctionOffset + kPointerSize; |
| 6416 static const int kReceiverOffset = kContextOffset + kPointerSize; | 6416 static const int kReceiverOffset = kContextOffset + kPointerSize; |
| 6417 static const int kContinuationOffset = kReceiverOffset + kPointerSize; | 6417 static const int kContinuationOffset = kReceiverOffset + kPointerSize; |
| 6418 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 6418 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; |
| 6419 static const int kSize = kOperandStackOffset + kPointerSize; | 6419 static const int kSize = kOperandStackOffset + kPointerSize; |
| 6420 | 6420 |
| 6421 // Resume mode, for use by runtime functions. | 6421 // Resume mode, for use by runtime functions. |
| 6422 enum ResumeMode { SEND, THROW }; | 6422 enum ResumeMode { SEND, THROW }; |
| 6423 | 6423 |
| 6424 // Yielding from a generator returns an object with the following inobject |
| 6425 // properties. See Context::iterator_result_map() for the map. |
| 6426 static const int kResultValuePropertyIndex = 0; |
| 6427 static const int kResultDonePropertyIndex = 1; |
| 6428 static const int kResultPropertyCount = 2; |
| 6429 |
| 6424 private: | 6430 private: |
| 6425 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 6431 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); |
| 6426 }; | 6432 }; |
| 6427 | 6433 |
| 6428 | 6434 |
| 6429 // Representation for module instance objects. | 6435 // Representation for module instance objects. |
| 6430 class JSModule: public JSObject { | 6436 class JSModule: public JSObject { |
| 6431 public: | 6437 public: |
| 6432 // [context]: the context holding the module's locals, or undefined if none. | 6438 // [context]: the context holding the module's locals, or undefined if none. |
| 6433 DECL_ACCESSORS(context, Object) | 6439 DECL_ACCESSORS(context, Object) |
| (...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9525 } else { | 9531 } else { |
| 9526 value &= ~(1 << bit_position); | 9532 value &= ~(1 << bit_position); |
| 9527 } | 9533 } |
| 9528 return value; | 9534 return value; |
| 9529 } | 9535 } |
| 9530 }; | 9536 }; |
| 9531 | 9537 |
| 9532 } } // namespace v8::internal | 9538 } } // namespace v8::internal |
| 9533 | 9539 |
| 9534 #endif // V8_OBJECTS_H_ | 9540 #endif // V8_OBJECTS_H_ |
| OLD | NEW |