Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2146053002: PPC/s390: [ic] Initialize feedback slots for LoadGlobalIC in Runtime::kDeclareGlobals when possible… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS); 804 PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS);
805 break; 805 break;
806 } 806 }
807 } 807 }
808 } 808 }
809 809
810 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 810 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
811 // Call the runtime to declare the globals. 811 // Call the runtime to declare the globals.
812 __ mov(r3, Operand(pairs)); 812 __ mov(r3, Operand(pairs));
813 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); 813 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags()));
814 __ EmitLoadTypeFeedbackVector(r0); 814 __ EmitLoadTypeFeedbackVector(r4);
815 __ Push(r3, r2, r0); 815 __ Push(r3, r2, r4);
816 __ CallRuntime(Runtime::kDeclareGlobals); 816 __ CallRuntime(Runtime::kDeclareGlobals);
817 // Return value is ignored. 817 // Return value is ignored.
818 } 818 }
819 819
820 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 820 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
821 Comment cmnt(masm_, "[ SwitchStatement"); 821 Comment cmnt(masm_, "[ SwitchStatement");
822 Breakable nested_statement(this, stmt); 822 Breakable nested_statement(this, stmt);
823 SetStatementPosition(stmt); 823 SetStatementPosition(stmt);
824 824
825 // Keep the switch value on the stack until a case matches. 825 // Keep the switch value on the stack until a case matches.
(...skipping 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after
3680 DCHECK(kOSRBranchInstruction == br_instr); 3680 DCHECK(kOSRBranchInstruction == br_instr);
3681 3681
3682 DCHECK(interrupt_address == 3682 DCHECK(interrupt_address ==
3683 isolate->builtins()->OnStackReplacement()->entry()); 3683 isolate->builtins()->OnStackReplacement()->entry());
3684 return ON_STACK_REPLACEMENT; 3684 return ON_STACK_REPLACEMENT;
3685 } 3685 }
3686 3686
3687 } // namespace internal 3687 } // namespace internal
3688 } // namespace v8 3688 } // namespace v8
3689 #endif // V8_TARGET_ARCH_S390 3689 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698