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

Side by Side Diff: src/compiler/js-builtin-reducer.h

Issue 2199753002: [turbofan] Inline bunch of ArrayBuffer view accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment. 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 unified diff | Download patch
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/js-builtin-reducer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_BUILTIN_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class TypeCache; 14 class TypeCache;
15 15
16 namespace compiler { 16 namespace compiler {
17 17
18 // Forward declarations. 18 // Forward declarations.
19 class CommonOperatorBuilder; 19 class CommonOperatorBuilder;
20 struct FieldAccess;
20 class JSGraph; 21 class JSGraph;
21 class SimplifiedOperatorBuilder; 22 class SimplifiedOperatorBuilder;
22 23
23 24
24 class JSBuiltinReducer final : public AdvancedReducer { 25 class JSBuiltinReducer final : public AdvancedReducer {
25 public: 26 public:
26 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph); 27 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph);
27 ~JSBuiltinReducer() final {} 28 ~JSBuiltinReducer() final {}
28 29
29 Reduction Reduce(Node* node) final; 30 Reduction Reduce(Node* node) final;
(...skipping 29 matching lines...) Expand all
59 Reduction ReduceMathSin(Node* node); 60 Reduction ReduceMathSin(Node* node);
60 Reduction ReduceMathSinh(Node* node); 61 Reduction ReduceMathSinh(Node* node);
61 Reduction ReduceMathSqrt(Node* node); 62 Reduction ReduceMathSqrt(Node* node);
62 Reduction ReduceMathTan(Node* node); 63 Reduction ReduceMathTan(Node* node);
63 Reduction ReduceMathTanh(Node* node); 64 Reduction ReduceMathTanh(Node* node);
64 Reduction ReduceMathTrunc(Node* node); 65 Reduction ReduceMathTrunc(Node* node);
65 Reduction ReduceNumberParseInt(Node* node); 66 Reduction ReduceNumberParseInt(Node* node);
66 Reduction ReduceStringCharAt(Node* node); 67 Reduction ReduceStringCharAt(Node* node);
67 Reduction ReduceStringCharCodeAt(Node* node); 68 Reduction ReduceStringCharCodeAt(Node* node);
68 Reduction ReduceStringFromCharCode(Node* node); 69 Reduction ReduceStringFromCharCode(Node* node);
70 Reduction ReduceArrayBufferViewAccessor(Node* node,
71 InstanceType instance_type,
72 FieldAccess const& access);
69 73
70 Node* ToNumber(Node* value); 74 Node* ToNumber(Node* value);
71 Node* ToUint32(Node* value); 75 Node* ToUint32(Node* value);
72 76
73 Graph* graph() const; 77 Graph* graph() const;
74 JSGraph* jsgraph() const { return jsgraph_; } 78 JSGraph* jsgraph() const { return jsgraph_; }
75 Isolate* isolate() const; 79 Isolate* isolate() const;
76 CommonOperatorBuilder* common() const; 80 CommonOperatorBuilder* common() const;
77 SimplifiedOperatorBuilder* simplified() const; 81 SimplifiedOperatorBuilder* simplified() const;
78 82
79 JSGraph* const jsgraph_; 83 JSGraph* const jsgraph_;
80 TypeCache const& type_cache_; 84 TypeCache const& type_cache_;
81 }; 85 };
82 86
83 } // namespace compiler 87 } // namespace compiler
84 } // namespace internal 88 } // namespace internal
85 } // namespace v8 89 } // namespace v8
86 90
87 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 91 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/access-builder.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698