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

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

Issue 1644283002: Revert of [turbofan] Add the StackSlot operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/arm64/code-generator-arm64.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 Register scratch1 = i.TempRegister(1); 528 Register scratch1 = i.TempRegister(1);
529 auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value, 529 auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value,
530 scratch0, scratch1, mode); 530 scratch0, scratch1, mode);
531 __ str(value, MemOperand(object, index)); 531 __ str(value, MemOperand(object, index));
532 __ CheckPageFlag(object, scratch0, 532 __ CheckPageFlag(object, scratch0,
533 MemoryChunk::kPointersFromHereAreInterestingMask, ne, 533 MemoryChunk::kPointersFromHereAreInterestingMask, ne,
534 ool->entry()); 534 ool->entry());
535 __ bind(ool->exit()); 535 __ bind(ool->exit());
536 break; 536 break;
537 } 537 }
538 case kArchStackSlot: {
539 FrameOffset offset =
540 frame_access_state()->GetFrameOffset(i.InputInt32(0));
541 Register base;
542 if (offset.from_stack_pointer()) {
543 base = sp;
544 } else {
545 base = fp;
546 }
547 __ add(i.OutputRegister(0), base, Operand(offset.offset()));
548 break;
549 }
550 case kArmAdd: 538 case kArmAdd:
551 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 539 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
552 i.OutputSBit()); 540 i.OutputSBit());
553 break; 541 break;
554 case kArmAnd: 542 case kArmAnd:
555 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 543 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
556 i.OutputSBit()); 544 i.OutputSBit());
557 break; 545 break;
558 case kArmBic: 546 case kArmBic:
559 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 547 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 padding_size -= v8::internal::Assembler::kInstrSize; 1391 padding_size -= v8::internal::Assembler::kInstrSize;
1404 } 1392 }
1405 } 1393 }
1406 } 1394 }
1407 1395
1408 #undef __ 1396 #undef __
1409 1397
1410 } // namespace compiler 1398 } // namespace compiler
1411 } // namespace internal 1399 } // namespace internal
1412 } // namespace v8 1400 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698