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

Unified Diff: src/ast/ast-value-factory.h

Issue 2223523002: [Interpreter] Avoid dereferencing handles on BytecodeGenerator for AST operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_const_array
Patch Set: Rebase Created 4 years, 4 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/ast/ast.cc ('k') | src/ast/ast-value-factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-value-factory.h
diff --git a/src/ast/ast-value-factory.h b/src/ast/ast-value-factory.h
index 91e7d78c38b97720c10ecc5167091a045f38f243..21103a0e7a03834fec4d1d0fe37a017dc02766d1 100644
--- a/src/ast/ast-value-factory.h
+++ b/src/ast/ast-value-factory.h
@@ -80,7 +80,8 @@ class AstRawString final : public AstString {
void Internalize(Isolate* isolate);
- bool AsArrayIndex(uint32_t* index) const;
+ bool AsArrayIndex(uint32_t* index, HandleDereferenceMode deref_mode =
+ HandleDereferenceMode::kAllowed) const;
// The string is not null-terminated, use length() to find out the length.
const unsigned char* raw_data() const {
@@ -180,7 +181,8 @@ class AstValue : public ZoneObject {
return type_ == STRING && string_ == string;
}
- bool IsPropertyName() const;
+ bool IsPropertyName(
+ HandleDereferenceMode deref_mode = HandleDereferenceMode::kAllowed) const;
bool BooleanValue() const;
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-value-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698