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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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_IA32_LITHIUM_CODEGEN_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/base/logging.h" 9 #include "src/base/logging.h"
10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 LInstruction* instr, 170 LInstruction* instr,
171 SaveFPRegsMode save_doubles = kDontSaveFPRegs); 171 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
172 172
173 void CallRuntime(Runtime::FunctionId id, 173 void CallRuntime(Runtime::FunctionId id,
174 int argc, 174 int argc,
175 LInstruction* instr) { 175 LInstruction* instr) {
176 const Runtime::Function* function = Runtime::FunctionForId(id); 176 const Runtime::Function* function = Runtime::FunctionForId(id);
177 CallRuntime(function, argc, instr); 177 CallRuntime(function, argc, instr);
178 } 178 }
179 179
180 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) {
181 const Runtime::Function* function = Runtime::FunctionForId(id);
182 CallRuntime(function, function->nargs, instr);
183 }
184
180 void CallRuntimeFromDeferred(Runtime::FunctionId id, 185 void CallRuntimeFromDeferred(Runtime::FunctionId id,
181 int argc, 186 int argc,
182 LInstruction* instr, 187 LInstruction* instr,
183 LOperand* context); 188 LOperand* context);
184 189
185 void LoadContextFromDeferred(LOperand* context); 190 void LoadContextFromDeferred(LOperand* context);
186 191
187 // Generate a direct call to a known function. Expects the function 192 // Generate a direct call to a known function. Expects the function
188 // to be in edi. 193 // to be in edi.
189 void CallKnownFunction(Handle<JSFunction> function, 194 void CallKnownFunction(Handle<JSFunction> function,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Label exit_; 384 Label exit_;
380 Label* external_exit_; 385 Label* external_exit_;
381 Label done_; 386 Label done_;
382 int instruction_index_; 387 int instruction_index_;
383 }; 388 };
384 389
385 } // namespace internal 390 } // namespace internal
386 } // namespace v8 391 } // namespace v8
387 392
388 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ 393 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698