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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.h

Issue 1553703002: [runtime] TailCallRuntime and CallRuntime should use default argument counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-12-29_TailCallRuntime_default_result_size_1_1550923002
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void CallRuntime(const Runtime::Function* fun, int argc, LInstruction* instr, 198 void CallRuntime(const Runtime::Function* fun, int argc, LInstruction* instr,
199 SaveFPRegsMode save_doubles = kDontSaveFPRegs); 199 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
200 200
201 void CallRuntime(Runtime::FunctionId id, 201 void CallRuntime(Runtime::FunctionId id,
202 int argc, 202 int argc,
203 LInstruction* instr) { 203 LInstruction* instr) {
204 const Runtime::Function* function = Runtime::FunctionForId(id); 204 const Runtime::Function* function = Runtime::FunctionForId(id);
205 CallRuntime(function, argc, instr); 205 CallRuntime(function, argc, instr);
206 } 206 }
207 207
208 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) {
209 const Runtime::Function* function = Runtime::FunctionForId(id);
210 CallRuntime(function, function->nargs, instr);
211 }
212
208 void CallRuntimeFromDeferred(Runtime::FunctionId id, 213 void CallRuntimeFromDeferred(Runtime::FunctionId id,
209 int argc, 214 int argc,
210 LInstruction* instr, 215 LInstruction* instr,
211 LOperand* context); 216 LOperand* context);
212 217
213 void LoadContextFromDeferred(LOperand* context); 218 void LoadContextFromDeferred(LOperand* context);
214 219
215 // Generate a direct call to a known function. Expects the function 220 // Generate a direct call to a known function. Expects the function
216 // to be in edi. 221 // to be in edi.
217 void CallKnownFunction(Handle<JSFunction> function, 222 void CallKnownFunction(Handle<JSFunction> function,
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 Label* external_exit_; 486 Label* external_exit_;
482 Label done_; 487 Label done_;
483 int instruction_index_; 488 int instruction_index_;
484 LCodeGen::X87Stack x87_stack_; 489 LCodeGen::X87Stack x87_stack_;
485 }; 490 };
486 491
487 } // namespace internal 492 } // namespace internal
488 } // namespace v8 493 } // namespace v8
489 494
490 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 495 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698