OLD | NEW |
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 Loading... |
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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 } | 1336 } |
1338 } | 1337 } |
1339 MarkLazyDeoptSite(); | 1338 MarkLazyDeoptSite(); |
1340 } | 1339 } |
1341 | 1340 |
1342 #undef __ | 1341 #undef __ |
1343 | 1342 |
1344 } // namespace compiler | 1343 } // namespace compiler |
1345 } // namespace internal | 1344 } // namespace internal |
1346 } // namespace v8 | 1345 } // namespace v8 |
OLD | NEW |