| 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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 Handle<Code> code = | 1547 Handle<Code> code = |
| 1548 isolate()->stub_cache()->ComputeCallMiss(arguments().immediate(), | 1548 isolate()->stub_cache()->ComputeCallMiss(arguments().immediate(), |
| 1549 kind_, | 1549 kind_, |
| 1550 extra_state_); | 1550 extra_state_); |
| 1551 __ Jump(code, RelocInfo::CODE_TARGET); | 1551 __ Jump(code, RelocInfo::CODE_TARGET); |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 | 1554 |
| 1555 Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object, | 1555 Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object, |
| 1556 Handle<JSObject> holder, | 1556 Handle<JSObject> holder, |
| 1557 int index, | 1557 PropertyIndex index, |
| 1558 Handle<String> name) { | 1558 Handle<String> name) { |
| 1559 // ----------- S t a t e ------------- | 1559 // ----------- S t a t e ------------- |
| 1560 // -- a2 : name | 1560 // -- a2 : name |
| 1561 // -- ra : return address | 1561 // -- ra : return address |
| 1562 // ----------------------------------- | 1562 // ----------------------------------- |
| 1563 Label miss; | 1563 Label miss; |
| 1564 | 1564 |
| 1565 GenerateNameCheck(name, &miss); | 1565 GenerateNameCheck(name, &miss); |
| 1566 | 1566 |
| 1567 const int argc = arguments().immediate(); | 1567 const int argc = arguments().immediate(); |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2913 __ bind(&miss); | 2913 __ bind(&miss); |
| 2914 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2914 GenerateLoadMiss(masm(), Code::LOAD_IC); |
| 2915 | 2915 |
| 2916 // Return the generated code. | 2916 // Return the generated code. |
| 2917 return GetCode(Code::NONEXISTENT, factory()->empty_string()); | 2917 return GetCode(Code::NONEXISTENT, factory()->empty_string()); |
| 2918 } | 2918 } |
| 2919 | 2919 |
| 2920 | 2920 |
| 2921 Handle<Code> LoadStubCompiler::CompileLoadField(Handle<JSObject> object, | 2921 Handle<Code> LoadStubCompiler::CompileLoadField(Handle<JSObject> object, |
| 2922 Handle<JSObject> holder, | 2922 Handle<JSObject> holder, |
| 2923 int index, | 2923 PropertyIndex index, |
| 2924 Handle<String> name) { | 2924 Handle<String> name) { |
| 2925 // ----------- S t a t e ------------- | 2925 // ----------- S t a t e ------------- |
| 2926 // -- a0 : receiver | 2926 // -- a0 : receiver |
| 2927 // -- a2 : name | 2927 // -- a2 : name |
| 2928 // -- ra : return address | 2928 // -- ra : return address |
| 2929 // ----------------------------------- | 2929 // ----------------------------------- |
| 2930 Label miss; | 2930 Label miss; |
| 2931 | 2931 |
| 2932 __ mov(v0, a0); | 2932 __ mov(v0, a0); |
| 2933 | 2933 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3104 GenerateLoadMiss(masm(), Code::LOAD_IC); | 3104 GenerateLoadMiss(masm(), Code::LOAD_IC); |
| 3105 | 3105 |
| 3106 // Return the generated code. | 3106 // Return the generated code. |
| 3107 return GetCode(Code::NORMAL, name); | 3107 return GetCode(Code::NORMAL, name); |
| 3108 } | 3108 } |
| 3109 | 3109 |
| 3110 | 3110 |
| 3111 Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name, | 3111 Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name, |
| 3112 Handle<JSObject> receiver, | 3112 Handle<JSObject> receiver, |
| 3113 Handle<JSObject> holder, | 3113 Handle<JSObject> holder, |
| 3114 int index) { | 3114 PropertyIndex index) { |
| 3115 // ----------- S t a t e ------------- | 3115 // ----------- S t a t e ------------- |
| 3116 // -- ra : return address | 3116 // -- ra : return address |
| 3117 // -- a0 : key | 3117 // -- a0 : key |
| 3118 // -- a1 : receiver | 3118 // -- a1 : receiver |
| 3119 // ----------------------------------- | 3119 // ----------------------------------- |
| 3120 Label miss; | 3120 Label miss; |
| 3121 | 3121 |
| 3122 // Check the key is the cached one. | 3122 // Check the key is the cached one. |
| 3123 __ Branch(&miss, ne, a0, Operand(name)); | 3123 __ Branch(&miss, ne, a0, Operand(name)); |
| 3124 | 3124 |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4846 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4846 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
| 4847 } | 4847 } |
| 4848 } | 4848 } |
| 4849 | 4849 |
| 4850 | 4850 |
| 4851 #undef __ | 4851 #undef __ |
| 4852 | 4852 |
| 4853 } } // namespace v8::internal | 4853 } } // namespace v8::internal |
| 4854 | 4854 |
| 4855 #endif // V8_TARGET_ARCH_MIPS | 4855 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |