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

Side by Side Diff: src/ia32/builtins-ia32.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/builtins.cc ('k') | src/x64/builtins-x64.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 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 } 1330 }
1331 1331
1332 // Run the native code for the InternalArray function called as a normal 1332 // Run the native code for the InternalArray function called as a normal
1333 // function. 1333 // function.
1334 ArrayNativeCode(masm, false, &generic_array_code); 1334 ArrayNativeCode(masm, false, &generic_array_code);
1335 1335
1336 // Jump to the generic array code in case the specialized code cannot handle 1336 // Jump to the generic array code in case the specialized code cannot handle
1337 // the construction. 1337 // the construction.
1338 __ bind(&generic_array_code); 1338 __ bind(&generic_array_code);
1339 Handle<Code> array_code = 1339 Handle<Code> array_code =
1340 masm->isolate()->builtins()->ArrayCodeGeneric(); 1340 masm->isolate()->builtins()->InternalArrayCodeGeneric();
1341 __ jmp(array_code, RelocInfo::CODE_TARGET); 1341 __ jmp(array_code, RelocInfo::CODE_TARGET);
1342 } 1342 }
1343 1343
1344 1344
1345 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { 1345 void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
1346 // ----------- S t a t e ------------- 1346 // ----------- S t a t e -------------
1347 // -- eax : argc 1347 // -- eax : argc
1348 // -- esp[0] : return address 1348 // -- esp[0] : return address
1349 // -- esp[4] : last argument 1349 // -- esp[4] : last argument
1350 // ----------------------------------- 1350 // -----------------------------------
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1723 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1724 generator.Generate(); 1724 generator.Generate();
1725 } 1725 }
1726 1726
1727 1727
1728 #undef __ 1728 #undef __
1729 } 1729 }
1730 } // namespace v8::internal 1730 } // namespace v8::internal
1731 1731
1732 #endif // V8_TARGET_ARCH_IA32 1732 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698