| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3010 SetConstructCallPosition(expr, arg_count); | 3010 SetConstructCallPosition(expr, arg_count); |
| 3011 | 3011 |
| 3012 // Load function and argument count into r4 and r3. | 3012 // Load function and argument count into r4 and r3. |
| 3013 __ mov(r3, Operand(arg_count)); | 3013 __ mov(r3, Operand(arg_count)); |
| 3014 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize), r0); | 3014 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize), r0); |
| 3015 | 3015 |
| 3016 // Record call targets in unoptimized code. | 3016 // Record call targets in unoptimized code. |
| 3017 __ EmitLoadTypeFeedbackVector(r5); | 3017 __ EmitLoadTypeFeedbackVector(r5); |
| 3018 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot())); | 3018 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot())); |
| 3019 | 3019 |
| 3020 CallConstructStub stub(isolate()); | 3020 Handle<Code> code = CodeFactory::ConstructIC(isolate()).code(); |
| 3021 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); | 3021 __ Call(code, RelocInfo::CODE_TARGET); |
| 3022 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 3022 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 3023 // Restore context register. | 3023 // Restore context register. |
| 3024 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3024 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 3025 context()->Plug(r3); | 3025 context()->Plug(r3); |
| 3026 } | 3026 } |
| 3027 | 3027 |
| 3028 | 3028 |
| 3029 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 3029 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
| 3030 SuperCallReference* super_call_ref = | 3030 SuperCallReference* super_call_ref = |
| 3031 expr->expression()->AsSuperCallReference(); | 3031 expr->expression()->AsSuperCallReference(); |
| (...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4919 return ON_STACK_REPLACEMENT; | 4919 return ON_STACK_REPLACEMENT; |
| 4920 } | 4920 } |
| 4921 | 4921 |
| 4922 DCHECK(interrupt_address == | 4922 DCHECK(interrupt_address == |
| 4923 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4923 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4924 return OSR_AFTER_STACK_CHECK; | 4924 return OSR_AFTER_STACK_CHECK; |
| 4925 } | 4925 } |
| 4926 } // namespace internal | 4926 } // namespace internal |
| 4927 } // namespace v8 | 4927 } // namespace v8 |
| 4928 #endif // V8_TARGET_ARCH_PPC | 4928 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |