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

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

Issue 1233413003: Version 4.4.63.20 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
Patch Set: Created 5 years, 5 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/arm/assembler-arm-inl.h ('k') | test/cctest/test-assembler-arm.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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 : 0; 309 : 0;
310 __ Drop(pop_count); 310 __ Drop(pop_count);
311 } 311 }
312 } 312 }
313 313
314 314
315 // Assembles an instruction after register allocation, producing machine code. 315 // Assembles an instruction after register allocation, producing machine code.
316 void CodeGenerator::AssembleArchInstruction(Instruction* instr) { 316 void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
317 ArmOperandConverter i(this, instr); 317 ArmOperandConverter i(this, instr);
318 318
319 masm()->MaybeCheckConstPool();
320
319 switch (ArchOpcodeField::decode(instr->opcode())) { 321 switch (ArchOpcodeField::decode(instr->opcode())) {
320 case kArchCallCodeObject: { 322 case kArchCallCodeObject: {
321 EnsureSpaceForLazyDeopt(); 323 EnsureSpaceForLazyDeopt();
322 if (instr->InputAt(0)->IsImmediate()) { 324 if (instr->InputAt(0)->IsImmediate()) {
323 __ Call(Handle<Code>::cast(i.InputHeapObject(0)), 325 __ Call(Handle<Code>::cast(i.InputHeapObject(0)),
324 RelocInfo::CODE_TARGET); 326 RelocInfo::CODE_TARGET);
325 } else { 327 } else {
326 __ add(ip, i.InputRegister(0), 328 __ add(ip, i.InputRegister(0),
327 Operand(Code::kHeaderSize - kHeapObjectTag)); 329 Operand(Code::kHeaderSize - kHeapObjectTag));
328 __ Call(ip); 330 __ Call(ip);
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 } 1216 }
1215 } 1217 }
1216 MarkLazyDeoptSite(); 1218 MarkLazyDeoptSite();
1217 } 1219 }
1218 1220
1219 #undef __ 1221 #undef __
1220 1222
1221 } // namespace compiler 1223 } // namespace compiler
1222 } // namespace internal 1224 } // namespace internal
1223 } // namespace v8 1225 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698