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

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

Issue 2180273002: [KeyedLoadIC] Support Smi "handlers" for element loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@keyed-load-ic-fieldindex
Patch Set: rebased 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 46a0cb5ca3fcb6a9af7c0991e3843fd641498b02..a51827b28f51cf6817fcce4ba8cf0da9a7bee472 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -509,9 +509,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);
@@ -552,6 +549,19 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* value);
private:
+ enum ElementSupport { kOnlyProperties, kSupportElements };
+
+ void HandleLoadICHandlerCase(
+ const LoadICParameters* p, compiler::Node* handler, Label* miss,
+ ElementSupport support_elements = kOnlyProperties);
+ 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