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

Side by Side Diff: src/objects.h

Issue 8462010: Add a level of indirection to exception handler addresses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review changes. Created 9 years, 1 month 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/ia32/macro-assembler-ia32.cc ('k') | src/objects-inl.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 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 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after
3822 #endif // ENABLE_DISASSEMBLER 3822 #endif // ENABLE_DISASSEMBLER
3823 3823
3824 // [instruction_size]: Size of the native instructions 3824 // [instruction_size]: Size of the native instructions
3825 inline int instruction_size(); 3825 inline int instruction_size();
3826 inline void set_instruction_size(int value); 3826 inline void set_instruction_size(int value);
3827 3827
3828 // [relocation_info]: Code relocation information 3828 // [relocation_info]: Code relocation information
3829 DECL_ACCESSORS(relocation_info, ByteArray) 3829 DECL_ACCESSORS(relocation_info, ByteArray)
3830 void InvalidateRelocation(); 3830 void InvalidateRelocation();
3831 3831
3832 // [handler_table]: Fixed array containing offsets of exception handlers.
3833 DECL_ACCESSORS(handler_table, FixedArray)
3834
3832 // [deoptimization_data]: Array containing data for deopt. 3835 // [deoptimization_data]: Array containing data for deopt.
3833 DECL_ACCESSORS(deoptimization_data, FixedArray) 3836 DECL_ACCESSORS(deoptimization_data, FixedArray)
3834 3837
3835 // [code_flushing_candidate]: Field only used during garbage 3838 // [code_flushing_candidate]: Field only used during garbage
3836 // collection to hold code flushing candidates. The contents of this 3839 // collection to hold code flushing candidates. The contents of this
3837 // field does not have to be traced during garbage collection since 3840 // field does not have to be traced during garbage collection since
3838 // it is only used by the garbage collector itself. 3841 // it is only used by the garbage collector itself.
3839 DECL_ACCESSORS(next_code_flushing_candidate, Object) 3842 DECL_ACCESSORS(next_code_flushing_candidate, Object)
3840 3843
3841 // Unchecked accessors to be used during GC. 3844 // Unchecked accessors to be used during GC.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
4050 void CodeVerify(); 4053 void CodeVerify();
4051 #endif 4054 #endif
4052 4055
4053 // Max loop nesting marker used to postpose OSR. We don't take loop 4056 // Max loop nesting marker used to postpose OSR. We don't take loop
4054 // nesting that is deeper than 5 levels into account. 4057 // nesting that is deeper than 5 levels into account.
4055 static const int kMaxLoopNestingMarker = 6; 4058 static const int kMaxLoopNestingMarker = 6;
4056 4059
4057 // Layout description. 4060 // Layout description.
4058 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; 4061 static const int kInstructionSizeOffset = HeapObject::kHeaderSize;
4059 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; 4062 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize;
4063 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize;
4060 static const int kDeoptimizationDataOffset = 4064 static const int kDeoptimizationDataOffset =
4061 kRelocationInfoOffset + kPointerSize; 4065 kHandlerTableOffset + kPointerSize;
4062 static const int kNextCodeFlushingCandidateOffset = 4066 static const int kNextCodeFlushingCandidateOffset =
4063 kDeoptimizationDataOffset + kPointerSize; 4067 kDeoptimizationDataOffset + kPointerSize;
4064 static const int kFlagsOffset = 4068 static const int kFlagsOffset =
4065 kNextCodeFlushingCandidateOffset + kPointerSize; 4069 kNextCodeFlushingCandidateOffset + kPointerSize;
4066 4070
4067 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize; 4071 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize;
4068 static const int kKindSpecificFlagsSize = 2 * kIntSize; 4072 static const int kKindSpecificFlagsSize = 2 * kIntSize;
4069 4073
4070 static const int kHeaderPaddingStart = kKindSpecificFlagsOffset + 4074 static const int kHeaderPaddingStart = kKindSpecificFlagsOffset +
4071 kKindSpecificFlagsSize; 4075 kKindSpecificFlagsSize;
(...skipping 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after
7858 } else { 7862 } else {
7859 value &= ~(1 << bit_position); 7863 value &= ~(1 << bit_position);
7860 } 7864 }
7861 return value; 7865 return value;
7862 } 7866 }
7863 }; 7867 };
7864 7868
7865 } } // namespace v8::internal 7869 } } // namespace v8::internal
7866 7870
7867 #endif // V8_OBJECTS_H_ 7871 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698