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

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

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Split signal handler into a separate file Created 3 years, 11 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 // 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 6796 matching lines...) Expand 10 before | Expand all | Expand 10 after
6807 SMI_ACCESSORS(JSMessageObject, error_level, kErrorLevelOffset) 6807 SMI_ACCESSORS(JSMessageObject, error_level, kErrorLevelOffset)
6808 6808
6809 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 6809 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
6810 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) 6810 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
6811 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) 6811 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset)
6812 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 6812 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
6813 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 6813 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
6814 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 6814 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
6815 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) 6815 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset)
6816 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset) 6816 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset)
6817 ACCESSORS(Code, trap_handler_index, Smi, kTrapHandlerIndex)
6817 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) 6818 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset)
6818 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) 6819 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset)
6819 6820
6820 void Code::WipeOutHeader() { 6821 void Code::WipeOutHeader() {
6821 WRITE_FIELD(this, kRelocationInfoOffset, NULL); 6822 WRITE_FIELD(this, kRelocationInfoOffset, NULL);
6822 WRITE_FIELD(this, kHandlerTableOffset, NULL); 6823 WRITE_FIELD(this, kHandlerTableOffset, NULL);
6823 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); 6824 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL);
6824 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); 6825 WRITE_FIELD(this, kSourcePositionTableOffset, NULL);
6825 // Do not wipe out major/minor keys on a code stub or IC 6826 // Do not wipe out major/minor keys on a code stub or IC
6826 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { 6827 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) {
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
8440 #undef WRITE_INT64_FIELD 8441 #undef WRITE_INT64_FIELD
8441 #undef READ_BYTE_FIELD 8442 #undef READ_BYTE_FIELD
8442 #undef WRITE_BYTE_FIELD 8443 #undef WRITE_BYTE_FIELD
8443 #undef NOBARRIER_READ_BYTE_FIELD 8444 #undef NOBARRIER_READ_BYTE_FIELD
8444 #undef NOBARRIER_WRITE_BYTE_FIELD 8445 #undef NOBARRIER_WRITE_BYTE_FIELD
8445 8446
8446 } // namespace internal 8447 } // namespace internal
8447 } // namespace v8 8448 } // namespace v8
8448 8449
8449 #endif // V8_OBJECTS_INL_H_ 8450 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698