| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 // Handle load cache miss. | 708 // Handle load cache miss. |
| 709 __ bind(&miss); | 709 __ bind(&miss); |
| 710 Handle<Code> ic = ComputeCallMiss(argc); | 710 Handle<Code> ic = ComputeCallMiss(argc); |
| 711 __ jmp(ic, RelocInfo::CODE_TARGET); | 711 __ jmp(ic, RelocInfo::CODE_TARGET); |
| 712 | 712 |
| 713 // Return the generated code. | 713 // Return the generated code. |
| 714 return GetCode(INTERCEPTOR, name); | 714 return GetCode(INTERCEPTOR, name); |
| 715 } | 715 } |
| 716 | 716 |
| 717 | 717 |
| 718 Object* CallStubCompiler::CompileCallGlobal(JSGlobalObject* object, | 718 Object* CallStubCompiler::CompileCallGlobal(GlobalObject* object, |
| 719 JSGlobalPropertyCell* cell, | 719 JSGlobalPropertyCell* cell, |
| 720 JSFunction* function, | 720 JSFunction* function, |
| 721 String* name) { | 721 String* name) { |
| 722 // ----------- S t a t e ------------- | 722 // ----------- S t a t e ------------- |
| 723 // ----------------------------------- | 723 // ----------------------------------- |
| 724 Label miss; | 724 Label miss; |
| 725 | 725 |
| 726 __ IncrementCounter(&Counters::call_global_inline, 1); | 726 __ IncrementCounter(&Counters::call_global_inline, 1); |
| 727 | 727 |
| 728 // Get the number of arguments. | 728 // Get the number of arguments. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 __ bind(&miss); | 904 __ bind(&miss); |
| 905 __ mov(ecx, Immediate(Handle<String>(name))); // restore name | 905 __ mov(ecx, Immediate(Handle<String>(name))); // restore name |
| 906 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Miss)); | 906 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Miss)); |
| 907 __ jmp(ic, RelocInfo::CODE_TARGET); | 907 __ jmp(ic, RelocInfo::CODE_TARGET); |
| 908 | 908 |
| 909 // Return the generated code. | 909 // Return the generated code. |
| 910 return GetCode(INTERCEPTOR, name); | 910 return GetCode(INTERCEPTOR, name); |
| 911 } | 911 } |
| 912 | 912 |
| 913 | 913 |
| 914 Object* StoreStubCompiler::CompileStoreGlobal(JSGlobalObject* object, | 914 Object* StoreStubCompiler::CompileStoreGlobal(GlobalObject* object, |
| 915 JSGlobalPropertyCell* cell, | 915 JSGlobalPropertyCell* cell, |
| 916 String* name) { | 916 String* name) { |
| 917 // ----------- S t a t e ------------- | 917 // ----------- S t a t e ------------- |
| 918 // -- eax : value | 918 // -- eax : value |
| 919 // -- ecx : name | 919 // -- ecx : name |
| 920 // -- esp[0] : return address | 920 // -- esp[0] : return address |
| 921 // -- esp[4] : receiver | 921 // -- esp[4] : receiver |
| 922 // ----------------------------------- | 922 // ----------------------------------- |
| 923 Label miss; | 923 Label miss; |
| 924 | 924 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 &miss); | 1085 &miss); |
| 1086 | 1086 |
| 1087 __ bind(&miss); | 1087 __ bind(&miss); |
| 1088 GenerateLoadMiss(masm(), Code::LOAD_IC); | 1088 GenerateLoadMiss(masm(), Code::LOAD_IC); |
| 1089 | 1089 |
| 1090 // Return the generated code. | 1090 // Return the generated code. |
| 1091 return GetCode(INTERCEPTOR, name); | 1091 return GetCode(INTERCEPTOR, name); |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 | 1094 |
| 1095 Object* LoadStubCompiler::CompileLoadGlobal(JSGlobalObject* object, | 1095 Object* LoadStubCompiler::CompileLoadGlobal(GlobalObject* object, |
| 1096 JSGlobalPropertyCell* cell, | 1096 JSGlobalPropertyCell* cell, |
| 1097 String* name, | 1097 String* name, |
| 1098 bool is_dont_delete) { | 1098 bool is_dont_delete) { |
| 1099 // ----------- S t a t e ------------- | 1099 // ----------- S t a t e ------------- |
| 1100 // -- ecx : name | 1100 // -- ecx : name |
| 1101 // -- esp[0] : return address | 1101 // -- esp[0] : return address |
| 1102 // -- esp[4] : receiver | 1102 // -- esp[4] : receiver |
| 1103 // ----------------------------------- | 1103 // ----------------------------------- |
| 1104 Label miss; | 1104 Label miss; |
| 1105 | 1105 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 1333 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
| 1334 | 1334 |
| 1335 // Return the generated code. | 1335 // Return the generated code. |
| 1336 return GetCode(CALLBACKS, name); | 1336 return GetCode(CALLBACKS, name); |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 | 1339 |
| 1340 #undef __ | 1340 #undef __ |
| 1341 | 1341 |
| 1342 } } // namespace v8::internal | 1342 } } // namespace v8::internal |
| OLD | NEW |