Commit 7ed0d4b8 authored by peterwmwong's avatar peterwmwong Committed by Commit Bot

[torque] Cleanup uses of torque generated class definitions.

Bug: v8:7793
Change-Id: I5e682ba555d79be533e325bed12e87aabf90b311
Reviewed-on: https://chromium-review.googlesource.com/c/1437989Reviewed-by: 's avatarDaniel Clifford <danno@chromium.org>
Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
Cr-Commit-Position: refs/heads/master@{#59123}
parent 5b1c8b6b
......@@ -30,14 +30,9 @@ class JSArgumentsObject : public JSObject {
// mode already. Only use the below layout with the specific initial maps.
class JSArgumentsObjectWithLength : public JSArgumentsObject {
public:
// Layout description.
#define JS_ARGUMENTS_OBJECT_WITH_LENGTH_FIELDS(V) \
V(kLengthOffset, kTaggedSize) \
V(kSize, 0)
// Layout description.
DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize,
JSARGUMENTS_OBJECT_WITH_LENGTH_FIELDS)
#undef JS_ARGUMENTS_OBJECT_WITH_LENGTH_FIELDS
// Indices of in-object properties.
static const int kLengthIndex = 0;
......
......@@ -106,7 +106,6 @@ class JSArray : public JSObject {
static const int kPreallocatedArrayElements = 4;
DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize, JSARRAY_FIELDS)
#undef JS_ARRAY_FIELDS
static const int kLengthDescriptorIndex = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment