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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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/code-stub-assembler.cc ('k') | src/compiler/instruction-codes.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 case kArchRet: 465 case kArchRet:
466 AssembleReturn(); 466 AssembleReturn();
467 break; 467 break;
468 case kArchStackPointer: 468 case kArchStackPointer:
469 __ mov(i.OutputRegister(), esp); 469 __ mov(i.OutputRegister(), esp);
470 break; 470 break;
471 case kArchFramePointer: 471 case kArchFramePointer:
472 __ mov(i.OutputRegister(), ebp); 472 __ mov(i.OutputRegister(), ebp);
473 break; 473 break;
474 case kArchParentFramePointer:
475 if (frame_access_state()->frame()->needs_frame()) {
476 __ mov(i.OutputRegister(), Operand(ebp, 0));
477 } else {
478 __ mov(i.OutputRegister(), ebp);
479 }
480 break;
474 case kArchTruncateDoubleToI: { 481 case kArchTruncateDoubleToI: {
475 auto result = i.OutputRegister(); 482 auto result = i.OutputRegister();
476 auto input = i.InputDoubleRegister(0); 483 auto input = i.InputDoubleRegister(0);
477 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input); 484 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input);
478 __ cvttsd2si(result, Operand(input)); 485 __ cvttsd2si(result, Operand(input));
479 __ cmp(result, 1); 486 __ cmp(result, 1);
480 __ j(overflow, ool->entry()); 487 __ j(overflow, ool->entry());
481 __ bind(ool->exit()); 488 __ bind(ool->exit());
482 break; 489 break;
483 } 490 }
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1739 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1733 __ Nop(padding_size); 1740 __ Nop(padding_size);
1734 } 1741 }
1735 } 1742 }
1736 1743
1737 #undef __ 1744 #undef __
1738 1745
1739 } // namespace compiler 1746 } // namespace compiler
1740 } // namespace internal 1747 } // namespace internal
1741 } // namespace v8 1748 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698