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

Side by Side Diff: src/compiler/arm/code-generator-arm.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 | « no previous file | src/compiler/arm64/code-generator-arm64.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/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/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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // TODO(jarin) The load of the context should be separated from the call. 159 // TODO(jarin) The load of the context should be separated from the call.
160 Register func = i.InputRegister(0); 160 Register func = i.InputRegister(0);
161 __ ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); 161 __ ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset));
162 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 162 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
163 __ Call(ip); 163 __ Call(ip);
164 AddSafepointAndDeopt(instr); 164 AddSafepointAndDeopt(instr);
165 DCHECK_EQ(LeaveCC, i.OutputSBit()); 165 DCHECK_EQ(LeaveCC, i.OutputSBit());
166 break; 166 break;
167 } 167 }
168 case kArchDeoptimize: { 168 case kArchDeoptimize: {
169 int deoptimization_id = MiscField::decode(instr->opcode()); 169 int deoptimization_id = BuildTranslation(instr, 0);
170 BuildTranslation(instr, 0, deoptimization_id); 170
171 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 171 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
172 isolate(), deoptimization_id, Deoptimizer::LAZY); 172 isolate(), deoptimization_id, Deoptimizer::LAZY);
173 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 173 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
174 DCHECK_EQ(LeaveCC, i.OutputSBit()); 174 DCHECK_EQ(LeaveCC, i.OutputSBit());
175 break; 175 break;
176 } 176 }
177 case kArchDrop: { 177 case kArchDrop: {
178 int words = MiscField::decode(instr->opcode()); 178 int words = MiscField::decode(instr->opcode());
179 __ Drop(words); 179 __ Drop(words);
180 DCHECK_LT(0, words); 180 DCHECK_LT(0, words);
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 841
842 void CodeGenerator::AddNopForSmiCodeInlining() { 842 void CodeGenerator::AddNopForSmiCodeInlining() {
843 // On 32-bit ARM we do not insert nops for inlined Smi code. 843 // On 32-bit ARM we do not insert nops for inlined Smi code.
844 UNREACHABLE(); 844 UNREACHABLE();
845 } 845 }
846 846
847 #undef __ 847 #undef __
848 } 848 }
849 } 849 }
850 } // namespace v8::internal::compiler 850 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698