Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index baad9838703f33ad3e1f546c01a25041094657c5..a74af1f14971728d9715be8cb8c2e5dd02f8a90a 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -118,6 +118,8 @@ class CodeStubAssembler : public compiler::CodeAssembler { |
compiler::Node* LoadMapInstanceType(compiler::Node* map); |
// Load the instance descriptors of a map. |
compiler::Node* LoadMapDescriptors(compiler::Node* map); |
+ // Load the prototype of a map. |
+ compiler::Node* LoadMapPrototype(compiler::Node* map); |
// Load the hash field of a name. |
compiler::Node* LoadNameHash(compiler::Node* name); |
@@ -199,6 +201,20 @@ class CodeStubAssembler : public compiler::CodeAssembler { |
compiler::Node* BitFieldDecode(compiler::Node* word32, uint32_t shift, |
uint32_t mask); |
+ // Various building blocks for stubs doing property lookups. |
+ void TryToName(compiler::Node* key, Label* if_keyisindex, Variable* var_index, |
+ Label* if_keyisunique, Label* call_runtime); |
+ |
+ void TryLookupProperty(compiler::Node* object, compiler::Node* map, |
+ compiler::Node* instance_type, compiler::Node* name, |
+ Label* if_found, Label* if_not_found, |
+ Label* call_runtime); |
+ |
+ void TryLookupElement(compiler::Node* object, compiler::Node* map, |
+ compiler::Node* instance_type, compiler::Node* index, |
+ Label* if_found, Label* if_not_found, |
+ Label* call_runtime); |
+ |
private: |
compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, |
AllocationFlags flags, |