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

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

Issue 544123002: Do not cache CodeStubInterfaceDescriptor on the isolate. (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
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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 106
107 #define __ ACCESS_MASM(masm) 107 #define __ ACCESS_MASM(masm)
108 108
109 109
110 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 110 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
111 // Update the static counter each time a new code stub is generated. 111 // Update the static counter each time a new code stub is generated.
112 isolate()->counters()->code_stubs()->Increment(); 112 isolate()->counters()->code_stubs()->Increment();
113 113
114 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(); 114 CodeStubInterfaceDescriptor descriptor;
115 int param_count = descriptor->GetEnvironmentParameterCount(); 115 InitializeInterfaceDescriptor(&descriptor);
116 int param_count = descriptor.GetEnvironmentParameterCount();
116 { 117 {
117 // Call the runtime system in a fresh internal frame. 118 // Call the runtime system in a fresh internal frame.
118 FrameScope scope(masm, StackFrame::INTERNAL); 119 FrameScope scope(masm, StackFrame::INTERNAL);
119 DCHECK((param_count == 0) || 120 DCHECK((param_count == 0) ||
120 x0.Is(descriptor->GetEnvironmentParameterRegister(param_count - 1))); 121 x0.Is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
121 122
122 // Push arguments 123 // Push arguments
123 MacroAssembler::PushPopQueue queue(masm); 124 MacroAssembler::PushPopQueue queue(masm);
124 for (int i = 0; i < param_count; ++i) { 125 for (int i = 0; i < param_count; ++i) {
125 queue.Queue(descriptor->GetEnvironmentParameterRegister(i)); 126 queue.Queue(descriptor.GetEnvironmentParameterRegister(i));
126 } 127 }
127 queue.PushQueued(); 128 queue.PushQueued();
128 129
129 ExternalReference miss = descriptor->miss_handler(); 130 ExternalReference miss = descriptor.miss_handler();
130 __ CallExternalReference(miss, param_count); 131 __ CallExternalReference(miss, param_count);
131 } 132 }
132 133
133 __ Ret(); 134 __ Ret();
134 } 135 }
135 136
136 137
137 void DoubleToIStub::Generate(MacroAssembler* masm) { 138 void DoubleToIStub::Generate(MacroAssembler* masm) {
138 Label done; 139 Label done;
139 Register input = source(); 140 Register input = source();
(...skipping 4914 matching lines...) Expand 10 before | Expand all | Expand 10 after
5054 MemOperand(fp, 6 * kPointerSize), 5055 MemOperand(fp, 6 * kPointerSize),
5055 NULL); 5056 NULL);
5056 } 5057 }
5057 5058
5058 5059
5059 #undef __ 5060 #undef __
5060 5061
5061 } } // namespace v8::internal 5062 } } // namespace v8::internal
5062 5063
5063 #endif // V8_TARGET_ARCH_ARM64 5064 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/code-stubs.h » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698