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

Side by Side Diff: src/builtins/builtins-forin.h

Issue 2760953002: [builtins] Move more files into v8_builtins_generators source set (Closed)
Patch Set: rebased Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-constructor-gen.cc ('k') | src/builtins/builtins-forin-gen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 // Copyright 2017 the V8 project authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #include "src/code-stub-assembler.h"
7
8 namespace v8 {
9 namespace internal {
10
11 class ForInBuiltinsAssembler : public CodeStubAssembler {
12 public:
13 explicit ForInBuiltinsAssembler(compiler::CodeAssemblerState* state)
14 : CodeStubAssembler(state) {}
15
16 std::tuple<Node*, Node*, Node*> EmitForInPrepare(Node* object, Node* context,
17 Label* call_runtime,
18 Label* nothing_to_iterate);
19
20 Node* ForInFilter(Node* key, Node* object, Node* context);
21
22 private:
23 // Get the enumerable length from |map| and return the result as a Smi.
24 Node* EnumLength(Node* map);
25 void CheckPrototypeEnumCache(Node* receiver, Node* map, Label* use_cache,
26 Label* use_runtime);
27 // Check the cache validity for |receiver|. Branch to |use_cache| if
28 // the cache is valid, otherwise branch to |use_runtime|.
29 void CheckEnumCache(Node* receiver, Label* use_cache,
30 Label* nothing_to_iterate, Label* use_runtime);
31 };
32
33 } // namespace internal
34 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-constructor-gen.cc ('k') | src/builtins/builtins-forin-gen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698