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

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

Issue 534743004: Fix Clang compilation after r23657. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return NEW_NODE_1(MACHINE()->TruncateFloat64ToInt32(), a); 340 return NEW_NODE_1(MACHINE()->TruncateFloat64ToInt32(), a);
341 } 341 }
342 Node* TruncateInt64ToInt32(Node* a) { 342 Node* TruncateInt64ToInt32(Node* a) {
343 return NEW_NODE_1(MACHINE()->TruncateInt64ToInt32(), a); 343 return NEW_NODE_1(MACHINE()->TruncateInt64ToInt32(), a);
344 } 344 }
345 345
346 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C 346 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C
347 // Call to C. 347 // Call to C.
348 Node* CallC(Node* function_address, MachineType return_type, 348 Node* CallC(Node* function_address, MachineType return_type,
349 MachineType* arg_types, Node** args, int n_args) { 349 MachineType* arg_types, Node** args, int n_args) {
350 Zone* zone = ZONE();
350 CallDescriptor* descriptor = 351 CallDescriptor* descriptor =
351 Linkage::GetSimplifiedCDescriptor(ZONE(), MACHINE_SIG()); 352 Linkage::GetSimplifiedCDescriptor(ZONE(), MACHINE_SIG());
352 Node** passed_args = ZONE()->NewArray<Node*>(n_args + 1); 353 Node** passed_args = zone->NewArray<Node*>(n_args + 1);
353 passed_args[0] = function_address; 354 passed_args[0] = function_address;
354 for (int i = 0; i < n_args; ++i) { 355 for (int i = 0; i < n_args; ++i) {
355 passed_args[i + 1] = args[i]; 356 passed_args[i + 1] = args[i];
356 } 357 }
357 return NEW_NODE_2(COMMON()->Call(descriptor), n_args + 1, passed_args); 358 return NEW_NODE_2(COMMON()->Call(descriptor), n_args + 1, passed_args);
358 } 359 }
359 #endif 360 #endif
360 }; 361 };
361 362
362 #undef NEW_NODE_0 363 #undef NEW_NODE_0
363 #undef NEW_NODE_1 364 #undef NEW_NODE_1
364 #undef NEW_NODE_2 365 #undef NEW_NODE_2
365 #undef NEW_NODE_3 366 #undef NEW_NODE_3
366 #undef MACHINE 367 #undef MACHINE
367 #undef COMMON 368 #undef COMMON
368 #undef ZONE 369 #undef ZONE
369 370
370 } // namespace compiler 371 } // namespace compiler
371 } // namespace internal 372 } // namespace internal
372 } // namespace v8 373 } // namespace v8
373 374
374 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ 375 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698