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

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

Issue 214051: Pushed 1.3.12 to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 3 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/api.cc ('k') | src/arm/codegen-arm.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 __ str(r1, MemOperand(ip, 0)); 44 __ str(r1, MemOperand(ip, 0));
45 45
46 // The actual argument count has already been loaded into register 46 // The actual argument count has already been loaded into register
47 // r0, but JumpToBuiltin expects r0 to contain the number of 47 // r0, but JumpToBuiltin expects r0 to contain the number of
48 // arguments including the receiver. 48 // arguments including the receiver.
49 __ add(r0, r0, Operand(1)); 49 __ add(r0, r0, Operand(1));
50 __ JumpToBuiltin(ExternalReference(id)); 50 __ JumpToBuiltin(ExternalReference(id));
51 } 51 }
52 52
53 53
54 void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
55 // Just jump to the generic array code.
56 Code* code = Builtins::builtin(Builtins::ArrayCodeGeneric);
57 Handle<Code> array_code(code);
58 __ Jump(array_code, RelocInfo::CODE_TARGET);
59 }
60
61
62 void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
63 // Just jump to the generic construct code.
64 Code* code = Builtins::builtin(Builtins::JSConstructStubGeneric);
65 Handle<Code> generic_construct_stub(code);
66 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
67 }
68
69
54 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) { 70 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) {
55 // ----------- S t a t e ------------- 71 // ----------- S t a t e -------------
56 // -- r0 : number of arguments 72 // -- r0 : number of arguments
57 // -- r1 : constructor function 73 // -- r1 : constructor function
58 // -- lr : return address 74 // -- lr : return address
59 // -- sp[...]: constructor arguments 75 // -- sp[...]: constructor arguments
60 // ----------------------------------- 76 // -----------------------------------
61 77
62 Label non_function_call; 78 Label non_function_call;
63 // Check that the function is not a smi. 79 // Check that the function is not a smi.
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 // Dont adapt arguments. 887 // Dont adapt arguments.
872 // ------------------------------------------- 888 // -------------------------------------------
873 __ bind(&dont_adapt_arguments); 889 __ bind(&dont_adapt_arguments);
874 __ Jump(r3); 890 __ Jump(r3);
875 } 891 }
876 892
877 893
878 #undef __ 894 #undef __
879 895
880 } } // namespace v8::internal 896 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698