OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 Register func = i.InputRegister(0); | 372 Register func = i.InputRegister(0); |
373 if (FLAG_debug_code) { | 373 if (FLAG_debug_code) { |
374 // Check the function's context matches the context argument. | 374 // Check the function's context matches the context argument. |
375 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); | 375 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); |
376 __ Assert(equal, kWrongFunctionContext); | 376 __ Assert(equal, kWrongFunctionContext); |
377 } | 377 } |
378 AssembleDeconstructActivationRecord(); | 378 AssembleDeconstructActivationRecord(); |
379 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 379 __ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
380 break; | 380 break; |
381 } | 381 } |
| 382 case kArchLazyBailout: { |
| 383 EnsureSpaceForLazyDeopt(); |
| 384 RecordCallPosition(instr); |
| 385 break; |
| 386 } |
382 case kArchPrepareCallCFunction: { | 387 case kArchPrepareCallCFunction: { |
383 int const num_parameters = MiscField::decode(instr->opcode()); | 388 int const num_parameters = MiscField::decode(instr->opcode()); |
384 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); | 389 __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); |
385 break; | 390 break; |
386 } | 391 } |
387 case kArchCallCFunction: { | 392 case kArchCallCFunction: { |
388 int const num_parameters = MiscField::decode(instr->opcode()); | 393 int const num_parameters = MiscField::decode(instr->opcode()); |
389 if (HasImmediateInput(instr, 0)) { | 394 if (HasImmediateInput(instr, 0)) { |
390 ExternalReference ref = i.InputExternalReference(0); | 395 ExternalReference ref = i.InputExternalReference(0); |
391 __ CallCFunction(ref, num_parameters); | 396 __ CallCFunction(ref, num_parameters); |
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1888 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1884 __ Nop(padding_size); | 1889 __ Nop(padding_size); |
1885 } | 1890 } |
1886 } | 1891 } |
1887 | 1892 |
1888 #undef __ | 1893 #undef __ |
1889 | 1894 |
1890 } // namespace compiler | 1895 } // namespace compiler |
1891 } // namespace internal | 1896 } // namespace internal |
1892 } // namespace v8 | 1897 } // namespace v8 |
OLD | NEW |