| OLD | NEW |
| 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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/compilation-info.h" | 7 #include "src/compilation-info.h" |
| 8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 case kMode_M1I: | 127 case kMode_M1I: |
| 128 case kMode_M2I: | 128 case kMode_M2I: |
| 129 case kMode_M4I: | 129 case kMode_M4I: |
| 130 case kMode_M8I: { | 130 case kMode_M8I: { |
| 131 Register index = InputRegister(NextOffset(offset)); | 131 Register index = InputRegister(NextOffset(offset)); |
| 132 ScaleFactor scale = ScaleFor(kMode_M1I, mode); | 132 ScaleFactor scale = ScaleFor(kMode_M1I, mode); |
| 133 int32_t disp = InputInt32(NextOffset(offset)); | 133 int32_t disp = InputInt32(NextOffset(offset)); |
| 134 return Operand(index, scale, disp); | 134 return Operand(index, scale, disp); |
| 135 } | 135 } |
| 136 case kMode_Root: { |
| 137 Register base = kRootRegister; |
| 138 int32_t disp = InputInt32(NextOffset(offset)); |
| 139 return Operand(base, disp); |
| 140 } |
| 136 case kMode_None: | 141 case kMode_None: |
| 137 UNREACHABLE(); | 142 UNREACHABLE(); |
| 138 return Operand(no_reg, 0); | 143 return Operand(no_reg, 0); |
| 139 } | 144 } |
| 140 UNREACHABLE(); | 145 UNREACHABLE(); |
| 141 return Operand(no_reg, 0); | 146 return Operand(no_reg, 0); |
| 142 } | 147 } |
| 143 | 148 |
| 144 Operand MemoryOperand(size_t first_input = 0) { | 149 Operand MemoryOperand(size_t first_input = 0) { |
| 145 return MemoryOperand(&first_input); | 150 return MemoryOperand(&first_input); |
| (...skipping 2569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2715 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2720 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2716 __ Nop(padding_size); | 2721 __ Nop(padding_size); |
| 2717 } | 2722 } |
| 2718 } | 2723 } |
| 2719 | 2724 |
| 2720 #undef __ | 2725 #undef __ |
| 2721 | 2726 |
| 2722 } // namespace compiler | 2727 } // namespace compiler |
| 2723 } // namespace internal | 2728 } // namespace internal |
| 2724 } // namespace v8 | 2729 } // namespace v8 |
| OLD | NEW |