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 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 JSFunction* function, | 1916 JSFunction* function, |
1917 String* name) { | 1917 String* name) { |
1918 // ----------- S t a t e ------------- | 1918 // ----------- S t a t e ------------- |
1919 // -- ecx : name | 1919 // -- ecx : name |
1920 // -- esp[0] : return address | 1920 // -- esp[0] : return address |
1921 // -- esp[(argc - n) * 4] : arg[n] (zero-based) | 1921 // -- esp[(argc - n) * 4] : arg[n] (zero-based) |
1922 // -- ... | 1922 // -- ... |
1923 // -- esp[(argc + 1) * 4] : receiver | 1923 // -- esp[(argc + 1) * 4] : receiver |
1924 // ----------------------------------- | 1924 // ----------------------------------- |
1925 | 1925 |
1926 if (isolate()->cpu_features()->IsSupported(SSE2)) { | 1926 if (!isolate()->cpu_features()->IsSupported(SSE2)) { |
1927 return isolate()->heap()->undefined_value(); | 1927 return isolate()->heap()->undefined_value(); |
1928 } | 1928 } |
1929 | 1929 |
1930 CpuFeatures::Scope use_sse2(SSE2); | 1930 CpuFeatures::Scope use_sse2(SSE2); |
1931 | 1931 |
1932 const int argc = arguments().immediate(); | 1932 const int argc = arguments().immediate(); |
1933 | 1933 |
1934 // If the object is not a JSObject or we got an unexpected number of | 1934 // If the object is not a JSObject or we got an unexpected number of |
1935 // arguments, bail out to the regular call. | 1935 // arguments, bail out to the regular call. |
1936 if (!object->IsJSObject() || argc != 1) { | 1936 if (!object->IsJSObject() || argc != 1) { |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3704 | 3704 |
3705 return GetCode(flags); | 3705 return GetCode(flags); |
3706 } | 3706 } |
3707 | 3707 |
3708 | 3708 |
3709 #undef __ | 3709 #undef __ |
3710 | 3710 |
3711 } } // namespace v8::internal | 3711 } } // namespace v8::internal |
3712 | 3712 |
3713 #endif // V8_TARGET_ARCH_IA32 | 3713 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |