OLD | NEW |
---|---|
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 Loading... | |
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(Object* callee, Handle<Object> object); |
Martin Maly
2011/02/17 05:25:55
I am very open to suggestions on a better name.
| |
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 Loading... | |
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_ |
OLD | NEW |