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

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

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: properly rebase Created 4 years, 7 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
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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize); 1308 frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize);
1309 } else { 1309 } else {
1310 __ Push(i.InputRegister(0)); 1310 __ Push(i.InputRegister(0));
1311 frame_access_state()->IncreaseSPDelta(1); 1311 frame_access_state()->IncreaseSPDelta(1);
1312 } 1312 }
1313 break; 1313 break;
1314 case kS390_PushFrame: { 1314 case kS390_PushFrame: {
1315 int num_slots = i.InputInt32(1); 1315 int num_slots = i.InputInt32(1);
1316 __ lay(sp, MemOperand(sp, -num_slots * kPointerSize)); 1316 __ lay(sp, MemOperand(sp, -num_slots * kPointerSize));
1317 if (instr->InputAt(0)->IsDoubleRegister()) { 1317 if (instr->InputAt(0)->IsDoubleRegister()) {
1318 __ StoreDouble(i.InputDoubleRegister(0), 1318 __ StoreDouble(i.InputDoubleRegister(0), MemOperand(sp));
Dan Ehrenberg 2016/05/04 22:52:36 Nit: Maybe back out this style change now that you
1319 MemOperand(sp));
1320 } else { 1319 } else {
1321 __ StoreP(i.InputRegister(0), 1320 __ StoreP(i.InputRegister(0), MemOperand(sp));
1322 MemOperand(sp));
1323 } 1321 }
1324 break; 1322 break;
1325 } 1323 }
1326 case kS390_StoreToStackSlot: { 1324 case kS390_StoreToStackSlot: {
1327 int slot = i.InputInt32(1); 1325 int slot = i.InputInt32(1);
1328 if (instr->InputAt(0)->IsDoubleRegister()) { 1326 if (instr->InputAt(0)->IsDoubleRegister()) {
1329 __ StoreDouble(i.InputDoubleRegister(0), 1327 __ StoreDouble(i.InputDoubleRegister(0),
1330 MemOperand(sp, slot * kPointerSize)); 1328 MemOperand(sp, slot * kPointerSize));
1331 } else { 1329 } else {
1332 __ StoreP(i.InputRegister(0), MemOperand(sp, slot * kPointerSize)); 1330 __ StoreP(i.InputRegister(0), MemOperand(sp, slot * kPointerSize));
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 padding_size -= 2; 2119 padding_size -= 2;
2122 } 2120 }
2123 } 2121 }
2124 } 2122 }
2125 2123
2126 #undef __ 2124 #undef __
2127 2125
2128 } // namespace compiler 2126 } // namespace compiler
2129 } // namespace internal 2127 } // namespace internal
2130 } // namespace v8 2128 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698