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

Side by Side Diff: src/ia32/codegen-ia32.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/ia32/codegen-ia32.h ('k') | src/ia32/fast-codegen-ia32.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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 right_side = Result(right_reg); 1963 right_side = Result(right_reg);
1964 __ cmp(left_side.reg(), Operand(right_side.reg())); 1964 __ cmp(left_side.reg(), Operand(right_side.reg()));
1965 right_side.Unuse(); 1965 right_side.Unuse();
1966 left_side.Unuse(); 1966 left_side.Unuse();
1967 dest->Split(cc); 1967 dest->Split(cc);
1968 } 1968 }
1969 } 1969 }
1970 } 1970 }
1971 1971
1972 1972
1973 class CallFunctionStub: public CodeStub {
1974 public:
1975 CallFunctionStub(int argc, InLoopFlag in_loop)
1976 : argc_(argc), in_loop_(in_loop) { }
1977
1978 void Generate(MacroAssembler* masm);
1979
1980 private:
1981 int argc_;
1982 InLoopFlag in_loop_;
1983
1984 #ifdef DEBUG
1985 void Print() { PrintF("CallFunctionStub (args %d)\n", argc_); }
1986 #endif
1987
1988 Major MajorKey() { return CallFunction; }
1989 int MinorKey() { return argc_; }
1990 InLoopFlag InLoop() { return in_loop_; }
1991 };
1992
1993
1994 // Call the function just below TOS on the stack with the given 1973 // Call the function just below TOS on the stack with the given
1995 // arguments. The receiver is the TOS. 1974 // arguments. The receiver is the TOS.
1996 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args, 1975 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args,
1997 int position) { 1976 int position) {
1998 // Push the arguments ("left-to-right") on the stack. 1977 // Push the arguments ("left-to-right") on the stack.
1999 int arg_count = args->length(); 1978 int arg_count = args->length();
2000 for (int i = 0; i < arg_count; i++) { 1979 for (int i = 0; i < arg_count; i++) {
2001 Load(args->at(i)); 1980 Load(args->at(i));
2002 } 1981 }
2003 1982
(...skipping 6072 matching lines...) Expand 10 before | Expand all | Expand 10 after
8076 8055
8077 int CompareStub::MinorKey() { 8056 int CompareStub::MinorKey() {
8078 // Encode the two parameters in a unique 16 bit value. 8057 // Encode the two parameters in a unique 16 bit value.
8079 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 8058 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
8080 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 8059 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
8081 } 8060 }
8082 8061
8083 #undef __ 8062 #undef __
8084 8063
8085 } } // namespace v8::internal 8064 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.h ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698