| 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/compiler/osr.h" | 9 #include "src/compiler/osr.h" | 
| 10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" | 
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 450         // Check the function's context matches the context argument. | 450         // Check the function's context matches the context argument. | 
| 451         __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 451         __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 
| 452         __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 452         __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 
| 453       } | 453       } | 
| 454 | 454 | 
| 455       AssembleDeconstructActivationRecord(); | 455       AssembleDeconstructActivationRecord(); | 
| 456       __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 456       __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 
| 457       __ Jump(at); | 457       __ Jump(at); | 
| 458       break; | 458       break; | 
| 459     } | 459     } | 
|  | 460     case kArchLazyBailout: { | 
|  | 461       EnsureSpaceForLazyDeopt(); | 
|  | 462       RecordCallPosition(instr); | 
|  | 463       break; | 
|  | 464     } | 
| 460     case kArchPrepareCallCFunction: { | 465     case kArchPrepareCallCFunction: { | 
| 461       int const num_parameters = MiscField::decode(instr->opcode()); | 466       int const num_parameters = MiscField::decode(instr->opcode()); | 
| 462       __ PrepareCallCFunction(num_parameters, kScratchReg); | 467       __ PrepareCallCFunction(num_parameters, kScratchReg); | 
| 463       break; | 468       break; | 
| 464     } | 469     } | 
| 465     case kArchCallCFunction: { | 470     case kArchCallCFunction: { | 
| 466       int const num_parameters = MiscField::decode(instr->opcode()); | 471       int const num_parameters = MiscField::decode(instr->opcode()); | 
| 467       if (instr->InputAt(0)->IsImmediate()) { | 472       if (instr->InputAt(0)->IsImmediate()) { | 
| 468         ExternalReference ref = i.InputExternalReference(0); | 473         ExternalReference ref = i.InputExternalReference(0); | 
| 469         __ CallCFunction(ref, num_parameters); | 474         __ CallCFunction(ref, num_parameters); | 
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1429       padding_size -= v8::internal::Assembler::kInstrSize; | 1434       padding_size -= v8::internal::Assembler::kInstrSize; | 
| 1430     } | 1435     } | 
| 1431   } | 1436   } | 
| 1432 } | 1437 } | 
| 1433 | 1438 | 
| 1434 #undef __ | 1439 #undef __ | 
| 1435 | 1440 | 
| 1436 }  // namespace compiler | 1441 }  // namespace compiler | 
| 1437 }  // namespace internal | 1442 }  // namespace internal | 
| 1438 }  // namespace v8 | 1443 }  // namespace v8 | 
| OLD | NEW | 
|---|