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

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: Use int instead of Smi* in Unwind / Rewind 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
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 5114 matching lines...) Expand 10 before | Expand all | Expand 10 after
5125 void Foreign::set_foreign_address(Address value) { 5125 void Foreign::set_foreign_address(Address value) {
5126 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); 5126 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value));
5127 } 5127 }
5128 5128
5129 5129
5130 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) 5130 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset)
5131 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) 5131 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
5132 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) 5132 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset)
5133 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) 5133 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset)
5134 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) 5134 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset)
5135 SMI_ACCESSORS(JSGeneratorObject, stack_handler_index, kStackHandlerIndexOffset)
5135 5136
5136 5137
5137 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { 5138 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) {
5138 ASSERT(obj->IsJSGeneratorObject()); 5139 ASSERT(obj->IsJSGeneratorObject());
5139 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); 5140 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize);
5140 return reinterpret_cast<JSGeneratorObject*>(obj); 5141 return reinterpret_cast<JSGeneratorObject*>(obj);
5141 } 5142 }
5142 5143
5143 5144
5144 ACCESSORS(JSModule, context, Object, kContextOffset) 5145 ACCESSORS(JSModule, context, Object, kContextOffset)
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
6221 #undef WRITE_UINT32_FIELD 6222 #undef WRITE_UINT32_FIELD
6222 #undef READ_SHORT_FIELD 6223 #undef READ_SHORT_FIELD
6223 #undef WRITE_SHORT_FIELD 6224 #undef WRITE_SHORT_FIELD
6224 #undef READ_BYTE_FIELD 6225 #undef READ_BYTE_FIELD
6225 #undef WRITE_BYTE_FIELD 6226 #undef WRITE_BYTE_FIELD
6226 6227
6227 6228
6228 } } // namespace v8::internal 6229 } } // namespace v8::internal
6229 6230
6230 #endif // V8_OBJECTS_INL_H_ 6231 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/frames.cc ('K') | « src/objects-debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698