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

Side by Side Diff: src/objects-inl.h

Issue 14031028: Generators save and restore stack handlers (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Rebased before commit Created 7 years, 7 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/objects-debug.cc ('k') | src/runtime.cc » ('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 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after
5101 void Foreign::set_foreign_address(Address value) { 5101 void Foreign::set_foreign_address(Address value) {
5102 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); 5102 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value));
5103 } 5103 }
5104 5104
5105 5105
5106 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) 5106 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset)
5107 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) 5107 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
5108 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) 5108 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset)
5109 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) 5109 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset)
5110 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) 5110 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset)
5111 SMI_ACCESSORS(JSGeneratorObject, stack_handler_index, kStackHandlerIndexOffset)
5111 5112
5112 5113
5113 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { 5114 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) {
5114 ASSERT(obj->IsJSGeneratorObject()); 5115 ASSERT(obj->IsJSGeneratorObject());
5115 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); 5116 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize);
5116 return reinterpret_cast<JSGeneratorObject*>(obj); 5117 return reinterpret_cast<JSGeneratorObject*>(obj);
5117 } 5118 }
5118 5119
5119 5120
5120 ACCESSORS(JSModule, context, Object, kContextOffset) 5121 ACCESSORS(JSModule, context, Object, kContextOffset)
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
6197 #undef WRITE_UINT32_FIELD 6198 #undef WRITE_UINT32_FIELD
6198 #undef READ_SHORT_FIELD 6199 #undef READ_SHORT_FIELD
6199 #undef WRITE_SHORT_FIELD 6200 #undef WRITE_SHORT_FIELD
6200 #undef READ_BYTE_FIELD 6201 #undef READ_BYTE_FIELD
6201 #undef WRITE_BYTE_FIELD 6202 #undef WRITE_BYTE_FIELD
6202 6203
6203 6204
6204 } } // namespace v8::internal 6205 } } // namespace v8::internal
6205 6206
6206 #endif // V8_OBJECTS_INL_H_ 6207 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698