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

Side by Side Diff: src/x64/builtins-x64.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 | « src/ia32/builtins-ia32.cc ('k') | no next file » | 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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 } 1350 }
1351 1351
1352 // Run the native code for the InternalArray function called as a normal 1352 // Run the native code for the InternalArray function called as a normal
1353 // function. 1353 // function.
1354 ArrayNativeCode(masm, &generic_array_code); 1354 ArrayNativeCode(masm, &generic_array_code);
1355 1355
1356 // Jump to the generic array code in case the specialized code cannot handle 1356 // Jump to the generic array code in case the specialized code cannot handle
1357 // the construction. 1357 // the construction.
1358 __ bind(&generic_array_code); 1358 __ bind(&generic_array_code);
1359 Handle<Code> array_code = 1359 Handle<Code> array_code =
1360 masm->isolate()->builtins()->ArrayCodeGeneric(); 1360 masm->isolate()->builtins()->InternalArrayCodeGeneric();
1361 __ Jump(array_code, RelocInfo::CODE_TARGET); 1361 __ Jump(array_code, RelocInfo::CODE_TARGET);
1362 } 1362 }
1363 1363
1364 1364
1365 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { 1365 void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
1366 // ----------- S t a t e ------------- 1366 // ----------- S t a t e -------------
1367 // -- rax : argc 1367 // -- rax : argc
1368 // -- rsp[0] : return address 1368 // -- rsp[0] : return address
1369 // -- rsp[8] : last argument 1369 // -- rsp[8] : last argument
1370 // ----------------------------------- 1370 // -----------------------------------
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1611 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1612 generator.Generate(); 1612 generator.Generate();
1613 } 1613 }
1614 1614
1615 1615
1616 #undef __ 1616 #undef __
1617 1617
1618 } } // namespace v8::internal 1618 } } // namespace v8::internal
1619 1619
1620 #endif // V8_TARGET_ARCH_X64 1620 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698