Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index 7dcd535c65aab1b425f1be837f6488820ff1232b..d17edc78b7831c27cf6ff08510af4f1ba78d8979 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -1443,18 +1443,11 @@ class ObjectLiteral final : public MaterializedLiteral { |
BailoutId CreateLiteralId() const { return BailoutId(local_id(0)); } |
// Return an AST id for a property that is used in simulate instructions. |
- BailoutId GetIdForPropertyName(int i) { |
- return BailoutId(local_id(2 * i + 1)); |
- } |
- BailoutId GetIdForPropertySet(int i) { |
- return BailoutId(local_id(2 * i + 2)); |
- } |
+ BailoutId GetIdForPropertySet(int i) { return BailoutId(local_id(i + 1)); } |
// Unlike other AST nodes, this number of bailout IDs allocated for an |
// ObjectLiteral can vary, so num_ids() is not a static method. |
- int num_ids() const { |
- return parent_num_ids() + 1 + 2 * properties()->length(); |
- } |
+ int num_ids() const { return parent_num_ids() + 1 + properties()->length(); } |
// Object literals need one feedback slot for each non-trivial value, as well |
// as some slots for home objects. |