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

Side by Side Diff: src/compiler/simplified-lowering.h

Issue 640603003: [turbofan] Properly emit bounds checks for typed array element loads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add another test. Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/representation-change.h ('k') | src/compiler/simplified-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 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_SIMPLIFIED_LOWERING_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_
6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
11 #include "src/compiler/simplified-operator.h" 11 #include "src/compiler/simplified-operator.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 class SimplifiedLowering { 17 class SimplifiedLowering FINAL {
18 public: 18 public:
19 explicit SimplifiedLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} 19 explicit SimplifiedLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {}
20 virtual ~SimplifiedLowering() {} 20 ~SimplifiedLowering() {}
21 21
22 void LowerAllNodes(); 22 void LowerAllNodes();
23 23
24 // TODO(titzer): These are exposed for direct testing. Use a friend class. 24 // TODO(titzer): These are exposed for direct testing. Use a friend class.
25 void DoLoadField(Node* node); 25 void DoLoadField(Node* node);
26 void DoStoreField(Node* node); 26 void DoStoreField(Node* node);
27 void DoLoadElement(Node* node); 27 // TODO(turbofan): The output_type can be removed once the result of the
28 // representation analysis is stored in the node bounds.
29 void DoLoadElement(Node* node, MachineType output_type);
28 void DoStoreElement(Node* node); 30 void DoStoreElement(Node* node);
29 void DoStringAdd(Node* node); 31 void DoStringAdd(Node* node);
30 void DoStringEqual(Node* node); 32 void DoStringEqual(Node* node);
31 void DoStringLessThan(Node* node); 33 void DoStringLessThan(Node* node);
32 void DoStringLessThanOrEqual(Node* node); 34 void DoStringLessThanOrEqual(Node* node);
33 35
34 private: 36 private:
35 JSGraph* jsgraph_; 37 JSGraph* jsgraph_;
36 38
37 Node* SmiTag(Node* node); 39 Node* SmiTag(Node* node);
(...skipping 10 matching lines...) Expand all
48 Graph* graph() { return jsgraph()->graph(); } 50 Graph* graph() { return jsgraph()->graph(); }
49 CommonOperatorBuilder* common() { return jsgraph()->common(); } 51 CommonOperatorBuilder* common() { return jsgraph()->common(); }
50 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 52 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
51 }; 53 };
52 54
53 } // namespace compiler 55 } // namespace compiler
54 } // namespace internal 56 } // namespace internal
55 } // namespace v8 57 } // namespace v8
56 58
57 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 59 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/representation-change.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698