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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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 | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 break; 829 break;
830 } 830 }
831 } 831 }
832 } 832 }
833 833
834 834
835 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 835 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
836 // Call the runtime to declare the globals. 836 // Call the runtime to declare the globals.
837 __ mov(r4, Operand(pairs)); 837 __ mov(r4, Operand(pairs));
838 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())); 838 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags()));
839 __ EmitLoadTypeFeedbackVector(r0); 839 __ EmitLoadTypeFeedbackVector(r5);
840 __ Push(r4, r3, r0); 840 __ Push(r4, r3, r5);
841 __ CallRuntime(Runtime::kDeclareGlobals); 841 __ CallRuntime(Runtime::kDeclareGlobals);
842 // Return value is ignored. 842 // Return value is ignored.
843 } 843 }
844 844
845 845
846 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 846 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
847 Comment cmnt(masm_, "[ SwitchStatement"); 847 Comment cmnt(masm_, "[ SwitchStatement");
848 Breakable nested_statement(this, stmt); 848 Breakable nested_statement(this, stmt);
849 SetStatementPosition(stmt); 849 SetStatementPosition(stmt);
850 850
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after
3766 3766
3767 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3767 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3768 3768
3769 DCHECK(interrupt_address == 3769 DCHECK(interrupt_address ==
3770 isolate->builtins()->OnStackReplacement()->entry()); 3770 isolate->builtins()->OnStackReplacement()->entry());
3771 return ON_STACK_REPLACEMENT; 3771 return ON_STACK_REPLACEMENT;
3772 } 3772 }
3773 } // namespace internal 3773 } // namespace internal
3774 } // namespace v8 3774 } // namespace v8
3775 #endif // V8_TARGET_ARCH_PPC 3775 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698