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

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 209048: Handle array construction in native code (x64 version) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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/x64/macro-assembler-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 // code for the function thereby hitting the break points. 1744 // code for the function thereby hitting the break points.
1745 __ movq(rbx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); 1745 __ movq(rbx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
1746 __ movq(rbx, FieldOperand(rbx, SharedFunctionInfo::kDebugInfoOffset)); 1746 __ movq(rbx, FieldOperand(rbx, SharedFunctionInfo::kDebugInfoOffset));
1747 __ cmpq(rbx, r8); 1747 __ cmpq(rbx, r8);
1748 __ j(not_equal, &generic_stub_call); 1748 __ j(not_equal, &generic_stub_call);
1749 #endif 1749 #endif
1750 1750
1751 // Load the initial map and verify that it is in fact a map. 1751 // Load the initial map and verify that it is in fact a map.
1752 __ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); 1752 __ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset));
1753 // Will both indicate a NULL and a Smi. 1753 // Will both indicate a NULL and a Smi.
1754 ASSERT(kSmiTag == 0);
1754 __ JumpIfSmi(rbx, &generic_stub_call); 1755 __ JumpIfSmi(rbx, &generic_stub_call);
1755 __ CmpObjectType(rbx, MAP_TYPE, rcx); 1756 __ CmpObjectType(rbx, MAP_TYPE, rcx);
1756 __ j(not_equal, &generic_stub_call); 1757 __ j(not_equal, &generic_stub_call);
1757 1758
1758 #ifdef DEBUG 1759 #ifdef DEBUG
1759 // Cannot construct functions this way. 1760 // Cannot construct functions this way.
1760 // rdi: constructor 1761 // rdi: constructor
1761 // rbx: initial map 1762 // rbx: initial map
1762 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE); 1763 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE);
1763 __ Assert(not_equal, "Function constructed by construct stub."); 1764 __ Assert(not_equal, "Function constructed by construct stub.");
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1851 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1851 1852
1852 // Return the generated code. 1853 // Return the generated code.
1853 return GetCode(); 1854 return GetCode();
1854 } 1855 }
1855 1856
1856 1857
1857 #undef __ 1858 #undef __
1858 1859
1859 } } // namespace v8::internal 1860 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698