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

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

Issue 1116913002: MIPS: Fix 'Detect simple tail calls'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/mips/code-generator-mips.cc ('k') | no next file » | 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 #include "src/compiler/code-generator-impl.h" 6 #include "src/compiler/code-generator-impl.h"
7 #include "src/compiler/gap-resolver.h" 7 #include "src/compiler/gap-resolver.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/mips/macro-assembler-mips.h" 9 #include "src/mips/macro-assembler-mips.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 __ cvt_d_l(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \ 391 __ cvt_d_l(i.OutputDoubleRegister(), i.OutputDoubleRegister()); \
392 __ bind(ool->exit()); \ 392 __ bind(ool->exit()); \
393 __ bind(&done); \ 393 __ bind(&done); \
394 } while (0) 394 } while (0)
395 395
396 396
397 void CodeGenerator::AssembleDeconstructActivationRecord() { 397 void CodeGenerator::AssembleDeconstructActivationRecord() {
398 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 398 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
399 int stack_slots = frame()->GetSpillSlotCount(); 399 int stack_slots = frame()->GetSpillSlotCount();
400 if (descriptor->IsJSFunctionCall() || stack_slots > 0) { 400 if (descriptor->IsJSFunctionCall() || stack_slots > 0) {
401 __ mov(sp, fp); 401 __ LeaveFrame(StackFrame::MANUAL);
402 __ Pop(ra, fp);
403 int pop_count = descriptor->IsJSFunctionCall() 402 int pop_count = descriptor->IsJSFunctionCall()
404 ? static_cast<int>(descriptor->JSParameterCount()) 403 ? static_cast<int>(descriptor->JSParameterCount())
405 : 0; 404 : 0;
406 __ Drop(pop_count); 405 __ Drop(pop_count);
407 } 406 }
408 } 407 }
409 408
410 409
411 // Assembles an instruction after register allocation, producing machine code. 410 // Assembles an instruction after register allocation, producing machine code.
412 void CodeGenerator::AssembleArchInstruction(Instruction* instr) { 411 void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 } 1402 }
1404 } 1403 }
1405 MarkLazyDeoptSite(); 1404 MarkLazyDeoptSite();
1406 } 1405 }
1407 1406
1408 #undef __ 1407 #undef __
1409 1408
1410 } // namespace compiler 1409 } // namespace compiler
1411 } // namespace internal 1410 } // namespace internal
1412 } // namespace v8 1411 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698