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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 1744163002: [stubs] Introduce a proper ToBooleanStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips Created 4 years, 9 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/code-stub-assembler.cc ('k') | src/compiler/linkage.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 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void JSGenericLowering::LowerJSTypeOf(Node* node) { 132 void JSGenericLowering::LowerJSTypeOf(Node* node) {
133 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 133 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
134 Callable callable = CodeFactory::Typeof(isolate()); 134 Callable callable = CodeFactory::Typeof(isolate());
135 ReplaceWithStubCall(node, callable, flags); 135 ReplaceWithStubCall(node, callable, flags);
136 } 136 }
137 137
138 138
139 void JSGenericLowering::LowerJSToBoolean(Node* node) { 139 void JSGenericLowering::LowerJSToBoolean(Node* node) {
140 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 140 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
141 Callable callable = CodeFactory::ToBoolean(isolate()); 141 Callable callable = CodeFactory::ToBoolean(isolate());
142 ReplaceWithStubCall(node, callable, 142 ReplaceWithStubCall(node, callable, flags);
143 CallDescriptor::kPatchableCallSite | flags);
144 } 143 }
145 144
146 145
147 void JSGenericLowering::LowerJSToNumber(Node* node) { 146 void JSGenericLowering::LowerJSToNumber(Node* node) {
148 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 147 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
149 Callable callable = CodeFactory::ToNumber(isolate()); 148 Callable callable = CodeFactory::ToNumber(isolate());
150 ReplaceWithStubCall(node, callable, flags); 149 ReplaceWithStubCall(node, callable, flags);
151 } 150 }
152 151
153 152
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 } 768 }
770 769
771 770
772 MachineOperatorBuilder* JSGenericLowering::machine() const { 771 MachineOperatorBuilder* JSGenericLowering::machine() const {
773 return jsgraph()->machine(); 772 return jsgraph()->machine();
774 } 773 }
775 774
776 } // namespace compiler 775 } // namespace compiler
777 } // namespace internal 776 } // namespace internal
778 } // namespace v8 777 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698