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

Side by Side Diff: src/compiler/typed-optimization.h

Issue 2489563004: [turbofan] Add support for accessing Uint8ClampedArrays. (Closed)
Patch Set: Fix typing rule. Created 4 years, 1 month 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/type-cache.h ('k') | src/compiler/typed-optimization.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_TYPED_OPTIMIZATION_H_ 5 #ifndef V8_COMPILER_TYPED_OPTIMIZATION_H_
6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_ 6 #define V8_COMPILER_TYPED_OPTIMIZATION_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 29 matching lines...) Expand all
40 ~TypedOptimization(); 40 ~TypedOptimization();
41 41
42 Reduction Reduce(Node* node) final; 42 Reduction Reduce(Node* node) final;
43 43
44 private: 44 private:
45 Reduction ReduceCheckHeapObject(Node* node); 45 Reduction ReduceCheckHeapObject(Node* node);
46 Reduction ReduceCheckMaps(Node* node); 46 Reduction ReduceCheckMaps(Node* node);
47 Reduction ReduceCheckString(Node* node); 47 Reduction ReduceCheckString(Node* node);
48 Reduction ReduceLoadField(Node* node); 48 Reduction ReduceLoadField(Node* node);
49 Reduction ReduceNumberRoundop(Node* node); 49 Reduction ReduceNumberRoundop(Node* node);
50 Reduction ReduceNumberToUint8Clamped(Node* node);
50 Reduction ReducePhi(Node* node); 51 Reduction ReducePhi(Node* node);
51 Reduction ReduceSelect(Node* node); 52 Reduction ReduceSelect(Node* node);
52 53
53 CompilationDependencies* dependencies() const { return dependencies_; } 54 CompilationDependencies* dependencies() const { return dependencies_; }
54 Factory* factory() const; 55 Factory* factory() const;
55 Flags flags() const { return flags_; } 56 Flags flags() const { return flags_; }
56 Graph* graph() const; 57 Graph* graph() const;
57 Isolate* isolate() const; 58 Isolate* isolate() const;
58 JSGraph* jsgraph() const { return jsgraph_; } 59 JSGraph* jsgraph() const { return jsgraph_; }
59 SimplifiedOperatorBuilder* simplified() const; 60 SimplifiedOperatorBuilder* simplified() const;
60 61
61 CompilationDependencies* const dependencies_; 62 CompilationDependencies* const dependencies_;
62 Flags const flags_; 63 Flags const flags_;
63 JSGraph* const jsgraph_; 64 JSGraph* const jsgraph_;
64 Type* const true_type_; 65 Type* const true_type_;
65 Type* const false_type_; 66 Type* const false_type_;
66 TypeCache const& type_cache_; 67 TypeCache const& type_cache_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(TypedOptimization); 69 DISALLOW_COPY_AND_ASSIGN(TypedOptimization);
69 }; 70 };
70 71
71 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags) 72 DEFINE_OPERATORS_FOR_FLAGS(TypedOptimization::Flags)
72 73
73 } // namespace compiler 74 } // namespace compiler
74 } // namespace internal 75 } // namespace internal
75 } // namespace v8 76 } // namespace v8
76 77
77 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_ 78 #endif // V8_COMPILER_TYPED_OPTIMIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/type-cache.h ('k') | src/compiler/typed-optimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698