| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 // Platform-specific code generation functions used by both call and | 239 // Platform-specific code generation functions used by both call and |
| 240 // keyed call. | 240 // keyed call. |
| 241 static void GenerateMiss(MacroAssembler* masm, | 241 static void GenerateMiss(MacroAssembler* masm, |
| 242 int argc, | 242 int argc, |
| 243 IC::UtilityId id, | 243 IC::UtilityId id, |
| 244 Code::ExtraICState extra_state); | 244 Code::ExtraICState extra_state); |
| 245 | 245 |
| 246 static void GenerateNormal(MacroAssembler* masm, int argc); | 246 static void GenerateNormal(MacroAssembler* masm, int argc); |
| 247 | 247 |
| 248 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, |
| 249 int argc, |
| 250 Code::Kind kind, |
| 251 Code::ExtraICState extra_state); |
| 252 |
| 248 Code::Kind kind_; | 253 Code::Kind kind_; |
| 249 | 254 |
| 250 friend class IC; | 255 friend class IC; |
| 251 }; | 256 }; |
| 252 | 257 |
| 253 | 258 |
| 254 class CallIC: public CallICBase { | 259 class CallIC: public CallICBase { |
| 255 public: | 260 public: |
| 256 explicit CallIC(Isolate* isolate) : CallICBase(Code::CALL_IC, isolate) { | 261 explicit CallIC(Isolate* isolate) : CallICBase(Code::CALL_IC, isolate) { |
| 257 ASSERT(target()->is_call_stub()); | 262 ASSERT(target()->is_call_stub()); |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 void patch(Code* code); | 749 void patch(Code* code); |
| 745 }; | 750 }; |
| 746 | 751 |
| 747 | 752 |
| 748 // Helper for BinaryOpIC and CompareIC. | 753 // Helper for BinaryOpIC and CompareIC. |
| 749 void PatchInlinedSmiCode(Address address); | 754 void PatchInlinedSmiCode(Address address); |
| 750 | 755 |
| 751 } } // namespace v8::internal | 756 } } // namespace v8::internal |
| 752 | 757 |
| 753 #endif // V8_IC_H_ | 758 #endif // V8_IC_H_ |
| OLD | NEW |