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 | 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 377 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); |
378 __ cmp(cp, kScratchReg); | 378 __ cmp(cp, kScratchReg); |
379 __ Assert(eq, kWrongFunctionContext); | 379 __ Assert(eq, kWrongFunctionContext); |
380 } | 380 } |
381 AssembleDeconstructActivationRecord(); | 381 AssembleDeconstructActivationRecord(); |
382 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 382 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
383 __ Jump(ip); | 383 __ Jump(ip); |
384 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 384 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
385 break; | 385 break; |
386 } | 386 } |
| 387 case kArchLazyBailout: { |
| 388 EnsureSpaceForLazyDeopt(); |
| 389 RecordCallPosition(instr); |
| 390 break; |
| 391 } |
387 case kArchPrepareCallCFunction: { | 392 case kArchPrepareCallCFunction: { |
388 int const num_parameters = MiscField::decode(instr->opcode()); | 393 int const num_parameters = MiscField::decode(instr->opcode()); |
389 __ PrepareCallCFunction(num_parameters, kScratchReg); | 394 __ PrepareCallCFunction(num_parameters, kScratchReg); |
390 break; | 395 break; |
391 } | 396 } |
392 case kArchCallCFunction: { | 397 case kArchCallCFunction: { |
393 int const num_parameters = MiscField::decode(instr->opcode()); | 398 int const num_parameters = MiscField::decode(instr->opcode()); |
394 if (instr->InputAt(0)->IsImmediate()) { | 399 if (instr->InputAt(0)->IsImmediate()) { |
395 ExternalReference ref = i.InputExternalReference(0); | 400 ExternalReference ref = i.InputExternalReference(0); |
396 __ CallCFunction(ref, num_parameters); | 401 __ CallCFunction(ref, num_parameters); |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 padding_size -= v8::internal::Assembler::kInstrSize; | 1281 padding_size -= v8::internal::Assembler::kInstrSize; |
1277 } | 1282 } |
1278 } | 1283 } |
1279 } | 1284 } |
1280 | 1285 |
1281 #undef __ | 1286 #undef __ |
1282 | 1287 |
1283 } // namespace compiler | 1288 } // namespace compiler |
1284 } // namespace internal | 1289 } // namespace internal |
1285 } // namespace v8 | 1290 } // namespace v8 |
OLD | NEW |