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

Side by Side Diff: src/compiler/code-stub-assembler.h

Issue 1823083002: [stubs] Introduce AddStub and SubtractStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/code-stubs.cc ('k') | src/compiler/code-stub-assembler.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 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 V(UintPtrGreaterThanOrEqual) \ 56 V(UintPtrGreaterThanOrEqual) \
57 V(WordEqual) \ 57 V(WordEqual) \
58 V(WordNotEqual) \ 58 V(WordNotEqual) \
59 V(Word32Equal) \ 59 V(Word32Equal) \
60 V(Word32NotEqual) \ 60 V(Word32NotEqual) \
61 V(Word64Equal) \ 61 V(Word64Equal) \
62 V(Word64NotEqual) 62 V(Word64NotEqual)
63 63
64 #define CODE_STUB_ASSEMBLER_BINARY_OP_LIST(V) \ 64 #define CODE_STUB_ASSEMBLER_BINARY_OP_LIST(V) \
65 CODE_STUB_ASSEMBLER_COMPARE_BINARY_OP_LIST(V) \ 65 CODE_STUB_ASSEMBLER_COMPARE_BINARY_OP_LIST(V) \
66 V(Float64Add) \
67 V(Float64Sub) \
66 V(IntPtrAdd) \ 68 V(IntPtrAdd) \
69 V(IntPtrAddWithOverflow) \
67 V(IntPtrSub) \ 70 V(IntPtrSub) \
71 V(IntPtrSubWithOverflow) \
68 V(Int32Add) \ 72 V(Int32Add) \
69 V(Int32Sub) \ 73 V(Int32Sub) \
70 V(Int32Mul) \ 74 V(Int32Mul) \
71 V(WordOr) \ 75 V(WordOr) \
72 V(WordAnd) \ 76 V(WordAnd) \
73 V(WordXor) \ 77 V(WordXor) \
74 V(WordShl) \ 78 V(WordShl) \
75 V(WordShr) \ 79 V(WordShr) \
76 V(WordSar) \ 80 V(WordSar) \
77 V(WordRor) \ 81 V(WordRor) \
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 Node* SmiTag(Node* value); 260 Node* SmiTag(Node* value);
257 // Untag a Smi value as a Word. 261 // Untag a Smi value as a Word.
258 Node* SmiUntag(Node* value); 262 Node* SmiUntag(Node* value);
259 263
260 // Smi conversions. 264 // Smi conversions.
261 Node* SmiToFloat64(Node* value); 265 Node* SmiToFloat64(Node* value);
262 Node* SmiToInt32(Node* value); 266 Node* SmiToInt32(Node* value);
263 267
264 // Smi operations. 268 // Smi operations.
265 Node* SmiAdd(Node* a, Node* b); 269 Node* SmiAdd(Node* a, Node* b);
270 Node* SmiAddWithOverflow(Node* a, Node* b);
271 Node* SmiSub(Node* a, Node* b);
272 Node* SmiSubWithOverflow(Node* a, Node* b);
266 Node* SmiEqual(Node* a, Node* b); 273 Node* SmiEqual(Node* a, Node* b);
267 Node* SmiLessThan(Node* a, Node* b); 274 Node* SmiLessThan(Node* a, Node* b);
268 Node* SmiLessThanOrEqual(Node* a, Node* b); 275 Node* SmiLessThanOrEqual(Node* a, Node* b);
269 Node* SmiMin(Node* a, Node* b); 276 Node* SmiMin(Node* a, Node* b);
270 277
271 // Load a value from the root array. 278 // Load a value from the root array.
272 Node* LoadRoot(Heap::RootListIndex root_index); 279 Node* LoadRoot(Heap::RootListIndex root_index);
273 280
274 // Check a value for smi-ness 281 // Check a value for smi-ness
275 Node* WordIsSmi(Node* a); 282 Node* WordIsSmi(Node* a);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // Map of variables to the list of value nodes that have been added from each 425 // Map of variables to the list of value nodes that have been added from each
419 // merge path in their order of merging. 426 // merge path in their order of merging.
420 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 427 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
421 }; 428 };
422 429
423 } // namespace compiler 430 } // namespace compiler
424 } // namespace internal 431 } // namespace internal
425 } // namespace v8 432 } // namespace v8
426 433
427 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 434 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698