OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |