Reviewers: Benedikt Meurer,
Message:
PTAL
Description:
Fix JSObjectFieldAccessor support in crankshaft
BUG=459459
LOG=n
Please review this at https://codereview.chromium.org/940483002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -4 lines):
M src/hydrogen.h
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index
8b1ba1c957bf992a8c6a6880660e8c3321fb7a02..870c4908bdb2b8f99ee9c8bbc9e633cfd272c737
100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2462,20 +2462,20 @@ class HOptimizedGraphBuilder : public
HGraphBuilder, public AstVisitor {
bool IsJSObjectFieldAccessor() {
int offset; // unused
- return Accessors::IsJSObjectFieldAccessor(map(), name_, &offset);
+ return Accessors::IsJSObjectFieldAccessor(map_, name_, &offset);
}
bool GetJSObjectFieldAccess(HObjectAccess* access) {
int offset;
- if (Accessors::IsJSObjectFieldAccessor(map(), name_, &offset)) {
+ if (Accessors::IsJSObjectFieldAccessor(map_, name_, &offset)) {
if (IsStringType()) {
DCHECK(String::Equals(isolate()->factory()->length_string(),
name_));
*access = HObjectAccess::ForStringLength();
} else if (IsArrayType()) {
DCHECK(String::Equals(isolate()->factory()->length_string(),
name_));
- *access = HObjectAccess::ForArrayLength(map()->elements_kind());
+ *access = HObjectAccess::ForArrayLength(map_->elements_kind());
} else {
- *access = HObjectAccess::ForMapAndOffset(map(), offset);
+ *access = HObjectAccess::ForMapAndOffset(map_, offset);
}
return true;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.