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

Unified Diff: src/ast/ast.h

Issue 1555023002: [turbofan] Add deopt point for InternalSetPrototype in VisitObjectLiteral. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 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 | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 1bbe28d6f82ac7dc9a6dac26056f19d74291fd1c..27cc667eb11991750796920c77ea7dfe31e5fa9c 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -1533,11 +1533,18 @@ 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 GetIdForProperty(int i) { return BailoutId(local_id(i + 1)); }
+ BailoutId GetIdForPropertyName(int i) {
+ return BailoutId(local_id(2 * i + 1));
+ }
+ BailoutId GetIdForPropertySet(int i) {
+ return BailoutId(local_id(2 * i + 2));
+ }
// 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 + properties()->length(); }
+ int num_ids() const {
+ return parent_num_ids() + 1 + 2 * properties()->length();
+ }
// Object literals need one feedback slot for each non-trivial value, as well
// as some slots for home objects.
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698