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

Side by Side Diff: src/x64/code-stubs-x64.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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 102
103 #define __ ACCESS_MASM(masm) 103 #define __ ACCESS_MASM(masm)
104 104
105 105
106 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 106 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
107 // Update the static counter each time a new code stub is generated. 107 // Update the static counter each time a new code stub is generated.
108 isolate()->counters()->code_stubs()->Increment(); 108 isolate()->counters()->code_stubs()->Increment();
109 109
110 CodeStubInterfaceDescriptor descriptor; 110 CodeStubInterfaceDescriptor descriptor(this);
111 InitializeInterfaceDescriptor(&descriptor);
112 int param_count = descriptor.GetEnvironmentParameterCount(); 111 int param_count = descriptor.GetEnvironmentParameterCount();
113 { 112 {
114 // Call the runtime system in a fresh internal frame. 113 // Call the runtime system in a fresh internal frame.
115 FrameScope scope(masm, StackFrame::INTERNAL); 114 FrameScope scope(masm, StackFrame::INTERNAL);
116 DCHECK(param_count == 0 || 115 DCHECK(param_count == 0 ||
117 rax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); 116 rax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
118 // Push arguments 117 // Push arguments
119 for (int i = 0; i < param_count; ++i) { 118 for (int i = 0; i < param_count; ++i) {
120 __ Push(descriptor.GetEnvironmentParameterRegister(i)); 119 __ Push(descriptor.GetEnvironmentParameterRegister(i));
121 } 120 }
(...skipping 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4648 return_value_operand, 4647 return_value_operand,
4649 NULL); 4648 NULL);
4650 } 4649 }
4651 4650
4652 4651
4653 #undef __ 4652 #undef __
4654 4653
4655 } } // namespace v8::internal 4654 } } // namespace v8::internal
4656 4655
4657 #endif // V8_TARGET_ARCH_X64 4656 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698