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

Side by Side Diff: src/compiler/opcodes.h

Issue 1881913002: Revert of [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/raw-machine-assembler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Opcodes for control operators. 10 // Opcodes for control operators.
(...skipping 14 matching lines...) Expand all
25 V(DeoptimizeUnless) \ 25 V(DeoptimizeUnless) \
26 V(Return) \ 26 V(Return) \
27 V(TailCall) \ 27 V(TailCall) \
28 V(Terminate) \ 28 V(Terminate) \
29 V(OsrNormalEntry) \ 29 V(OsrNormalEntry) \
30 V(OsrLoopEntry) \ 30 V(OsrLoopEntry) \
31 V(Throw) \ 31 V(Throw) \
32 V(End) 32 V(End)
33 33
34 // Opcodes for constant operators. 34 // Opcodes for constant operators.
35 #define CONSTANT_OP_LIST(V) \ 35 #define CONSTANT_OP_LIST(V) \
36 V(Int32Constant) \ 36 V(Int32Constant) \
37 V(Int64Constant) \ 37 V(Int64Constant) \
38 V(Float32Constant) \ 38 V(Float32Constant) \
39 V(Float64Constant) \ 39 V(Float64Constant) \
40 V(ExternalConstant) \ 40 V(ExternalConstant) \
41 V(NumberConstant) \ 41 V(NumberConstant) \
42 V(HeapConstant) \ 42 V(HeapConstant)
43 V(RelocatableInt32Constant) \
44 V(RelocatableInt64Constant)
45 43
46 #define INNER_OP_LIST(V) \ 44 #define INNER_OP_LIST(V) \
47 V(Select) \ 45 V(Select) \
48 V(Phi) \ 46 V(Phi) \
49 V(EffectSet) \ 47 V(EffectSet) \
50 V(EffectPhi) \ 48 V(EffectPhi) \
51 V(Guard) \ 49 V(Guard) \
52 V(BeginRegion) \ 50 V(BeginRegion) \
53 V(FinishRegion) \ 51 V(FinishRegion) \
54 V(FrameState) \ 52 V(FrameState) \
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 return kStart <= value && value <= kEnd; 392 return kStart <= value && value <= kEnd;
395 } 393 }
396 394
397 // Returns true if opcode for JavaScript operator. 395 // Returns true if opcode for JavaScript operator.
398 static bool IsJsOpcode(Value value) { 396 static bool IsJsOpcode(Value value) {
399 return kJSEqual <= value && value <= kJSStackCheck; 397 return kJSEqual <= value && value <= kJSStackCheck;
400 } 398 }
401 399
402 // Returns true if opcode for constant operator. 400 // Returns true if opcode for constant operator.
403 static bool IsConstantOpcode(Value value) { 401 static bool IsConstantOpcode(Value value) {
404 return kInt32Constant <= value && value <= kRelocatableInt64Constant; 402 return kInt32Constant <= value && value <= kHeapConstant;
405 } 403 }
406 404
407 static bool IsPhiOpcode(Value value) { 405 static bool IsPhiOpcode(Value value) {
408 return value == kPhi || value == kEffectPhi; 406 return value == kPhi || value == kEffectPhi;
409 } 407 }
410 408
411 static bool IsMergeOpcode(Value value) { 409 static bool IsMergeOpcode(Value value) {
412 return value == kMerge || value == kLoop; 410 return value == kMerge || value == kLoop;
413 } 411 }
414 412
(...skipping 14 matching lines...) Expand all
429 } 427 }
430 }; 428 };
431 429
432 std::ostream& operator<<(std::ostream&, IrOpcode::Value); 430 std::ostream& operator<<(std::ostream&, IrOpcode::Value);
433 431
434 } // namespace compiler 432 } // namespace compiler
435 } // namespace internal 433 } // namespace internal
436 } // namespace v8 434 } // namespace v8
437 435
438 #endif // V8_COMPILER_OPCODES_H_ 436 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698