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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 654833002: [turbofan] Optimize division/modulus by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/x64/code-generator-x64.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/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 218 }
219 Node* Int32Sub(Node* a, Node* b) { 219 Node* Int32Sub(Node* a, Node* b) {
220 return NewNode(machine()->Int32Sub(), a, b); 220 return NewNode(machine()->Int32Sub(), a, b);
221 } 221 }
222 Node* Int32SubWithOverflow(Node* a, Node* b) { 222 Node* Int32SubWithOverflow(Node* a, Node* b) {
223 return NewNode(machine()->Int32SubWithOverflow(), a, b); 223 return NewNode(machine()->Int32SubWithOverflow(), a, b);
224 } 224 }
225 Node* Int32Mul(Node* a, Node* b) { 225 Node* Int32Mul(Node* a, Node* b) {
226 return NewNode(machine()->Int32Mul(), a, b); 226 return NewNode(machine()->Int32Mul(), a, b);
227 } 227 }
228 Node* Int32MulHigh(Node* a, Node* b) {
229 return NewNode(machine()->Int32MulHigh(), a, b);
230 }
228 Node* Int32Div(Node* a, Node* b) { 231 Node* Int32Div(Node* a, Node* b) {
229 return NewNode(machine()->Int32Div(), a, b); 232 return NewNode(machine()->Int32Div(), a, b);
230 } 233 }
231 Node* Int32Mod(Node* a, Node* b) { 234 Node* Int32Mod(Node* a, Node* b) {
232 return NewNode(machine()->Int32Mod(), a, b); 235 return NewNode(machine()->Int32Mod(), a, b);
233 } 236 }
234 Node* Int32LessThan(Node* a, Node* b) { 237 Node* Int32LessThan(Node* a, Node* b) {
235 return NewNode(machine()->Int32LessThan(), a, b); 238 return NewNode(machine()->Int32LessThan(), a, b);
236 } 239 }
237 Node* Int32LessThanOrEqual(Node* a, Node* b) { 240 Node* Int32LessThanOrEqual(Node* a, Node* b) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 BasicBlock* current_block_; 441 BasicBlock* current_block_;
439 442
440 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 443 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
441 }; 444 };
442 445
443 } // namespace compiler 446 } // namespace compiler
444 } // namespace internal 447 } // namespace internal
445 } // namespace v8 448 } // namespace v8
446 449
447 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 450 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698