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

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

Issue 505133002: Unit test of instruction selection for calls with deoptimization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.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 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/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 case kArchCallJSFunction: { 153 case kArchCallJSFunction: {
154 // TODO(jarin) The load of the context should be separated from the call. 154 // TODO(jarin) The load of the context should be separated from the call.
155 Register func = i.InputRegister(0); 155 Register func = i.InputRegister(0);
156 __ Ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); 156 __ Ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset));
157 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 157 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
158 __ Call(x10); 158 __ Call(x10);
159 AddSafepointAndDeopt(instr); 159 AddSafepointAndDeopt(instr);
160 break; 160 break;
161 } 161 }
162 case kArchDeoptimize: { 162 case kArchDeoptimize: {
163 int deoptimization_id = MiscField::decode(instr->opcode()); 163 int deoptimization_id = BuildTranslation(instr, 0);
164 BuildTranslation(instr, 0, deoptimization_id); 164
165 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 165 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
166 isolate(), deoptimization_id, Deoptimizer::LAZY); 166 isolate(), deoptimization_id, Deoptimizer::LAZY);
167 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 167 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
168 break; 168 break;
169 } 169 }
170 case kArchDrop: { 170 case kArchDrop: {
171 int words = MiscField::decode(instr->opcode()); 171 int words = MiscField::decode(instr->opcode());
172 __ Drop(words); 172 __ Drop(words);
173 break; 173 break;
174 } 174 }
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 } 842 }
843 843
844 844
845 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } 845 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); }
846 846
847 #undef __ 847 #undef __
848 848
849 } // namespace compiler 849 } // namespace compiler
850 } // namespace internal 850 } // namespace internal
851 } // namespace v8 851 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698