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

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

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Try to fix android compile 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 6829 matching lines...) Expand 10 before | Expand all | Expand 10 after
6840 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) 6840 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
6841 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) 6841 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset)
6842 #define CODE_ACCESSORS(name, type, offset) \ 6842 #define CODE_ACCESSORS(name, type, offset) \
6843 ACCESSORS_CHECKED2(Code, name, type, offset, true, \ 6843 ACCESSORS_CHECKED2(Code, name, type, offset, true, \
6844 !GetHeap()->InNewSpace(value)) 6844 !GetHeap()->InNewSpace(value))
6845 CODE_ACCESSORS(relocation_info, ByteArray, kRelocationInfoOffset) 6845 CODE_ACCESSORS(relocation_info, ByteArray, kRelocationInfoOffset)
6846 CODE_ACCESSORS(handler_table, FixedArray, kHandlerTableOffset) 6846 CODE_ACCESSORS(handler_table, FixedArray, kHandlerTableOffset)
6847 CODE_ACCESSORS(deoptimization_data, FixedArray, kDeoptimizationDataOffset) 6847 CODE_ACCESSORS(deoptimization_data, FixedArray, kDeoptimizationDataOffset)
6848 CODE_ACCESSORS(source_position_table, ByteArray, kSourcePositionTableOffset) 6848 CODE_ACCESSORS(source_position_table, ByteArray, kSourcePositionTableOffset)
6849 CODE_ACCESSORS(protected_instructions, FixedArray, kProtectedInstructionOffset) 6849 CODE_ACCESSORS(protected_instructions, FixedArray, kProtectedInstructionOffset)
6850 CODE_ACCESSORS(trap_handler_index, Smi, kTrapHandlerIndex)
6850 CODE_ACCESSORS(raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) 6851 CODE_ACCESSORS(raw_type_feedback_info, Object, kTypeFeedbackInfoOffset)
6851 CODE_ACCESSORS(next_code_link, Object, kNextCodeLinkOffset) 6852 CODE_ACCESSORS(next_code_link, Object, kNextCodeLinkOffset)
6852 #undef CODE_ACCESSORS 6853 #undef CODE_ACCESSORS
6853 6854
6854 void Code::WipeOutHeader() { 6855 void Code::WipeOutHeader() {
6855 WRITE_FIELD(this, kRelocationInfoOffset, NULL); 6856 WRITE_FIELD(this, kRelocationInfoOffset, NULL);
6856 WRITE_FIELD(this, kHandlerTableOffset, NULL); 6857 WRITE_FIELD(this, kHandlerTableOffset, NULL);
6857 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); 6858 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL);
6858 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); 6859 WRITE_FIELD(this, kSourcePositionTableOffset, NULL);
6859 // Do not wipe out major/minor keys on a code stub or IC 6860 // Do not wipe out major/minor keys on a code stub or IC
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
8453 #undef WRITE_INT64_FIELD 8454 #undef WRITE_INT64_FIELD
8454 #undef READ_BYTE_FIELD 8455 #undef READ_BYTE_FIELD
8455 #undef WRITE_BYTE_FIELD 8456 #undef WRITE_BYTE_FIELD
8456 #undef NOBARRIER_READ_BYTE_FIELD 8457 #undef NOBARRIER_READ_BYTE_FIELD
8457 #undef NOBARRIER_WRITE_BYTE_FIELD 8458 #undef NOBARRIER_WRITE_BYTE_FIELD
8458 8459
8459 } // namespace internal 8460 } // namespace internal
8460 } // namespace v8 8461 } // namespace v8
8461 8462
8462 #endif // V8_OBJECTS_INL_H_ 8463 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | src/trap-handler/signal-handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698