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

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

Issue 340037: Support for calls on named and keyed properties of the form:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/arm/codegen-arm.h ('k') | src/arm/fast-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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1059
1060 // Do smi comparisons by pointer comparison. 1060 // Do smi comparisons by pointer comparison.
1061 smi.Bind(); 1061 smi.Bind();
1062 __ cmp(r1, Operand(r0)); 1062 __ cmp(r1, Operand(r0));
1063 1063
1064 exit.Bind(); 1064 exit.Bind();
1065 cc_reg_ = cc; 1065 cc_reg_ = cc;
1066 } 1066 }
1067 1067
1068 1068
1069 class CallFunctionStub: public CodeStub {
1070 public:
1071 CallFunctionStub(int argc, InLoopFlag in_loop)
1072 : argc_(argc), in_loop_(in_loop) {}
1073
1074 void Generate(MacroAssembler* masm);
1075
1076 private:
1077 int argc_;
1078 InLoopFlag in_loop_;
1079
1080 #if defined(DEBUG)
1081 void Print() { PrintF("CallFunctionStub (argc %d)\n", argc_); }
1082 #endif // defined(DEBUG)
1083
1084 Major MajorKey() { return CallFunction; }
1085 int MinorKey() { return argc_; }
1086 InLoopFlag InLoop() { return in_loop_; }
1087 };
1088
1089
1090 // Call the function on the stack with the given arguments. 1069 // Call the function on the stack with the given arguments.
1091 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args, 1070 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args,
1092 int position) { 1071 int position) {
1093 VirtualFrame::SpilledScope spilled_scope; 1072 VirtualFrame::SpilledScope spilled_scope;
1094 // Push the arguments ("left-to-right") on the stack. 1073 // Push the arguments ("left-to-right") on the stack.
1095 int arg_count = args->length(); 1074 int arg_count = args->length();
1096 for (int i = 0; i < arg_count; i++) { 1075 for (int i = 0; i < arg_count; i++) {
1097 LoadAndSpill(args->at(i)); 1076 LoadAndSpill(args->at(i));
1098 } 1077 }
1099 1078
(...skipping 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after
6261 int CompareStub::MinorKey() { 6240 int CompareStub::MinorKey() {
6262 // Encode the two parameters in a unique 16 bit value. 6241 // Encode the two parameters in a unique 16 bit value.
6263 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 6242 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
6264 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 6243 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
6265 } 6244 }
6266 6245
6267 6246
6268 #undef __ 6247 #undef __
6269 6248
6270 } } // namespace v8::internal 6249 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/fast-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698