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

Side by Side Diff: src/compiler/code-stub-assembler.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.h ('k') | src/compiler/js-generic-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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/code-stub-assembler.h" 5 #include "src/compiler/code-stub-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 83
84 Node* CodeStubAssembler::BooleanConstant(bool value) { 84 Node* CodeStubAssembler::BooleanConstant(bool value) {
85 return raw_assembler_->BooleanConstant(value); 85 return raw_assembler_->BooleanConstant(value);
86 } 86 }
87 87
88 Node* CodeStubAssembler::ExternalConstant(ExternalReference address) { 88 Node* CodeStubAssembler::ExternalConstant(ExternalReference address) {
89 return raw_assembler_->ExternalConstant(address); 89 return raw_assembler_->ExternalConstant(address);
90 } 90 }
91 91
92 Node* CodeStubAssembler::Float64Constant(double value) {
93 return raw_assembler_->Float64Constant(value);
94 }
95
92 Node* CodeStubAssembler::Parameter(int value) { 96 Node* CodeStubAssembler::Parameter(int value) {
93 return raw_assembler_->Parameter(value); 97 return raw_assembler_->Parameter(value);
94 } 98 }
95 99
96 100
97 void CodeStubAssembler::Return(Node* value) { 101 void CodeStubAssembler::Return(Node* value) {
98 return raw_assembler_->Return(value); 102 return raw_assembler_->Return(value);
99 } 103 }
100 104
101 void CodeStubAssembler::Bind(CodeStubAssembler::Label* label) { 105 void CodeStubAssembler::Bind(CodeStubAssembler::Label* label) {
(...skipping 21 matching lines...) Expand all
123 return raw_assembler_->WordShl(value, SmiShiftBitsConstant()); 127 return raw_assembler_->WordShl(value, SmiShiftBitsConstant());
124 } 128 }
125 129
126 130
127 Node* CodeStubAssembler::SmiUntag(Node* value) { 131 Node* CodeStubAssembler::SmiUntag(Node* value) {
128 return raw_assembler_->WordSar(value, SmiShiftBitsConstant()); 132 return raw_assembler_->WordSar(value, SmiShiftBitsConstant());
129 } 133 }
130 134
131 Node* CodeStubAssembler::SmiAdd(Node* a, Node* b) { return IntPtrAdd(a, b); } 135 Node* CodeStubAssembler::SmiAdd(Node* a, Node* b) { return IntPtrAdd(a, b); }
132 136
137 Node* CodeStubAssembler::SmiEqual(Node* a, Node* b) { return WordEqual(a, b); }
138
133 #define DEFINE_CODE_STUB_ASSEMBER_BINARY_OP(name) \ 139 #define DEFINE_CODE_STUB_ASSEMBER_BINARY_OP(name) \
134 Node* CodeStubAssembler::name(Node* a, Node* b) { \ 140 Node* CodeStubAssembler::name(Node* a, Node* b) { \
135 return raw_assembler_->name(a, b); \ 141 return raw_assembler_->name(a, b); \
136 } 142 }
137 CODE_STUB_ASSEMBLER_BINARY_OP_LIST(DEFINE_CODE_STUB_ASSEMBER_BINARY_OP) 143 CODE_STUB_ASSEMBLER_BINARY_OP_LIST(DEFINE_CODE_STUB_ASSEMBER_BINARY_OP)
138 #undef DEFINE_CODE_STUB_ASSEMBER_BINARY_OP 144 #undef DEFINE_CODE_STUB_ASSEMBER_BINARY_OP
139 145
140 Node* CodeStubAssembler::ChangeInt32ToInt64(Node* value) { 146 Node* CodeStubAssembler::ChangeInt32ToInt64(Node* value) {
141 return raw_assembler_->ChangeInt32ToInt64(value); 147 return raw_assembler_->ChangeInt32ToInt64(value);
142 } 148 }
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 617 }
612 } 618 }
613 } 619 }
614 620
615 bound_ = true; 621 bound_ = true;
616 } 622 }
617 623
618 } // namespace compiler 624 } // namespace compiler
619 } // namespace internal 625 } // namespace internal
620 } // namespace v8 626 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698