Changeset 220625 in webkit for trunk/Source/JavaScriptCore/b3/B3ValueKey.cpp
- Timestamp:
- Aug 12, 2017, 11:44:48 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/b3/B3ValueKey.cpp
r208848 r220625 1 1 /* 2 * Copyright (C) 2015-201 6Apple Inc. All rights reserved.2 * Copyright (C) 2015-2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 57 57 Value* ValueKey::materialize(Procedure& proc, Origin origin) const 58 58 { 59 // NOTE: We sometimes cannot return a Value* for some key, like for Check and friends. That's because 60 // though those nodes have side exit effects. It would be weird to materialize anything that has a side 61 // exit. We can't possibly know enough about a side exit to know where it would be safe to emit one. 59 62 switch (opcode()) { 60 63 case FramePointer: 61 64 return proc.add<Value>(kind(), type(), origin); 62 65 case Identity: 66 case Opaque: 67 case Abs: 68 case Floor: 69 case Ceil: 63 70 case Sqrt: 71 case Neg: 72 case Depend: 64 73 case SExt8: 65 74 case SExt16: … … 72 81 case FloatToDouble: 73 82 case DoubleToFloat: 74 case Check:75 83 return proc.add<Value>(kind(), type(), origin, child(proc, 0)); 76 84 case Add: … … 97 105 case AboveEqual: 98 106 case BelowEqual: 107 case EqualOrUnordered: 99 108 return proc.add<Value>(kind(), type(), origin, child(proc, 0), child(proc, 1)); 100 109 case Select:
Note:
See TracChangeset
for help on using the changeset viewer.