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

Unified Diff: src/crankshaft/hydrogen-instructions.h

Issue 2107193002: [ic] Initialize feedback slots for LoadGlobalIC in Runtime::kDeclareGlobals when possible to ... (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing on top of Issue 2127583002 Patch 120001 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen-instructions.h
diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h
index 9a757c8851ba4bcee495bd854789555d0b9a21b2..bbbd1b44dfaaee7e77830e45c505b8a7ba7e8f6c 100644
--- a/src/crankshaft/hydrogen-instructions.h
+++ b/src/crankshaft/hydrogen-instructions.h
@@ -2093,13 +2093,16 @@ class HThisFunction final : public HTemplateInstruction<0> {
class HDeclareGlobals final : public HUnaryOperation {
public:
- DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HDeclareGlobals,
- Handle<FixedArray>,
- int);
+ DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HDeclareGlobals,
+ Handle<FixedArray>, int,
+ Handle<TypeFeedbackVector>);
HValue* context() { return OperandAt(0); }
Handle<FixedArray> pairs() const { return pairs_; }
int flags() const { return flags_; }
+ Handle<TypeFeedbackVector> feedback_vector() const {
+ return feedback_vector_;
+ }
DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals)
@@ -2108,17 +2111,18 @@ class HDeclareGlobals final : public HUnaryOperation {
}
private:
- HDeclareGlobals(HValue* context,
- Handle<FixedArray> pairs,
- int flags)
+ HDeclareGlobals(HValue* context, Handle<FixedArray> pairs, int flags,
+ Handle<TypeFeedbackVector> feedback_vector)
: HUnaryOperation(context),
pairs_(pairs),
+ feedback_vector_(feedback_vector),
flags_(flags) {
set_representation(Representation::Tagged());
SetAllSideEffects();
}
Handle<FixedArray> pairs_;
+ Handle<TypeFeedbackVector> feedback_vector_;
int flags_;
};
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698