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

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

Issue 1695313002: [turbofan] Add an operator to access the parent frame pointer (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 | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/code-generator-mips64.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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 597 }
598 case kArchRet: 598 case kArchRet:
599 AssembleReturn(); 599 AssembleReturn();
600 break; 600 break;
601 case kArchStackPointer: 601 case kArchStackPointer:
602 __ mov(i.OutputRegister(), sp); 602 __ mov(i.OutputRegister(), sp);
603 break; 603 break;
604 case kArchFramePointer: 604 case kArchFramePointer:
605 __ mov(i.OutputRegister(), fp); 605 __ mov(i.OutputRegister(), fp);
606 break; 606 break;
607 case kArchParentFramePointer:
608 if (frame_access_state()->frame()->needs_frame()) {
609 __ lw(i.OutputRegister(), MemOperand(fp, 0));
610 } else {
611 __ mov(i.OutputRegister(), fp);
612 }
613 break;
607 case kArchTruncateDoubleToI: 614 case kArchTruncateDoubleToI:
608 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); 615 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
609 break; 616 break;
610 case kArchStoreWithWriteBarrier: { 617 case kArchStoreWithWriteBarrier: {
611 RecordWriteMode mode = 618 RecordWriteMode mode =
612 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); 619 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode()));
613 Register object = i.InputRegister(0); 620 Register object = i.InputRegister(0);
614 Register index = i.InputRegister(1); 621 Register index = i.InputRegister(1);
615 Register value = i.InputRegister(2); 622 Register value = i.InputRegister(2);
616 Register scratch0 = i.TempRegister(0); 623 Register scratch0 = i.TempRegister(0);
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 padding_size -= v8::internal::Assembler::kInstrSize; 1811 padding_size -= v8::internal::Assembler::kInstrSize;
1805 } 1812 }
1806 } 1813 }
1807 } 1814 }
1808 1815
1809 #undef __ 1816 #undef __
1810 1817
1811 } // namespace compiler 1818 } // namespace compiler
1812 } // namespace internal 1819 } // namespace internal
1813 } // namespace v8 1820 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698