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

Side by Side Diff: src/ic.h

Issue 6523052: CallIC and KeyedCallIC not wrapping this. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Last touches. Created 9 years, 10 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/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | src/ic.cc » ('J')
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 State state, 217 State state,
218 Code::ExtraICState extra_ic_state, 218 Code::ExtraICState extra_ic_state,
219 Handle<Object> object, 219 Handle<Object> object,
220 Handle<String> name); 220 Handle<String> name);
221 221
222 // Returns a JSFunction if the object can be called as a function, 222 // Returns a JSFunction if the object can be called as a function,
223 // and patches the stack to be ready for the call. 223 // and patches the stack to be ready for the call.
224 // Otherwise, it returns the undefined value. 224 // Otherwise, it returns the undefined value.
225 Object* TryCallAsFunction(Object* object); 225 Object* TryCallAsFunction(Object* object);
226 226
227 void ReceiverToObject(Handle<Object> object); 227 void ReceiverToObjectIfRequired(Handle<Object> callee, Handle<Object> object);
228 228
229 static void Clear(Address address, Code* target); 229 static void Clear(Address address, Code* target);
230 friend class IC; 230 friend class IC;
231 }; 231 };
232 232
233 233
234 class CallIC: public CallICBase { 234 class CallIC: public CallICBase {
235 public: 235 public:
236 CallIC() : CallICBase(Code::CALL_IC) { ASSERT(target()->is_call_stub()); } 236 CallIC() : CallICBase(Code::CALL_IC) { ASSERT(target()->is_call_stub()); }
237 237
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 609
610 Token::Value op_; 610 Token::Value op_;
611 }; 611 };
612 612
613 // Helper for TRBinaryOpIC and CompareIC. 613 // Helper for TRBinaryOpIC and CompareIC.
614 void PatchInlinedSmiCode(Address address); 614 void PatchInlinedSmiCode(Address address);
615 615
616 } } // namespace v8::internal 616 } } // namespace v8::internal
617 617
618 #endif // V8_IC_H_ 618 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698