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

Side by Side Diff: src/compiler/machine-node-factory.h

Issue 435923002: TF: Rename ConvertXToY machine operators to ChangeXToY. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('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_MACHINE_NODE_FACTORY_H_ 5 #ifndef V8_COMPILER_MACHINE_NODE_FACTORY_H_
6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ 6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_
7 7
8 #ifdef USE_SIMULATOR 8 #ifdef USE_SIMULATOR
9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0
10 #else 10 #else
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return Float64LessThanOrEqual(b, a); 328 return Float64LessThanOrEqual(b, a);
329 } 329 }
330 330
331 // Conversions. 331 // Conversions.
332 Node* ConvertInt32ToInt64(Node* a) { 332 Node* ConvertInt32ToInt64(Node* a) {
333 return NEW_NODE_1(MACHINE()->ConvertInt32ToInt64(), a); 333 return NEW_NODE_1(MACHINE()->ConvertInt32ToInt64(), a);
334 } 334 }
335 Node* ConvertInt64ToInt32(Node* a) { 335 Node* ConvertInt64ToInt32(Node* a) {
336 return NEW_NODE_1(MACHINE()->ConvertInt64ToInt32(), a); 336 return NEW_NODE_1(MACHINE()->ConvertInt64ToInt32(), a);
337 } 337 }
338 Node* ConvertInt32ToFloat64(Node* a) { 338 Node* ChangeInt32ToFloat64(Node* a) {
339 return NEW_NODE_1(MACHINE()->ConvertInt32ToFloat64(), a); 339 return NEW_NODE_1(MACHINE()->ChangeInt32ToFloat64(), a);
340 } 340 }
341 Node* ConvertUint32ToFloat64(Node* a) { 341 Node* ChangeUint32ToFloat64(Node* a) {
342 return NEW_NODE_1(MACHINE()->ConvertUint32ToFloat64(), a); 342 return NEW_NODE_1(MACHINE()->ChangeUint32ToFloat64(), a);
343 } 343 }
344 Node* ConvertFloat64ToInt32(Node* a) { 344 Node* ChangeFloat64ToInt32(Node* a) {
345 return NEW_NODE_1(MACHINE()->ConvertFloat64ToInt32(), a); 345 return NEW_NODE_1(MACHINE()->ChangeFloat64ToInt32(), a);
346 } 346 }
347 Node* ConvertFloat64ToUint32(Node* a) { 347 Node* ChangeFloat64ToUint32(Node* a) {
348 return NEW_NODE_1(MACHINE()->ConvertFloat64ToUint32(), a); 348 return NEW_NODE_1(MACHINE()->ChangeFloat64ToUint32(), a);
349 } 349 }
350 350
351 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C 351 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C
352 // Call to C. 352 // Call to C.
353 Node* CallC(Node* function_address, MachineRepresentation return_type, 353 Node* CallC(Node* function_address, MachineRepresentation return_type,
354 MachineRepresentation* arg_types, Node** args, int n_args) { 354 MachineRepresentation* arg_types, Node** args, int n_args) {
355 CallDescriptor* descriptor = Linkage::GetSimplifiedCDescriptor( 355 CallDescriptor* descriptor = Linkage::GetSimplifiedCDescriptor(
356 ZONE(), n_args, return_type, arg_types); 356 ZONE(), n_args, return_type, arg_types);
357 Node** passed_args = 357 Node** passed_args =
358 static_cast<Node**>(alloca((n_args + 1) * sizeof(args[0]))); 358 static_cast<Node**>(alloca((n_args + 1) * sizeof(args[0])));
(...skipping 12 matching lines...) Expand all
371 #undef NEW_NODE_3 371 #undef NEW_NODE_3
372 #undef MACHINE 372 #undef MACHINE
373 #undef COMMON 373 #undef COMMON
374 #undef ZONE 374 #undef ZONE
375 375
376 } // namespace compiler 376 } // namespace compiler
377 } // namespace internal 377 } // namespace internal
378 } // namespace v8 378 } // namespace v8
379 379
380 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ 380 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698