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

Side by Side Diff: src/arm64/interface-descriptors-arm64.cc

Issue 703473004: [turbofan] Add AllocateHeapNumberStub to avoid runtime call. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void TransitionElementsKindDescriptor::Initialize( 178 void TransitionElementsKindDescriptor::Initialize(
179 CallInterfaceDescriptorData* data) { 179 CallInterfaceDescriptorData* data) {
180 // cp: context 180 // cp: context
181 // x0: value (js_array) 181 // x0: value (js_array)
182 // x1: to_map 182 // x1: to_map
183 Register registers[] = {cp, x0, x1}; 183 Register registers[] = {cp, x0, x1};
184 data->Initialize(arraysize(registers), registers, NULL); 184 data->Initialize(arraysize(registers), registers, NULL);
185 } 185 }
186 186
187 187
188 void AllocateHeapNumberDescriptor::Initialize(
189 CallInterfaceDescriptorData* data) {
190 // cp: context
191 Register registers[] = {cp};
192 data->Initialize(arraysize(registers), registers, nullptr);
193 }
194
195
188 void ArrayConstructorConstantArgCountDescriptor::Initialize( 196 void ArrayConstructorConstantArgCountDescriptor::Initialize(
189 CallInterfaceDescriptorData* data) { 197 CallInterfaceDescriptorData* data) {
190 // cp: context 198 // cp: context
191 // x1: function 199 // x1: function
192 // x2: allocation site with elements kind 200 // x2: allocation site with elements kind
193 // x0: number of arguments to the constructor function 201 // x0: number of arguments to the constructor function
194 Register registers[] = {cp, x1, x2}; 202 Register registers[] = {cp, x1, x2};
195 data->Initialize(arraysize(registers), registers, NULL); 203 data->Initialize(arraysize(registers), registers, NULL);
196 } 204 }
197 205
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 Representation::Tagged(), // holder 370 Representation::Tagged(), // holder
363 Representation::External(), // api_function_address 371 Representation::External(), // api_function_address
364 }; 372 };
365 data->Initialize(arraysize(registers), registers, representations, 373 data->Initialize(arraysize(registers), registers, representations,
366 &default_descriptor); 374 &default_descriptor);
367 } 375 }
368 } 376 }
369 } // namespace v8::internal 377 } // namespace v8::internal
370 378
371 #endif // V8_TARGET_ARCH_ARM64 379 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698