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

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

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Removing spurious changes Created 4 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
« no previous file with comments | « src/objects.h ('k') | src/trap-handler/trap-handler.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6790 matching lines...) Expand 10 before | Expand all | Expand 10 after
6801 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset) 6801 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset)
6802 6802
6803 6803
6804 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 6804 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
6805 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) 6805 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
6806 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) 6806 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset)
6807 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 6807 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
6808 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 6808 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
6809 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 6809 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
6810 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) 6810 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset)
6811 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset)
6811 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) 6812 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset)
6812 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) 6813 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset)
6813 6814
6814 void Code::WipeOutHeader() { 6815 void Code::WipeOutHeader() {
6815 WRITE_FIELD(this, kRelocationInfoOffset, NULL); 6816 WRITE_FIELD(this, kRelocationInfoOffset, NULL);
6816 WRITE_FIELD(this, kHandlerTableOffset, NULL); 6817 WRITE_FIELD(this, kHandlerTableOffset, NULL);
6817 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); 6818 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL);
6818 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); 6819 WRITE_FIELD(this, kSourcePositionTableOffset, NULL);
6819 // Do not wipe out major/minor keys on a code stub or IC 6820 // Do not wipe out major/minor keys on a code stub or IC
6820 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { 6821 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) {
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
8449 #undef WRITE_INT64_FIELD 8450 #undef WRITE_INT64_FIELD
8450 #undef READ_BYTE_FIELD 8451 #undef READ_BYTE_FIELD
8451 #undef WRITE_BYTE_FIELD 8452 #undef WRITE_BYTE_FIELD
8452 #undef NOBARRIER_READ_BYTE_FIELD 8453 #undef NOBARRIER_READ_BYTE_FIELD
8453 #undef NOBARRIER_WRITE_BYTE_FIELD 8454 #undef NOBARRIER_WRITE_BYTE_FIELD
8454 8455
8455 } // namespace internal 8456 } // namespace internal
8456 } // namespace v8 8457 } // namespace v8
8457 8458
8458 #endif // V8_OBJECTS_INL_H_ 8459 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/trap-handler/trap-handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698