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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 553833002: Initialize CodeStubInterfaceDescriptor in the constructor. (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 | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 110
111 #define __ ACCESS_MASM(masm) 111 #define __ ACCESS_MASM(masm)
112 112
113 113
114 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 114 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
115 // Update the static counter each time a new code stub is generated. 115 // Update the static counter each time a new code stub is generated.
116 isolate()->counters()->code_stubs()->Increment(); 116 isolate()->counters()->code_stubs()->Increment();
117 117
118 CodeStubInterfaceDescriptor descriptor; 118 CodeStubInterfaceDescriptor descriptor(this);
119 InitializeInterfaceDescriptor(&descriptor);
120 int param_count = descriptor.GetEnvironmentParameterCount(); 119 int param_count = descriptor.GetEnvironmentParameterCount();
121 { 120 {
122 // Call the runtime system in a fresh internal frame. 121 // Call the runtime system in a fresh internal frame.
123 FrameScope scope(masm, StackFrame::INTERNAL); 122 FrameScope scope(masm, StackFrame::INTERNAL);
124 DCHECK(param_count == 0 || 123 DCHECK(param_count == 0 ||
125 eax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); 124 eax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
126 // Push arguments 125 // Push arguments
127 for (int i = 0; i < param_count; ++i) { 126 for (int i = 0; i < param_count; ++i) {
128 __ push(descriptor.GetEnvironmentParameterRegister(i)); 127 __ push(descriptor.GetEnvironmentParameterRegister(i));
129 } 128 }
(...skipping 4549 matching lines...) Expand 10 before | Expand all | Expand 10 after
4679 Operand(ebp, 7 * kPointerSize), 4678 Operand(ebp, 7 * kPointerSize),
4680 NULL); 4679 NULL);
4681 } 4680 }
4682 4681
4683 4682
4684 #undef __ 4683 #undef __
4685 4684
4686 } } // namespace v8::internal 4685 } } // namespace v8::internal
4687 4686
4688 #endif // V8_TARGET_ARCH_IA32 4687 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698