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

Unified Diff: src/objects.h

Issue 2663513002: [objects.h splitting] Move out ConstantElementsPair and BoileplateDescriptor. (Closed)
Patch Set: moving constant_elements_kind to ast.cc Created 3 years, 11 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/factory.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 8ddeb2a520930a9000329a554477bc367e901356..58347301451aaa6db112266e21e51d9223a47550 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2919,30 +2919,6 @@ class FixedArray: public FixedArrayBase {
DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray);
};
-// BoilerplateDescription is a list of properties consisting of name value
-// pairs. In addition to the properties, it provides the projected number
-// of properties in the backing store. This number includes properties with
-// computed names that are not
-// in the list.
-class BoilerplateDescription : public FixedArray {
- public:
- Object* name(int index) const;
- Object* value(int index) const;
-
- // The number of boilerplate properties.
- int size() const;
-
- // Number of boilerplate properties and properties with computed names.
- int backing_store_size() const;
-
- void set_backing_store_size(Isolate* isolate, int backing_store_size);
-
- DECLARE_CAST(BoilerplateDescription)
-
- private:
- bool has_number_of_properties() const;
-};
-
// FixedDoubleArray describes fixed-sized arrays with element type double.
class FixedDoubleArray: public FixedArrayBase {
public:
@@ -6731,28 +6707,6 @@ class ContextExtension : public Struct {
DISALLOW_IMPLICIT_CONSTRUCTORS(ContextExtension);
};
-// Pair of {ElementsKind} and an array of constant values for {ArrayLiteral}
-// expressions. Used to communicate with the runtime for literal boilerplate
-// creation within the {Runtime_CreateArrayLiteral} method.
-class ConstantElementsPair : public Struct {
- public:
- DECL_INT_ACCESSORS(elements_kind)
- DECL_ACCESSORS(constant_values, FixedArrayBase)
-
- DECLARE_CAST(ConstantElementsPair)
-
- // Dispatched behavior.
- DECLARE_PRINTER(ConstantElementsPair)
- DECLARE_VERIFIER(ConstantElementsPair)
-
- static const int kElementsKindOffset = HeapObject::kHeaderSize;
- static const int kConstantValuesOffset = kElementsKindOffset + kPointerSize;
- static const int kSize = kConstantValuesOffset + kPointerSize;
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(ConstantElementsPair);
-};
-
// Script describes a script which has been added to the VM.
class Script: public Struct {
public:
« no previous file with comments | « src/factory.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698