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

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

Issue 6969037: Make the code flushing candidate field explicit in code objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after
3541 JSMessageObject* JSMessageObject::cast(Object* obj) { 3541 JSMessageObject* JSMessageObject::cast(Object* obj) {
3542 ASSERT(obj->IsJSMessageObject()); 3542 ASSERT(obj->IsJSMessageObject());
3543 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); 3543 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize);
3544 return reinterpret_cast<JSMessageObject*>(obj); 3544 return reinterpret_cast<JSMessageObject*>(obj);
3545 } 3545 }
3546 3546
3547 3547
3548 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 3548 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
3549 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 3549 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
3550 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 3550 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
3551 ACCESSORS(Code, next_code_flushing_candidate,
3552 Object, kNextCodeFlushingCandidateOffset)
3551 3553
3552 3554
3553 byte* Code::instruction_start() { 3555 byte* Code::instruction_start() {
3554 return FIELD_ADDR(this, kHeaderSize); 3556 return FIELD_ADDR(this, kHeaderSize);
3555 } 3557 }
3556 3558
3557 3559
3558 byte* Code::instruction_end() { 3560 byte* Code::instruction_end() {
3559 return instruction_start() + instruction_size(); 3561 return instruction_start() + instruction_size();
3560 } 3562 }
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
4206 #undef WRITE_INT_FIELD 4208 #undef WRITE_INT_FIELD
4207 #undef READ_SHORT_FIELD 4209 #undef READ_SHORT_FIELD
4208 #undef WRITE_SHORT_FIELD 4210 #undef WRITE_SHORT_FIELD
4209 #undef READ_BYTE_FIELD 4211 #undef READ_BYTE_FIELD
4210 #undef WRITE_BYTE_FIELD 4212 #undef WRITE_BYTE_FIELD
4211 4213
4212 4214
4213 } } // namespace v8::internal 4215 } } // namespace v8::internal
4214 4216
4215 #endif // V8_OBJECTS_INL_H_ 4217 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698