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

Side by Side Diff: src/compiler/raw-machine-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/compiler/js-generic-lowering.cc ('k') | src/interpreter/interpreter.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_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return AddNode(machine()->Word32PairSar(), low_word, high_word, shift); 340 return AddNode(machine()->Word32PairSar(), low_word, high_word, shift);
341 } 341 }
342 342
343 #define INTPTR_BINOP(prefix, name) \ 343 #define INTPTR_BINOP(prefix, name) \
344 Node* IntPtr##name(Node* a, Node* b) { \ 344 Node* IntPtr##name(Node* a, Node* b) { \
345 return kPointerSize == 8 ? prefix##64##name(a, b) \ 345 return kPointerSize == 8 ? prefix##64##name(a, b) \
346 : prefix##32##name(a, b); \ 346 : prefix##32##name(a, b); \
347 } 347 }
348 348
349 INTPTR_BINOP(Int, Add); 349 INTPTR_BINOP(Int, Add);
350 INTPTR_BINOP(Int, AddWithOverflow);
350 INTPTR_BINOP(Int, Sub); 351 INTPTR_BINOP(Int, Sub);
352 INTPTR_BINOP(Int, SubWithOverflow);
351 INTPTR_BINOP(Int, LessThan); 353 INTPTR_BINOP(Int, LessThan);
352 INTPTR_BINOP(Int, LessThanOrEqual); 354 INTPTR_BINOP(Int, LessThanOrEqual);
353 INTPTR_BINOP(Word, Equal); 355 INTPTR_BINOP(Word, Equal);
354 INTPTR_BINOP(Word, NotEqual); 356 INTPTR_BINOP(Word, NotEqual);
355 INTPTR_BINOP(Int, GreaterThanOrEqual); 357 INTPTR_BINOP(Int, GreaterThanOrEqual);
356 INTPTR_BINOP(Int, GreaterThan); 358 INTPTR_BINOP(Int, GreaterThan);
357 359
358 #undef INTPTR_BINOP 360 #undef INTPTR_BINOP
359 361
360 #define UINTPTR_BINOP(prefix, name) \ 362 #define UINTPTR_BINOP(prefix, name) \
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 bool deferred_; 730 bool deferred_;
729 friend class RawMachineAssembler; 731 friend class RawMachineAssembler;
730 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 732 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
731 }; 733 };
732 734
733 } // namespace compiler 735 } // namespace compiler
734 } // namespace internal 736 } // namespace internal
735 } // namespace v8 737 } // namespace v8
736 738
737 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 739 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698