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

Side by Side Diff: src/arm/builtins-arm.cc

Issue 9006051: Add InternalArrayCodeGeneric (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more reivew feedback Created 8 years, 12 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 | « no previous file | src/builtins.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 // Run the native code for the InternalArray function called as a normal 457 // Run the native code for the InternalArray function called as a normal
458 // function. 458 // function.
459 ArrayNativeCode(masm, &generic_array_code); 459 ArrayNativeCode(masm, &generic_array_code);
460 460
461 // Jump to the generic array code if the specialized code cannot handle the 461 // Jump to the generic array code if the specialized code cannot handle the
462 // construction. 462 // construction.
463 __ bind(&generic_array_code); 463 __ bind(&generic_array_code);
464 464
465 Handle<Code> array_code = 465 Handle<Code> array_code =
466 masm->isolate()->builtins()->ArrayCodeGeneric(); 466 masm->isolate()->builtins()->InternalArrayCodeGeneric();
467 __ Jump(array_code, RelocInfo::CODE_TARGET); 467 __ Jump(array_code, RelocInfo::CODE_TARGET);
468 } 468 }
469 469
470 470
471 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { 471 void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
472 // ----------- S t a t e ------------- 472 // ----------- S t a t e -------------
473 // -- r0 : number of arguments 473 // -- r0 : number of arguments
474 // -- lr : return address 474 // -- lr : return address
475 // -- sp[...]: constructor arguments 475 // -- sp[...]: constructor arguments
476 // ----------------------------------- 476 // -----------------------------------
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 __ bind(&dont_adapt_arguments); 1769 __ bind(&dont_adapt_arguments);
1770 __ Jump(r3); 1770 __ Jump(r3);
1771 } 1771 }
1772 1772
1773 1773
1774 #undef __ 1774 #undef __
1775 1775
1776 } } // namespace v8::internal 1776 } } // namespace v8::internal
1777 1777
1778 #endif // V8_TARGET_ARCH_ARM 1778 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698