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

Unified Diff: src/compiler/js-operator.h

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs Created 5 years, 6 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/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index a0f2668a14325c7991d4459c8adb8a1c5ad01216..3a7d2ba9157957ec24a78e354e3693edd9404706 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -231,10 +231,15 @@ DynamicContextAccess const& DynamicContextAccessOf(Operator const*);
class LoadNamedParameters final {
public:
LoadNamedParameters(const Unique<Name>& name, const VectorSlotPair& feedback,
+ LanguageMode language_mode,
ContextualMode contextual_mode)
- : name_(name), feedback_(feedback), contextual_mode_(contextual_mode) {}
+ : name_(name),
+ feedback_(feedback),
+ language_mode_(language_mode),
+ contextual_mode_(contextual_mode) {}
const Unique<Name>& name() const { return name_; }
+ LanguageMode language_mode() const { return language_mode_; }
ContextualMode contextual_mode() const { return contextual_mode_; }
const VectorSlotPair& feedback() const { return feedback_; }
@@ -242,6 +247,7 @@ class LoadNamedParameters final {
private:
const Unique<Name> name_;
const VectorSlotPair feedback_;
+ const LanguageMode language_mode_;
const ContextualMode contextual_mode_;
};
@@ -261,13 +267,17 @@ const LoadNamedParameters& LoadGlobalParametersOf(const Operator* op);
// used as a parameter by JSLoadProperty operators.
class LoadPropertyParameters final {
public:
- explicit LoadPropertyParameters(const VectorSlotPair& feedback)
- : feedback_(feedback) {}
+ explicit LoadPropertyParameters(const VectorSlotPair& feedback,
+ LanguageMode language_mode)
+ : feedback_(feedback), language_mode_(language_mode) {}
const VectorSlotPair& feedback() const { return feedback_; }
+ LanguageMode language_mode() const { return language_mode_; }
+
private:
const VectorSlotPair feedback_;
+ const LanguageMode language_mode_;
};
bool operator==(LoadPropertyParameters const&, LoadPropertyParameters const&);
@@ -410,9 +420,11 @@ class JSOperatorBuilder final : public ZoneObject {
const Operator* CallConstruct(int arguments);
- const Operator* LoadProperty(const VectorSlotPair& feedback);
+ const Operator* LoadProperty(const VectorSlotPair& feedback,
+ LanguageMode language_mode);
const Operator* LoadNamed(const Unique<Name>& name,
- const VectorSlotPair& feedback);
+ const VectorSlotPair& feedback,
+ LanguageMode language_mode);
const Operator* StoreProperty(LanguageMode language_mode,
const VectorSlotPair& feedback);
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698