OLD | NEW |
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 465 |
466 // Run the native code for the InternalArray function called as a normal | 466 // Run the native code for the InternalArray function called as a normal |
467 // function. | 467 // function. |
468 ArrayNativeCode(masm, &generic_array_code); | 468 ArrayNativeCode(masm, &generic_array_code); |
469 | 469 |
470 // Jump to the generic array code if the specialized code cannot handle the | 470 // Jump to the generic array code if the specialized code cannot handle the |
471 // construction. | 471 // construction. |
472 __ bind(&generic_array_code); | 472 __ bind(&generic_array_code); |
473 | 473 |
474 Handle<Code> array_code = | 474 Handle<Code> array_code = |
475 masm->isolate()->builtins()->ArrayCodeGeneric(); | 475 masm->isolate()->builtins()->InternalArrayCodeGeneric(); |
476 __ Jump(array_code, RelocInfo::CODE_TARGET); | 476 __ Jump(array_code, RelocInfo::CODE_TARGET); |
477 } | 477 } |
478 | 478 |
479 | 479 |
480 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { | 480 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { |
481 // ----------- S t a t e ------------- | 481 // ----------- S t a t e ------------- |
482 // -- a0 : number of arguments | 482 // -- a0 : number of arguments |
483 // -- ra : return address | 483 // -- ra : return address |
484 // -- sp[...]: constructor arguments | 484 // -- sp[...]: constructor arguments |
485 // ----------------------------------- | 485 // ----------------------------------- |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 __ bind(&dont_adapt_arguments); | 1809 __ bind(&dont_adapt_arguments); |
1810 __ Jump(a3); | 1810 __ Jump(a3); |
1811 } | 1811 } |
1812 | 1812 |
1813 | 1813 |
1814 #undef __ | 1814 #undef __ |
1815 | 1815 |
1816 } } // namespace v8::internal | 1816 } } // namespace v8::internal |
1817 | 1817 |
1818 #endif // V8_TARGET_ARCH_MIPS | 1818 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |