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

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

Issue 137693003: Remove ArrayPush from the custom call generators, and instead call directly to the handler in crank… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Set up the platform-specific descriptor on ARM Created 6 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 | 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 // 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 rcx, // name 401 rcx, // name
402 }; 402 };
403 static Representation representations[] = { 403 static Representation representations[] = {
404 Representation::Tagged(), // context 404 Representation::Tagged(), // context
405 Representation::Tagged(), // name 405 Representation::Tagged(), // name
406 }; 406 };
407 descriptor->register_param_count_ = 2; 407 descriptor->register_param_count_ = 2;
408 descriptor->register_params_ = registers; 408 descriptor->register_params_ = registers;
409 descriptor->param_representations_ = representations; 409 descriptor->param_representations_ = representations;
410 } 410 }
411 {
412 CallInterfaceDescriptor* descriptor =
413 isolate->call_descriptor(Isolate::CallHandler);
414 static Register registers[] = { rsi, // context
415 rdx, // receiver
416 };
417 static Representation representations[] = {
418 Representation::Tagged(), // context
419 Representation::Tagged(), // receiver
420 };
421 descriptor->register_param_count_ = 2;
422 descriptor->register_params_ = registers;
423 descriptor->param_representations_ = representations;
424 }
411 } 425 }
412 426
413 427
414 #define __ ACCESS_MASM(masm) 428 #define __ ACCESS_MASM(masm)
415 429
416 430
417 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 431 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
418 // Update the static counter each time a new code stub is generated. 432 // Update the static counter each time a new code stub is generated.
419 Isolate* isolate = masm->isolate(); 433 Isolate* isolate = masm->isolate();
420 isolate->counters()->code_stubs()->Increment(); 434 isolate->counters()->code_stubs()->Increment();
(...skipping 5303 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 __ bind(&fast_elements_case); 5738 __ bind(&fast_elements_case);
5725 GenerateCase(masm, FAST_ELEMENTS); 5739 GenerateCase(masm, FAST_ELEMENTS);
5726 } 5740 }
5727 5741
5728 5742
5729 #undef __ 5743 #undef __
5730 5744
5731 } } // namespace v8::internal 5745 } } // namespace v8::internal
5732 5746
5733 #endif // V8_TARGET_ARCH_X64 5747 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen.cc ('K') | « src/stub-cache.cc ('k') | test/mjsunit/object-seal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698