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

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

Issue 1645653002: [turbofan] Add the StackSlot operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Explicitly state the type of test values. 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 }
538 case kArmAdd: 550 case kArmAdd:
539 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 551 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
540 i.OutputSBit()); 552 i.OutputSBit());
541 break; 553 break;
542 case kArmAnd: 554 case kArmAnd:
543 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 555 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
544 i.OutputSBit()); 556 i.OutputSBit());
545 break; 557 break;
546 case kArmBic: 558 case kArmBic:
547 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 559 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 padding_size -= v8::internal::Assembler::kInstrSize; 1403 padding_size -= v8::internal::Assembler::kInstrSize;
1392 } 1404 }
1393 } 1405 }
1394 } 1406 }
1395 1407
1396 #undef __ 1408 #undef __
1397 1409
1398 } // namespace compiler 1410 } // namespace compiler
1399 } // namespace internal 1411 } // namespace internal
1400 } // namespace v8 1412 } // 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