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

Unified Diff: src/code-stub-assembler.h

Issue 2227703003: Reland "[KeyedLoadIC] Support Smi "handlers" for element loads" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add DCHECK 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 | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 923d82334f0aeeb8972c2458ae2690fe31ea6d5f..8b16573785fd1d369ac6166f11c4dead3f4ef225 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -510,9 +510,6 @@ class CodeStubAssembler : public compiler::CodeAssembler {
Variable* var_handler, Label* if_miss,
int unroll_count);
- void HandleLoadICHandlerCase(const LoadICParameters* p,
- compiler::Node* handler, Label* miss);
-
compiler::Node* StubCachePrimaryOffset(compiler::Node* name,
compiler::Node* map);
@@ -560,6 +557,20 @@ class CodeStubAssembler : public compiler::CodeAssembler {
}
private:
+ enum ElementSupport { kOnlyProperties, kSupportElements };
+
+ void HandleLoadICHandlerCase(
+ const LoadICParameters* p, compiler::Node* handler, Label* miss,
+ ElementSupport support_elements = kOnlyProperties);
+ compiler::Node* TryToIntptr(compiler::Node* key, Label* miss);
+ void EmitBoundsCheck(compiler::Node* object, compiler::Node* elements,
+ compiler::Node* intptr_key, compiler::Node* is_jsarray,
+ Label* miss);
+ void EmitElementLoad(compiler::Node* object, compiler::Node* elements,
+ compiler::Node* elements_kind, compiler::Node* key,
+ Label* if_hole, Label* rebox_double,
+ Variable* var_double_value, Label* miss);
+
compiler::Node* ElementOffsetFromIndex(compiler::Node* index,
ElementsKind kind, ParameterMode mode,
int base_size = 0);
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698