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

Side by Side Diff: src/ic/x87/ic-compiler-x87.cc

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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 #include "src/ic/ic-compiler.h" 8 #include "src/ic/ic-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 #define __ ACCESS_MASM(masm) 13 #define __ ACCESS_MASM(masm)
14 14
15 15
16 void PropertyICCompiler::GenerateRuntimeSetProperty( 16 void PropertyICCompiler::GenerateRuntimeSetProperty(
17 MacroAssembler* masm, LanguageMode language_mode) { 17 MacroAssembler* masm, LanguageMode language_mode) {
18 // Return address is on the stack. 18 // Return address is on the stack.
19 DCHECK(!ebx.is(StoreDescriptor::ReceiverRegister()) && 19 DCHECK(!ebx.is(StoreDescriptor::ReceiverRegister()) &&
20 !ebx.is(StoreDescriptor::NameRegister()) && 20 !ebx.is(StoreDescriptor::NameRegister()) &&
21 !ebx.is(StoreDescriptor::ValueRegister())); 21 !ebx.is(StoreDescriptor::ValueRegister()));
22 __ pop(ebx); 22 __ pop(ebx);
23 __ push(StoreDescriptor::ReceiverRegister()); 23 __ push(StoreDescriptor::ReceiverRegister());
24 __ push(StoreDescriptor::NameRegister()); 24 __ push(StoreDescriptor::NameRegister());
25 __ push(StoreDescriptor::ValueRegister()); 25 __ push(StoreDescriptor::ValueRegister());
26 __ push(Immediate(Smi::FromInt(language_mode))); 26 __ push(Immediate(Smi::FromInt(language_mode)));
27 __ push(ebx); // return address 27 __ push(ebx); // return address
28 28
29 // Do tail-call to runtime routine. 29 // Do tail-call to runtime routine.
30 __ TailCallRuntime(Runtime::kSetProperty, 4); 30 __ TailCallRuntime(Runtime::kSetProperty);
31 } 31 }
32 32
33 33
34 #undef __ 34 #undef __
35 } // namespace internal 35 } // namespace internal
36 } // namespace v8 36 } // namespace v8
37 37
38 #endif // V8_TARGET_ARCH_X87 38 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698