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

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

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 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/isolate.cc ('k') | src/mips64/interface-descriptors-mips64.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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Register registers[] = {a1}; 277 Register registers[] = {a1};
278 data->InitializePlatformSpecific(arraysize(registers), registers); 278 data->InitializePlatformSpecific(arraysize(registers), registers);
279 } 279 }
280 280
281 void StringAddDescriptor::InitializePlatformSpecific( 281 void StringAddDescriptor::InitializePlatformSpecific(
282 CallInterfaceDescriptorData* data) { 282 CallInterfaceDescriptorData* data) {
283 Register registers[] = {a1, a0}; 283 Register registers[] = {a1, a0};
284 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 284 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
285 } 285 }
286 286
287
288 void KeyedDescriptor::InitializePlatformSpecific(
289 CallInterfaceDescriptorData* data) {
290 Register registers[] = {
291 a2, // key
292 };
293 data->InitializePlatformSpecific(arraysize(registers), registers);
294 }
295
296
297 void NamedDescriptor::InitializePlatformSpecific(
298 CallInterfaceDescriptorData* data) {
299 Register registers[] = {
300 a2, // name
301 };
302 data->InitializePlatformSpecific(arraysize(registers), registers);
303 }
304
305
306 void CallHandlerDescriptor::InitializePlatformSpecific(
307 CallInterfaceDescriptorData* data) {
308 Register registers[] = {
309 a0, // receiver
310 };
311 data->InitializePlatformSpecific(arraysize(registers), registers);
312 }
313
314
315 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( 287 void ArgumentAdaptorDescriptor::InitializePlatformSpecific(
316 CallInterfaceDescriptorData* data) { 288 CallInterfaceDescriptorData* data) {
317 Register registers[] = { 289 Register registers[] = {
318 a1, // JSFunction 290 a1, // JSFunction
319 a3, // the new target 291 a3, // the new target
320 a0, // actual number of arguments 292 a0, // actual number of arguments
321 a2, // expected number of arguments 293 a2, // expected number of arguments
322 }; 294 };
323 data->InitializePlatformSpecific(arraysize(registers), registers); 295 data->InitializePlatformSpecific(arraysize(registers), registers);
324 } 296 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 Register registers[] = { 373 Register registers[] = {
402 a1, // loaded new FP 374 a1, // loaded new FP
403 }; 375 };
404 data->InitializePlatformSpecific(arraysize(registers), registers); 376 data->InitializePlatformSpecific(arraysize(registers), registers);
405 } 377 }
406 378
407 } // namespace internal 379 } // namespace internal
408 } // namespace v8 380 } // namespace v8
409 381
410 #endif // V8_TARGET_ARCH_MIPS 382 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698