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

Side by Side Diff: src/compiler/instruction-codes.h

Issue 763963002: [turbofan] Add checked load/store operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reapply fix. Created 6 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/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-selector.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_INSTRUCTION_CODES_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_CODES_H_
6 #define V8_COMPILER_INSTRUCTION_CODES_H_ 6 #define V8_COMPILER_INSTRUCTION_CODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #if V8_TARGET_ARCH_ARM 10 #if V8_TARGET_ARCH_ARM
(...skipping 21 matching lines...) Expand all
32 // Target-specific opcodes that specify which assembly sequence to emit. 32 // Target-specific opcodes that specify which assembly sequence to emit.
33 // Most opcodes specify a single instruction. 33 // Most opcodes specify a single instruction.
34 #define ARCH_OPCODE_LIST(V) \ 34 #define ARCH_OPCODE_LIST(V) \
35 V(ArchCallCodeObject) \ 35 V(ArchCallCodeObject) \
36 V(ArchCallJSFunction) \ 36 V(ArchCallJSFunction) \
37 V(ArchJmp) \ 37 V(ArchJmp) \
38 V(ArchNop) \ 38 V(ArchNop) \
39 V(ArchRet) \ 39 V(ArchRet) \
40 V(ArchStackPointer) \ 40 V(ArchStackPointer) \
41 V(ArchTruncateDoubleToI) \ 41 V(ArchTruncateDoubleToI) \
42 V(CheckedLoadInt8) \
43 V(CheckedLoadUint8) \
44 V(CheckedLoadInt16) \
45 V(CheckedLoadUint16) \
46 V(CheckedLoadWord32) \
47 V(CheckedLoadFloat32) \
48 V(CheckedLoadFloat64) \
49 V(CheckedStoreWord8) \
50 V(CheckedStoreWord16) \
51 V(CheckedStoreWord32) \
52 V(CheckedStoreFloat32) \
53 V(CheckedStoreFloat64) \
42 TARGET_ARCH_OPCODE_LIST(V) 54 TARGET_ARCH_OPCODE_LIST(V)
43 55
44 enum ArchOpcode { 56 enum ArchOpcode {
45 #define DECLARE_ARCH_OPCODE(Name) k##Name, 57 #define DECLARE_ARCH_OPCODE(Name) k##Name,
46 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE) 58 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE)
47 #undef DECLARE_ARCH_OPCODE 59 #undef DECLARE_ARCH_OPCODE
48 #define COUNT_ARCH_OPCODE(Name) +1 60 #define COUNT_ARCH_OPCODE(Name) +1
49 kLastArchOpcode = -1 ARCH_OPCODE_LIST(COUNT_ARCH_OPCODE) 61 kLastArchOpcode = -1 ARCH_OPCODE_LIST(COUNT_ARCH_OPCODE)
50 #undef COUNT_ARCH_OPCODE 62 #undef COUNT_ARCH_OPCODE
51 }; 63 };
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 typedef BitField<AddressingMode, 7, 5> AddressingModeField; 130 typedef BitField<AddressingMode, 7, 5> AddressingModeField;
119 typedef BitField<FlagsMode, 12, 2> FlagsModeField; 131 typedef BitField<FlagsMode, 12, 2> FlagsModeField;
120 typedef BitField<FlagsCondition, 14, 5> FlagsConditionField; 132 typedef BitField<FlagsCondition, 14, 5> FlagsConditionField;
121 typedef BitField<int, 14, 18> MiscField; 133 typedef BitField<int, 14, 18> MiscField;
122 134
123 } // namespace compiler 135 } // namespace compiler
124 } // namespace internal 136 } // namespace internal
125 } // namespace v8 137 } // namespace v8
126 138
127 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ 139 #endif // V8_COMPILER_INSTRUCTION_CODES_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698