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

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

Issue 1380113002: [turbofan] Call FastNewContextStub for function context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 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
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/js-typed-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_JS_TYPED_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ 6 #define V8_COMPILER_JS_TYPED_LOWERING_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Reduction ReduceJSUnaryNot(Node* node); 54 Reduction ReduceJSUnaryNot(Node* node);
55 Reduction ReduceJSToBoolean(Node* node); 55 Reduction ReduceJSToBoolean(Node* node);
56 Reduction ReduceJSToNumberInput(Node* input); 56 Reduction ReduceJSToNumberInput(Node* input);
57 Reduction ReduceJSToNumber(Node* node); 57 Reduction ReduceJSToNumber(Node* node);
58 Reduction ReduceJSToStringInput(Node* input); 58 Reduction ReduceJSToStringInput(Node* input);
59 Reduction ReduceJSToString(Node* node); 59 Reduction ReduceJSToString(Node* node);
60 Reduction ReduceJSCreateArguments(Node* node); 60 Reduction ReduceJSCreateArguments(Node* node);
61 Reduction ReduceJSCreateClosure(Node* node); 61 Reduction ReduceJSCreateClosure(Node* node);
62 Reduction ReduceJSCreateLiteralArray(Node* node); 62 Reduction ReduceJSCreateLiteralArray(Node* node);
63 Reduction ReduceJSCreateLiteralObject(Node* node); 63 Reduction ReduceJSCreateLiteralObject(Node* node);
64 Reduction ReduceJSCreateFunctionContext(Node* node);
64 Reduction ReduceJSCreateWithContext(Node* node); 65 Reduction ReduceJSCreateWithContext(Node* node);
65 Reduction ReduceJSCreateBlockContext(Node* node); 66 Reduction ReduceJSCreateBlockContext(Node* node);
66 Reduction ReduceJSCallFunction(Node* node); 67 Reduction ReduceJSCallFunction(Node* node);
67 Reduction ReduceJSForInDone(Node* node); 68 Reduction ReduceJSForInDone(Node* node);
68 Reduction ReduceJSForInNext(Node* node); 69 Reduction ReduceJSForInNext(Node* node);
69 Reduction ReduceJSForInPrepare(Node* node); 70 Reduction ReduceJSForInPrepare(Node* node);
70 Reduction ReduceJSForInStep(Node* node); 71 Reduction ReduceJSForInStep(Node* node);
71 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); 72 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp);
72 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); 73 Reduction ReduceInt32Binop(Node* node, const Operator* intOp);
73 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, 74 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness,
74 const Operator* shift_op); 75 const Operator* shift_op);
75 76
76 Node* Word32Shl(Node* const lhs, int32_t const rhs); 77 Node* Word32Shl(Node* const lhs, int32_t const rhs);
77 78
78 Factory* factory() const; 79 Factory* factory() const;
79 Graph* graph() const; 80 Graph* graph() const;
80 JSGraph* jsgraph() const { return jsgraph_; } 81 JSGraph* jsgraph() const { return jsgraph_; }
81 Isolate* isolate() const; 82 Isolate* isolate() const;
82 JSOperatorBuilder* javascript() const; 83 JSOperatorBuilder* javascript() const;
83 CommonOperatorBuilder* common() const; 84 CommonOperatorBuilder* common() const;
84 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 85 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
85 MachineOperatorBuilder* machine() const; 86 MachineOperatorBuilder* machine() const;
86 87
87 // Limits up to which context allocations are inlined. 88 // Limits up to which context allocations are inlined.
89 static const int kFunctionContextAllocationLimit = 16;
88 static const int kBlockContextAllocationLimit = 16; 90 static const int kBlockContextAllocationLimit = 16;
89 91
90 JSGraph* jsgraph_; 92 JSGraph* jsgraph_;
91 SimplifiedOperatorBuilder simplified_; 93 SimplifiedOperatorBuilder simplified_;
92 Type* shifted_int32_ranges_[4]; 94 Type* shifted_int32_ranges_[4];
93 }; 95 };
94 96
95 } // namespace compiler 97 } // namespace compiler
96 } // namespace internal 98 } // namespace internal
97 } // namespace v8 99 } // namespace v8
98 100
99 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 101 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698