| 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 635 |
| 636 static Handle<Code> pre_monomorphic_stub(Isolate* isolate, | 636 static Handle<Code> pre_monomorphic_stub(Isolate* isolate, |
| 637 StrictModeFlag strict_mode) { | 637 StrictModeFlag strict_mode) { |
| 638 if (strict_mode == kStrictMode) { | 638 if (strict_mode == kStrictMode) { |
| 639 return isolate->builtins()->StoreIC_PreMonomorphic_Strict(); | 639 return isolate->builtins()->StoreIC_PreMonomorphic_Strict(); |
| 640 } else { | 640 } else { |
| 641 return isolate->builtins()->StoreIC_PreMonomorphic(); | 641 return isolate->builtins()->StoreIC_PreMonomorphic(); |
| 642 } | 642 } |
| 643 } | 643 } |
| 644 | 644 |
| 645 virtual Handle<Code> global_proxy_stub() { | |
| 646 if (strict_mode() == kStrictMode) { | |
| 647 return isolate()->builtins()->StoreIC_GlobalProxy_Strict(); | |
| 648 } else { | |
| 649 return isolate()->builtins()->StoreIC_GlobalProxy(); | |
| 650 } | |
| 651 } | |
| 652 | |
| 653 // Update the inline cache and the global stub cache based on the | 645 // Update the inline cache and the global stub cache based on the |
| 654 // lookup result. | 646 // lookup result. |
| 655 void UpdateCaches(LookupResult* lookup, | 647 void UpdateCaches(LookupResult* lookup, |
| 656 Handle<JSObject> receiver, | 648 Handle<JSObject> receiver, |
| 657 Handle<String> name, | 649 Handle<String> name, |
| 658 Handle<Object> value); | 650 Handle<Object> value); |
| 659 virtual Handle<Code> CompileHandler(LookupResult* lookup, | 651 virtual Handle<Code> CompileHandler(LookupResult* lookup, |
| 660 Handle<Object> object, | 652 Handle<Object> object, |
| 661 Handle<String> name, | 653 Handle<String> name, |
| 662 Handle<Object> value, | 654 Handle<Object> value, |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure); | 939 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedCallIC_MissFromStubFailure); |
| 948 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 940 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
| 949 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); | 941 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); |
| 950 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 942 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
| 951 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 943 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
| 952 | 944 |
| 953 | 945 |
| 954 } } // namespace v8::internal | 946 } } // namespace v8::internal |
| 955 | 947 |
| 956 #endif // V8_IC_H_ | 948 #endif // V8_IC_H_ |
| OLD | NEW |