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

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

Issue 2577013003: [turbofan] Combine family of TailCallRuntime() methods into single implementation. (Closed)
Patch Set: Addressing comments Created 4 years 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 | « no previous file | src/compiler/code-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_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // if GC happens. 296 // if GC happens.
297 Node* Retain(Node* value); 297 Node* Retain(Node* value);
298 298
299 // Projections 299 // Projections
300 Node* Projection(int index, Node* value); 300 Node* Projection(int index, Node* value);
301 301
302 // Calls 302 // Calls
303 template <class... TArgs> 303 template <class... TArgs>
304 Node* CallRuntime(Runtime::FunctionId function, Node* context, TArgs... args); 304 Node* CallRuntime(Runtime::FunctionId function, Node* context, TArgs... args);
305 305
306 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context); 306 template <class... TArgs>
307 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context, 307 Node* TailCallRuntime(Runtime::FunctionId function, Node* context,
308 Node* arg1); 308 TArgs... args);
309 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context,
310 Node* arg1, Node* arg2);
311 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context,
312 Node* arg1, Node* arg2, Node* arg3);
313 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context,
314 Node* arg1, Node* arg2, Node* arg3, Node* arg4);
315 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context,
316 Node* arg1, Node* arg2, Node* arg3, Node* arg4,
317 Node* arg5);
318 Node* TailCallRuntime(Runtime::FunctionId function_id, Node* context,
319 Node* arg1, Node* arg2, Node* arg3, Node* arg4,
320 Node* arg5, Node* arg6);
321 309
322 // A pair of a zero-based argument index and a value. 310 // A pair of a zero-based argument index and a value.
323 // It helps writing arguments order independent code. 311 // It helps writing arguments order independent code.
324 struct Arg { 312 struct Arg {
325 Arg(int index, Node* value) : index(index), value(value) {} 313 Arg(int index, Node* value) : index(index), value(value) {}
326 314
327 int const index; 315 int const index;
328 Node* const value; 316 Node* const value;
329 }; 317 };
330 318
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 ZoneSet<CodeAssemblerVariable::Impl*> variables_; 547 ZoneSet<CodeAssemblerVariable::Impl*> variables_;
560 548
561 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 549 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
562 }; 550 };
563 551
564 } // namespace compiler 552 } // namespace compiler
565 } // namespace internal 553 } // namespace internal
566 } // namespace v8 554 } // namespace v8
567 555
568 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 556 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698