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

Side by Side Diff: src/compiler/js-create-lowering.h

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)
Patch Set: Only specialize if compiling from bytecode Created 3 years, 10 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/code-stub-assembler.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_JS_CREATE_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_CREATE_LOWERING_H_
6 #define V8_COMPILER_JS_CREATE_LOWERING_H_ 6 #define V8_COMPILER_JS_CREATE_LOWERING_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 native_context_(native_context), 43 native_context_(native_context),
44 zone_(zone) {} 44 zone_(zone) {}
45 ~JSCreateLowering() final {} 45 ~JSCreateLowering() final {}
46 46
47 Reduction Reduce(Node* node) final; 47 Reduction Reduce(Node* node) final;
48 48
49 private: 49 private:
50 Reduction ReduceJSCreate(Node* node); 50 Reduction ReduceJSCreate(Node* node);
51 Reduction ReduceJSCreateArguments(Node* node); 51 Reduction ReduceJSCreateArguments(Node* node);
52 Reduction ReduceJSCreateArray(Node* node); 52 Reduction ReduceJSCreateArray(Node* node);
53 Reduction ReduceJSCreateClosure(Node* node);
54 Reduction ReduceJSCreateIterResultObject(Node* node); 53 Reduction ReduceJSCreateIterResultObject(Node* node);
55 Reduction ReduceJSCreateKeyValueArray(Node* node); 54 Reduction ReduceJSCreateKeyValueArray(Node* node);
56 Reduction ReduceJSCreateLiteral(Node* node); 55 Reduction ReduceJSCreateLiteral(Node* node);
57 Reduction ReduceJSCreateFunctionContext(Node* node); 56 Reduction ReduceJSCreateFunctionContext(Node* node);
58 Reduction ReduceJSCreateWithContext(Node* node); 57 Reduction ReduceJSCreateWithContext(Node* node);
59 Reduction ReduceJSCreateCatchContext(Node* node); 58 Reduction ReduceJSCreateCatchContext(Node* node);
60 Reduction ReduceJSCreateBlockContext(Node* node); 59 Reduction ReduceJSCreateBlockContext(Node* node);
61 Reduction ReduceNewArray(Node* node, Node* length, int capacity, 60 Reduction ReduceNewArray(Node* node, Node* length, int capacity,
62 Handle<AllocationSite> site); 61 Handle<AllocationSite> site);
63 62
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 MaybeHandle<FeedbackVector> const feedback_vector_; 99 MaybeHandle<FeedbackVector> const feedback_vector_;
101 Handle<Context> const native_context_; 100 Handle<Context> const native_context_;
102 Zone* const zone_; 101 Zone* const zone_;
103 }; 102 };
104 103
105 } // namespace compiler 104 } // namespace compiler
106 } // namespace internal 105 } // namespace internal
107 } // namespace v8 106 } // namespace v8
108 107
109 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_ 108 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698