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

Unified Diff: src/hydrogen-instructions.h

Issue 1329293003: [runtime] Sanitize %NewClosure runtime entries. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Ports Created 5 years, 3 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/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 9ff807968d1f530e9c9c466d4d6ed7fbae3a27ef..f81d8771a5969daf11a39555e550218d07697614 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -98,7 +98,6 @@ class LChunkBuilder;
V(ForceRepresentation) \
V(ForInCacheArray) \
V(ForInPrepareMap) \
- V(FunctionLiteral) \
V(GetCachedArrayIndex) \
V(Goto) \
V(HasCachedArrayIndexAndBranch) \
@@ -7552,56 +7551,6 @@ class HRegExpLiteral final : public HMaterializedLiteral<1> {
};
-class HFunctionLiteral final : public HTemplateInstruction<1> {
- public:
- DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HFunctionLiteral,
- Handle<SharedFunctionInfo>,
- bool);
- HValue* context() { return OperandAt(0); }
-
- Representation RequiredInputRepresentation(int index) override {
- return Representation::Tagged();
- }
-
- DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral)
-
- Handle<SharedFunctionInfo> shared_info() const { return shared_info_; }
- bool pretenure() const { return PretenureField::decode(bit_field_); }
- bool has_no_literals() const {
- return HasNoLiteralsField::decode(bit_field_);
- }
- FunctionKind kind() const { return FunctionKindField::decode(bit_field_); }
- LanguageMode language_mode() const {
- return LanguageModeField::decode(bit_field_);
- }
-
- private:
- HFunctionLiteral(HValue* context, Handle<SharedFunctionInfo> shared,
- bool pretenure)
- : HTemplateInstruction<1>(HType::JSObject()),
- shared_info_(shared),
- bit_field_(FunctionKindField::encode(shared->kind()) |
- PretenureField::encode(pretenure) |
- HasNoLiteralsField::encode(shared->num_literals() == 0) |
- LanguageModeField::encode(shared->language_mode())) {
- SetOperandAt(0, context);
- set_representation(Representation::Tagged());
- SetChangesFlag(kNewSpacePromotion);
- }
-
- bool IsDeletable() const override { return true; }
-
- class FunctionKindField : public BitField<FunctionKind, 0, 8> {};
- class PretenureField : public BitField<bool, 8, 1> {};
- class HasNoLiteralsField : public BitField<bool, 9, 1> {};
- STATIC_ASSERT(LANGUAGE_END == 3);
- class LanguageModeField : public BitField<LanguageMode, 10, 2> {};
-
- Handle<SharedFunctionInfo> shared_info_;
- uint32_t bit_field_;
-};
-
-
class HTypeof final : public HTemplateInstruction<2> {
public:
DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HTypeof, HValue*);
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698