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

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

Issue 11316218: Simplify and fix code aging. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed comment and rebased. Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/x64/codegen-x64.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 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after
4571 4571
4572 4572
4573 JSMessageObject* JSMessageObject::cast(Object* obj) { 4573 JSMessageObject* JSMessageObject::cast(Object* obj) {
4574 ASSERT(obj->IsJSMessageObject()); 4574 ASSERT(obj->IsJSMessageObject());
4575 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); 4575 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize);
4576 return reinterpret_cast<JSMessageObject*>(obj); 4576 return reinterpret_cast<JSMessageObject*>(obj);
4577 } 4577 }
4578 4578
4579 4579
4580 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 4580 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
4581 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
4581 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 4582 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
4582 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 4583 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
4583 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 4584 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
4584 4585
4585 4586
4586 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. 4587 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs.
4587 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { 4588 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) {
4588 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); 4589 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
4589 } 4590 }
4590 4591
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
5552 #undef WRITE_UINT32_FIELD 5553 #undef WRITE_UINT32_FIELD
5553 #undef READ_SHORT_FIELD 5554 #undef READ_SHORT_FIELD
5554 #undef WRITE_SHORT_FIELD 5555 #undef WRITE_SHORT_FIELD
5555 #undef READ_BYTE_FIELD 5556 #undef READ_BYTE_FIELD
5556 #undef WRITE_BYTE_FIELD 5557 #undef WRITE_BYTE_FIELD
5557 5558
5558 5559
5559 } } // namespace v8::internal 5560 } } // namespace v8::internal
5560 5561
5561 #endif // V8_OBJECTS_INL_H_ 5562 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698