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/interpreter/interpreter-assembler.h

Issue 2155153002: [interpreter] Update ForInPrepare to conditionally use runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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
Index: src/interpreter/interpreter-assembler.h
diff --git a/src/interpreter/interpreter-assembler.h b/src/interpreter/interpreter-assembler.h
index 1b77b52d885540724f514d4ac14102d22a6db7ed..644e773f1696d01020d9c8a63af55c2a329d67c1 100644
--- a/src/interpreter/interpreter-assembler.h
+++ b/src/interpreter/interpreter-assembler.h
@@ -127,6 +127,15 @@ class InterpreterAssembler : public CodeStubAssembler {
compiler::Node* first_arg,
compiler::Node* arg_count, int return_size = 1);
+ // Check the cache validity for |receiver|. Branch to |use_cache| if
+ // valid, otherwise branch to |use_runtime|.
+ void CheckEnumCache(compiler::Node* receiver,
+ CodeStubAssembler::Label* use_cache,
+ CodeStubAssembler::Label* use_runtime);
+
+ // Get the enumerable length from |map| and return the result as a Smi.
+ compiler::Node* EnumLength(compiler::Node* map);
+
// Jump relative to the current bytecode by |jump_offset|.
compiler::Node* Jump(compiler::Node* jump_offset);

Powered by Google App Engine
This is Rietveld 408576698