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

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

Issue 2155153002: [interpreter] Update ForInPrepare to conditionally use runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Trim interpreter assembler. Created 4 years, 5 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 da5f5b72c96225ed304be6b1f17d0b4478c347d5..cc6d9c39e0d6cc870a78d69eafb412f5fa2d7839 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -474,6 +474,15 @@ class CodeStubAssembler : public compiler::CodeAssembler {
void LoadIC(const LoadICParameters* p);
void LoadGlobalIC(const LoadICParameters* p);
+ // Get the enumerable length from |map| and return the result as a Smi.
+ compiler::Node* EnumLength(compiler::Node* map);
+
+ // Check the cache validity for |receiver|. Branch to |use_cache| if
+ // the cache is valid, otherwise branch to |use_runtime|.
+ void CheckEnumCache(compiler::Node* receiver,
+ CodeStubAssembler::Label* use_cache,
+ CodeStubAssembler::Label* use_runtime);
+
private:
compiler::Node* ElementOffsetFromIndex(compiler::Node* index,
ElementsKind kind, ParameterMode mode,
« 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