| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2991 __ ret(0); | 2991 __ ret(0); |
| 2992 | 2992 |
| 2993 __ bind(&miss); | 2993 __ bind(&miss); |
| 2994 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 2994 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
| 2995 | 2995 |
| 2996 // Return the generated code. | 2996 // Return the generated code. |
| 2997 return GetCode(NORMAL, NULL); | 2997 return GetCode(NORMAL, NULL); |
| 2998 } | 2998 } |
| 2999 | 2999 |
| 3000 | 3000 |
| 3001 MaybeObject* KeyedLoadStubCompiler::CompileLoadPixelArray(JSObject* receiver) { |
| 3002 // ----------- S t a t e ------------- |
| 3003 // -- rax : key |
| 3004 // -- rdx : receiver |
| 3005 // -- esp[0] : return address |
| 3006 // ----------------------------------- |
| 3007 Label miss; |
| 3008 |
| 3009 // Check that the map matches. |
| 3010 __ CheckMap(rdx, Handle<Map>(receiver->map()), &miss, false); |
| 3011 |
| 3012 GenerateFastPixelArrayLoad(masm(), |
| 3013 rdx, |
| 3014 rax, |
| 3015 rbx, |
| 3016 rcx, |
| 3017 rax, |
| 3018 &miss, |
| 3019 &miss, |
| 3020 &miss); |
| 3021 |
| 3022 __ bind(&miss); |
| 3023 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
| 3024 |
| 3025 // Return the generated code. |
| 3026 return GetCode(NORMAL, NULL); |
| 3027 } |
| 3028 |
| 3029 |
| 3001 // Specialized stub for constructing objects from functions which only have only | 3030 // Specialized stub for constructing objects from functions which only have only |
| 3002 // simple assignments of the form this.x = ...; in their body. | 3031 // simple assignments of the form this.x = ...; in their body. |
| 3003 MaybeObject* ConstructStubCompiler::CompileConstructStub(JSFunction* function) { | 3032 MaybeObject* ConstructStubCompiler::CompileConstructStub(JSFunction* function) { |
| 3004 // ----------- S t a t e ------------- | 3033 // ----------- S t a t e ------------- |
| 3005 // -- rax : argc | 3034 // -- rax : argc |
| 3006 // -- rdi : constructor | 3035 // -- rdi : constructor |
| 3007 // -- rsp[0] : return address | 3036 // -- rsp[0] : return address |
| 3008 // -- rsp[4] : last argument | 3037 // -- rsp[4] : last argument |
| 3009 // ----------------------------------- | 3038 // ----------------------------------- |
| 3010 Label generic_stub_call; | 3039 Label generic_stub_call; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3427 __ TailCallRuntime(Runtime::kSetProperty, 3, 1); | 3456 __ TailCallRuntime(Runtime::kSetProperty, 3, 1); |
| 3428 | 3457 |
| 3429 return GetCode(flags); | 3458 return GetCode(flags); |
| 3430 } | 3459 } |
| 3431 | 3460 |
| 3432 #undef __ | 3461 #undef __ |
| 3433 | 3462 |
| 3434 } } // namespace v8::internal | 3463 } } // namespace v8::internal |
| 3435 | 3464 |
| 3436 #endif // V8_TARGET_ARCH_X64 | 3465 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |