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

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

Issue 1146963002: Add %GetCallerJSFunction intrinsic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 6 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/verifier.cc ('k') | src/runtime/runtime.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/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/scopes.h" 10 #include "src/scopes.h"
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 619 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
620 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); 620 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER);
621 break; 621 break;
622 } 622 }
623 case kArchRet: 623 case kArchRet:
624 AssembleReturn(); 624 AssembleReturn();
625 break; 625 break;
626 case kArchStackPointer: 626 case kArchStackPointer:
627 __ movq(i.OutputRegister(), rsp); 627 __ movq(i.OutputRegister(), rsp);
628 break; 628 break;
629 case kArchFramePointer:
630 __ movq(i.OutputRegister(), rbp);
631 break;
629 case kArchTruncateDoubleToI: { 632 case kArchTruncateDoubleToI: {
630 auto result = i.OutputRegister(); 633 auto result = i.OutputRegister();
631 auto input = i.InputDoubleRegister(0); 634 auto input = i.InputDoubleRegister(0);
632 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input); 635 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input);
633 __ cvttsd2siq(result, input); 636 __ cvttsd2siq(result, input);
634 __ cmpq(result, Immediate(1)); 637 __ cmpq(result, Immediate(1));
635 __ j(overflow, ool->entry()); 638 __ j(overflow, ool->entry());
636 __ bind(ool->exit()); 639 __ bind(ool->exit());
637 break; 640 break;
638 } 641 }
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 } 1713 }
1711 } 1714 }
1712 MarkLazyDeoptSite(); 1715 MarkLazyDeoptSite();
1713 } 1716 }
1714 1717
1715 #undef __ 1718 #undef __
1716 1719
1717 } // namespace internal 1720 } // namespace internal
1718 } // namespace compiler 1721 } // namespace compiler
1719 } // namespace v8 1722 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698