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

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

Issue 853323002: MIPS: split api call stubs into accessor and function call stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 292 }
293 293
294 294
295 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { 295 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) {
296 Register registers[] = { 296 Register registers[] = {
297 cp, // context 297 cp, // context
298 a0, // callee 298 a0, // callee
299 t0, // call_data 299 t0, // call_data
300 a2, // holder 300 a2, // holder
301 a1, // api_function_address 301 a1, // api_function_address
302 a3, // actual number of arguments
303 };
304 Representation representations[] = {
305 Representation::Tagged(), // context
306 Representation::Tagged(), // callee
307 Representation::Tagged(), // call_data
308 Representation::Tagged(), // holder
309 Representation::External(), // api_function_address
310 Representation::Integer32(), // actual number of arguments
311 };
312 data->Initialize(arraysize(registers), registers, representations);
313 }
314
315
316 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
317 Register registers[] = {
318 cp, // context
319 a0, // callee
320 t0, // call_data
321 a2, // holder
322 a1, // api_function_address
302 }; 323 };
303 Representation representations[] = { 324 Representation representations[] = {
304 Representation::Tagged(), // context 325 Representation::Tagged(), // context
305 Representation::Tagged(), // callee 326 Representation::Tagged(), // callee
306 Representation::Tagged(), // call_data 327 Representation::Tagged(), // call_data
307 Representation::Tagged(), // holder 328 Representation::Tagged(), // holder
308 Representation::External(), // api_function_address 329 Representation::External(), // api_function_address
309 }; 330 };
310 data->Initialize(arraysize(registers), registers, representations); 331 data->Initialize(arraysize(registers), registers, representations);
311 } 332 }
312 } 333 }
313 } // namespace v8::internal 334 } // namespace v8::internal
314 335
315 #endif // V8_TARGET_ARCH_MIPS 336 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698