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

Side by Side Diff: src/objects.h

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Addressing some of Jochen's feedback 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after
5105 // [deoptimization_data]: Array containing data for deopt. 5105 // [deoptimization_data]: Array containing data for deopt.
5106 DECL_ACCESSORS(deoptimization_data, FixedArray) 5106 DECL_ACCESSORS(deoptimization_data, FixedArray)
5107 5107
5108 // [source_position_table]: ByteArray for the source positions table. 5108 // [source_position_table]: ByteArray for the source positions table.
5109 DECL_ACCESSORS(source_position_table, ByteArray) 5109 DECL_ACCESSORS(source_position_table, ByteArray)
5110 5110
5111 // [protected_instructions]: Fixed array containing protected instruction and 5111 // [protected_instructions]: Fixed array containing protected instruction and
5112 // corresponding landing pad offsets. 5112 // corresponding landing pad offsets.
5113 DECL_ACCESSORS(protected_instructions, FixedArray) 5113 DECL_ACCESSORS(protected_instructions, FixedArray)
5114 5114
5115 // [trap_handler_index]: An index into the trap handler's master list of code
5116 // objects.
5117 DECL_ACCESSORS(trap_handler_index, Smi)
5118
5115 // [raw_type_feedback_info]: This field stores various things, depending on 5119 // [raw_type_feedback_info]: This field stores various things, depending on
5116 // the kind of the code object. 5120 // the kind of the code object.
5117 // FUNCTION => type feedback information. 5121 // FUNCTION => type feedback information.
5118 // STUB and ICs => major/minor key as Smi. 5122 // STUB and ICs => major/minor key as Smi.
5119 DECL_ACCESSORS(raw_type_feedback_info, Object) 5123 DECL_ACCESSORS(raw_type_feedback_info, Object)
5120 inline Object* type_feedback_info(); 5124 inline Object* type_feedback_info();
5121 inline void set_type_feedback_info( 5125 inline void set_type_feedback_info(
5122 Object* value, WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 5126 Object* value, WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
5123 inline uint32_t stub_key(); 5127 inline uint32_t stub_key();
5124 inline void set_stub_key(uint32_t key); 5128 inline void set_stub_key(uint32_t key);
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
5497 static const int kICAgeOffset = kInstructionSizeOffset + kIntSize; 5501 static const int kICAgeOffset = kInstructionSizeOffset + kIntSize;
5498 static const int kFlagsOffset = kICAgeOffset + kIntSize; 5502 static const int kFlagsOffset = kICAgeOffset + kIntSize;
5499 static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize; 5503 static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize;
5500 static const int kKindSpecificFlags2Offset = 5504 static const int kKindSpecificFlags2Offset =
5501 kKindSpecificFlags1Offset + kIntSize; 5505 kKindSpecificFlags1Offset + kIntSize;
5502 // Note: We might be able to squeeze this into the flags above. 5506 // Note: We might be able to squeeze this into the flags above.
5503 static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize; 5507 static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize;
5504 static const int kConstantPoolOffset = kPrologueOffset + kIntSize; 5508 static const int kConstantPoolOffset = kPrologueOffset + kIntSize;
5505 static const int kBuiltinIndexOffset = 5509 static const int kBuiltinIndexOffset =
5506 kConstantPoolOffset + kConstantPoolSize; 5510 kConstantPoolOffset + kConstantPoolSize;
5507 static const int kHeaderPaddingStart = kBuiltinIndexOffset + kIntSize; 5511 static const int kTrapHandlerIndex = kBuiltinIndexOffset + kIntSize;
5512 static const int kHeaderPaddingStart = kTrapHandlerIndex + kIntSize;
5508 5513
5509 enum TrapFields { kTrapCodeOffset, kTrapLandingOffset, kTrapDataSize }; 5514 enum TrapFields { kTrapCodeOffset, kTrapLandingOffset, kTrapDataSize };
5510 5515
5511 5516
5512 // Add padding to align the instruction start following right after 5517 // Add padding to align the instruction start following right after
5513 // the Code object header. 5518 // the Code object header.
5514 static const int kHeaderSize = 5519 static const int kHeaderSize =
5515 (kHeaderPaddingStart + kCodeAlignmentMask) & ~kCodeAlignmentMask; 5520 (kHeaderPaddingStart + kCodeAlignmentMask) & ~kCodeAlignmentMask;
5516 5521
5517 inline int GetUnwindingInfoSizeOffset() const; 5522 inline int GetUnwindingInfoSizeOffset() const;
(...skipping 6231 matching lines...) Expand 10 before | Expand all | Expand 10 after
11749 } 11754 }
11750 }; 11755 };
11751 11756
11752 11757
11753 } // NOLINT, false-positive due to second-order macros. 11758 } // NOLINT, false-positive due to second-order macros.
11754 } // NOLINT, false-positive due to second-order macros. 11759 } // NOLINT, false-positive due to second-order macros.
11755 11760
11756 #include "src/objects/object-macros-undef.h" 11761 #include "src/objects/object-macros-undef.h"
11757 11762
11758 #endif // V8_OBJECTS_H_ 11763 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698