| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // Check the function's context matches the context argument. | 456 // Check the function's context matches the context argument. |
| 457 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 457 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); |
| 458 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 458 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); |
| 459 } | 459 } |
| 460 | 460 |
| 461 AssembleDeconstructActivationRecord(); | 461 AssembleDeconstructActivationRecord(); |
| 462 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 462 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
| 463 __ Jump(at); | 463 __ Jump(at); |
| 464 break; | 464 break; |
| 465 } | 465 } |
| 466 case kArchPrepareCallCFunction: { |
| 467 int const num_parameters = MiscField::decode(instr->opcode()); |
| 468 __ PrepareCallCFunction(num_parameters, kScratchReg); |
| 469 break; |
| 470 } |
| 471 case kArchCallCFunction: { |
| 472 int const num_parameters = MiscField::decode(instr->opcode()); |
| 473 Register func = i.InputRegister(0); |
| 474 __ CallCFunction(func, num_parameters); |
| 475 break; |
| 476 } |
| 466 case kArchJmp: | 477 case kArchJmp: |
| 467 AssembleArchJump(i.InputRpo(0)); | 478 AssembleArchJump(i.InputRpo(0)); |
| 468 break; | 479 break; |
| 469 case kArchLookupSwitch: | 480 case kArchLookupSwitch: |
| 470 AssembleArchLookupSwitch(instr); | 481 AssembleArchLookupSwitch(instr); |
| 471 break; | 482 break; |
| 472 case kArchTableSwitch: | 483 case kArchTableSwitch: |
| 473 AssembleArchTableSwitch(instr); | 484 AssembleArchTableSwitch(instr); |
| 474 break; | 485 break; |
| 475 case kArchNop: | 486 case kArchNop: |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 } | 1425 } |
| 1415 } | 1426 } |
| 1416 } | 1427 } |
| 1417 } | 1428 } |
| 1418 | 1429 |
| 1419 #undef __ | 1430 #undef __ |
| 1420 | 1431 |
| 1421 } // namespace compiler | 1432 } // namespace compiler |
| 1422 } // namespace internal | 1433 } // namespace internal |
| 1423 } // namespace v8 | 1434 } // namespace v8 |
| OLD | NEW |