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

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 2244373002: s390: Allow larger Operands/Displacements/Offsets in s390 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | src/compiler/s390/instruction-codes-s390.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 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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 UNREACHABLE(); 64 UNREACHABLE();
65 return Operand::Zero(); 65 return Operand::Zero();
66 } 66 }
67 67
68 MemOperand MemoryOperand(AddressingMode* mode, size_t* first_index) { 68 MemOperand MemoryOperand(AddressingMode* mode, size_t* first_index) {
69 const size_t index = *first_index; 69 const size_t index = *first_index;
70 if (mode) *mode = AddressingModeField::decode(instr_->opcode()); 70 if (mode) *mode = AddressingModeField::decode(instr_->opcode());
71 switch (AddressingModeField::decode(instr_->opcode())) { 71 switch (AddressingModeField::decode(instr_->opcode())) {
72 case kMode_None: 72 case kMode_None:
73 break; 73 break;
74 case kMode_MR:
75 *first_index += 1;
76 return MemOperand(InputRegister(index + 0), 0);
74 case kMode_MRI: 77 case kMode_MRI:
75 *first_index += 2; 78 *first_index += 2;
76 return MemOperand(InputRegister(index + 0), InputInt32(index + 1)); 79 return MemOperand(InputRegister(index + 0), InputInt32(index + 1));
77 case kMode_MRR: 80 case kMode_MRR:
78 *first_index += 2; 81 *first_index += 2;
79 return MemOperand(InputRegister(index + 0), InputRegister(index + 1)); 82 return MemOperand(InputRegister(index + 0), InputRegister(index + 1));
83 case kMode_MRRI:
84 *first_index += 3;
85 return MemOperand(InputRegister(index + 0), InputRegister(index + 1),
86 InputInt32(index + 2));
80 } 87 }
81 UNREACHABLE(); 88 UNREACHABLE();
82 return MemOperand(r0); 89 return MemOperand(r0);
83 } 90 }
84 91
85 MemOperand MemoryOperand(AddressingMode* mode = NULL, 92 MemOperand MemoryOperand(AddressingMode* mode = NULL,
86 size_t first_index = 0) { 93 size_t first_index = 0) {
87 return MemoryOperand(mode, &first_index); 94 return MemoryOperand(mode, &first_index);
88 } 95 }
89 96
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 padding_size -= 2; 2372 padding_size -= 2;
2366 } 2373 }
2367 } 2374 }
2368 } 2375 }
2369 2376
2370 #undef __ 2377 #undef __
2371 2378
2372 } // namespace compiler 2379 } // namespace compiler
2373 } // namespace internal 2380 } // namespace internal
2374 } // namespace v8 2381 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/instruction-codes-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698