OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 PopOperands(StoreDescriptor::ReceiverRegister(), | 2183 PopOperands(StoreDescriptor::ReceiverRegister(), |
2184 StoreDescriptor::NameRegister()); | 2184 StoreDescriptor::NameRegister()); |
2185 DCHECK(StoreDescriptor::ValueRegister().is(r2)); | 2185 DCHECK(StoreDescriptor::ValueRegister().is(r2)); |
2186 | 2186 |
2187 CallKeyedStoreIC(expr->AssignmentSlot()); | 2187 CallKeyedStoreIC(expr->AssignmentSlot()); |
2188 | 2188 |
2189 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); | 2189 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
2190 context()->Plug(r2); | 2190 context()->Plug(r2); |
2191 } | 2191 } |
2192 | 2192 |
2193 void FullCodeGenerator::CallIC(Handle<Code> code, TypeFeedbackId ast_id) { | |
2194 ic_total_count_++; | |
2195 __ Call(code, RelocInfo::CODE_TARGET, ast_id); | |
2196 } | |
2197 | |
2198 // Code common for calls using the IC. | 2193 // Code common for calls using the IC. |
2199 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { | 2194 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { |
2200 Expression* callee = expr->expression(); | 2195 Expression* callee = expr->expression(); |
2201 | 2196 |
2202 // Get the target function. | 2197 // Get the target function. |
2203 ConvertReceiverMode convert_mode; | 2198 ConvertReceiverMode convert_mode; |
2204 if (callee->IsVariableProxy()) { | 2199 if (callee->IsVariableProxy()) { |
2205 { | 2200 { |
2206 StackValueContext context(this); | 2201 StackValueContext context(this); |
2207 EmitVariableLoad(callee->AsVariableProxy()); | 2202 EmitVariableLoad(callee->AsVariableProxy()); |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3551 DCHECK(kOSRBranchInstruction == br_instr); | 3546 DCHECK(kOSRBranchInstruction == br_instr); |
3552 | 3547 |
3553 DCHECK(interrupt_address == | 3548 DCHECK(interrupt_address == |
3554 isolate->builtins()->OnStackReplacement()->entry()); | 3549 isolate->builtins()->OnStackReplacement()->entry()); |
3555 return ON_STACK_REPLACEMENT; | 3550 return ON_STACK_REPLACEMENT; |
3556 } | 3551 } |
3557 | 3552 |
3558 } // namespace internal | 3553 } // namespace internal |
3559 } // namespace v8 | 3554 } // namespace v8 |
3560 #endif // V8_TARGET_ARCH_S390 | 3555 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |