| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 return false; | 313 return false; |
| 314 } | 314 } |
| 315 } | 315 } |
| 316 | 316 |
| 317 // Code generator routines. | 317 // Code generator routines. |
| 318 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } | 318 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } |
| 319 static void GeneratePreMonomorphic(MacroAssembler* masm) { | 319 static void GeneratePreMonomorphic(MacroAssembler* masm) { |
| 320 GenerateMiss(masm); | 320 GenerateMiss(masm); |
| 321 } | 321 } |
| 322 static void GenerateMiss(MacroAssembler* masm); | 322 static void GenerateMiss(MacroAssembler* masm); |
| 323 static void GenerateMegamorphic(MacroAssembler* masm); | 323 static void GenerateMegamorphic(MacroAssembler* masm, |
| 324 ExtraICState extra_state); |
| 324 static void GenerateNormal(MacroAssembler* masm); | 325 static void GenerateNormal(MacroAssembler* masm); |
| 325 static void GenerateRuntimeGetProperty(MacroAssembler* masm); | 326 static void GenerateRuntimeGetProperty(MacroAssembler* masm); |
| 326 | 327 |
| 327 static Handle<Code> initialize_stub(Isolate* isolate, | 328 static Handle<Code> initialize_stub(Isolate* isolate, |
| 328 ExtraICState extra_state); | 329 ExtraICState extra_state); |
| 329 | 330 |
| 330 MUST_USE_RESULT MaybeObject* Load(Handle<Object> object, | 331 MUST_USE_RESULT MaybeObject* Load(Handle<Object> object, |
| 331 Handle<String> name); | 332 Handle<String> name); |
| 332 | 333 |
| 333 protected: | 334 protected: |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 return StrictModeState::decode(extra_ic_state()); | 475 return StrictModeState::decode(extra_ic_state()); |
| 475 } | 476 } |
| 476 | 477 |
| 477 // Code generators for stub routines. Only called once at startup. | 478 // Code generators for stub routines. Only called once at startup. |
| 478 static void GenerateSlow(MacroAssembler* masm); | 479 static void GenerateSlow(MacroAssembler* masm); |
| 479 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } | 480 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } |
| 480 static void GeneratePreMonomorphic(MacroAssembler* masm) { | 481 static void GeneratePreMonomorphic(MacroAssembler* masm) { |
| 481 GenerateMiss(masm); | 482 GenerateMiss(masm); |
| 482 } | 483 } |
| 483 static void GenerateMiss(MacroAssembler* masm); | 484 static void GenerateMiss(MacroAssembler* masm); |
| 484 static void GenerateMegamorphic(MacroAssembler* masm); | 485 static void GenerateMegamorphic(MacroAssembler* masm, |
| 486 ExtraICState extra_ic_state); |
| 485 static void GenerateNormal(MacroAssembler* masm); | 487 static void GenerateNormal(MacroAssembler* masm); |
| 486 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 488 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 487 StrictModeFlag strict_mode); | 489 StrictModeFlag strict_mode); |
| 488 | 490 |
| 489 static Handle<Code> initialize_stub(Isolate* isolate, | 491 static Handle<Code> initialize_stub(Isolate* isolate, |
| 490 StrictModeFlag strict_mode); | 492 StrictModeFlag strict_mode); |
| 491 | 493 |
| 492 MUST_USE_RESULT MaybeObject* Store( | 494 MUST_USE_RESULT MaybeObject* Store( |
| 493 Handle<Object> object, | 495 Handle<Object> object, |
| 494 Handle<String> name, | 496 Handle<String> name, |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 892 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
| 891 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); | 893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); |
| 892 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_MissWithAllocationSite); | 894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_MissWithAllocationSite); |
| 893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 895 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
| 894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 896 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
| 895 | 897 |
| 896 | 898 |
| 897 } } // namespace v8::internal | 899 } } // namespace v8::internal |
| 898 | 900 |
| 899 #endif // V8_IC_H_ | 901 #endif // V8_IC_H_ |
| OLD | NEW |