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

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

Issue 148333003: crankshaft support for api method calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 10 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/hydrogen.cc ('k') | src/ia32/stub-cache-ia32.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 edx, // receiver 439 edx, // receiver
440 }; 440 };
441 static Representation representations[] = { 441 static Representation representations[] = {
442 Representation::Tagged(), // context 442 Representation::Tagged(), // context
443 Representation::Tagged(), // receiver 443 Representation::Tagged(), // receiver
444 }; 444 };
445 descriptor->register_param_count_ = 2; 445 descriptor->register_param_count_ = 2;
446 descriptor->register_params_ = registers; 446 descriptor->register_params_ = registers;
447 descriptor->param_representations_ = representations; 447 descriptor->param_representations_ = representations;
448 } 448 }
449 {
450 CallInterfaceDescriptor* descriptor =
451 isolate->call_descriptor(Isolate::ApiFunctionCall);
452 static Register registers[] = { eax, // callee
453 ebx, // call_data
454 ecx, // holder
455 edx, // api_function_address
456 esi, // context
457 };
458 static Representation representations[] = {
459 Representation::Tagged(), // callee
460 Representation::Tagged(), // call_data
461 Representation::Tagged(), // holder
462 Representation::External(), // api_function_address
463 Representation::Tagged(), // context
464 };
465 descriptor->register_param_count_ = 5;
466 descriptor->register_params_ = registers;
467 descriptor->param_representations_ = representations;
468 }
449 } 469 }
450 470
451 471
452 #define __ ACCESS_MASM(masm) 472 #define __ ACCESS_MASM(masm)
453 473
454 474
455 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 475 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
456 // Update the static counter each time a new code stub is generated. 476 // Update the static counter each time a new code stub is generated.
457 Isolate* isolate = masm->isolate(); 477 Isolate* isolate = masm->isolate();
458 isolate->counters()->code_stubs()->Increment(); 478 isolate->counters()->code_stubs()->Increment();
(...skipping 4935 matching lines...) Expand 10 before | Expand all | Expand 10 after
5394 Operand(ebp, 7 * kPointerSize), 5414 Operand(ebp, 7 * kPointerSize),
5395 NULL); 5415 NULL);
5396 } 5416 }
5397 5417
5398 5418
5399 #undef __ 5419 #undef __
5400 5420
5401 } } // namespace v8::internal 5421 } } // namespace v8::internal
5402 5422
5403 #endif // V8_TARGET_ARCH_IA32 5423 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698