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

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

Issue 435393004: Carry along ContextualMode in JSLoadNamed operators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-operator.h ('k') | no next file » | 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_OPERATOR_REDUCERS_H_ 5 #ifndef V8_COMPILER_OPERATOR_REDUCERS_H_
6 #define V8_COMPILER_OPERATOR_REDUCERS_H_ 6 #define V8_COMPILER_OPERATOR_REDUCERS_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/lowering-builder.h" 10 #include "src/compiler/lowering-builder.h"
11 #include "src/compiler/machine-operator.h" 11 #include "src/compiler/machine-operator.h"
12 #include "src/compiler/node.h" 12 #include "src/compiler/node.h"
13 #include "src/compiler/simplified-operator.h" 13 #include "src/compiler/simplified-operator.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 namespace compiler { 17 namespace compiler {
18 18
19 class JSBinopReduction;
20
21 // Lowers JS-level operators to simplified operators based on types. 19 // Lowers JS-level operators to simplified operators based on types.
22 class JSTypedLowering : public LoweringBuilder { 20 class JSTypedLowering : public LoweringBuilder {
23 public: 21 public:
24 explicit JSTypedLowering(JSGraph* jsgraph, 22 explicit JSTypedLowering(JSGraph* jsgraph,
25 SourcePositionTable* source_positions) 23 SourcePositionTable* source_positions)
26 : LoweringBuilder(jsgraph->graph(), source_positions), 24 : LoweringBuilder(jsgraph->graph(), source_positions),
27 jsgraph_(jsgraph), 25 jsgraph_(jsgraph),
28 simplified_(jsgraph->zone()), 26 simplified_(jsgraph->zone()),
29 machine_(jsgraph->zone()) {} 27 machine_(jsgraph->zone()) {}
30 virtual ~JSTypedLowering() {} 28 virtual ~JSTypedLowering() {}
(...skipping 29 matching lines...) Expand all
60 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } 58 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); }
61 CommonOperatorBuilder* common() { return jsgraph_->common(); } 59 CommonOperatorBuilder* common() { return jsgraph_->common(); }
62 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 60 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
63 MachineOperatorBuilder* machine() { return &machine_; } 61 MachineOperatorBuilder* machine() { return &machine_; }
64 }; 62 };
65 } 63 }
66 } 64 }
67 } // namespace v8::internal::compiler 65 } // namespace v8::internal::compiler
68 66
69 #endif // V8_COMPILER_OPERATOR_REDUCERS_H_ 67 #endif // V8_COMPILER_OPERATOR_REDUCERS_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698