| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 __ pop(ebx); | 114 __ pop(ebx); |
| 115 __ pop(ecx); | 115 __ pop(ecx); |
| 116 __ popfd(); | 116 __ popfd(); |
| 117 __ pop(ebp); | 117 __ pop(ebp); |
| 118 __ ret(0); | 118 __ ret(0); |
| 119 #undef __ | 119 #undef __ |
| 120 | 120 |
| 121 CodeDesc desc; | 121 CodeDesc desc; |
| 122 assm.GetCode(&desc); | 122 assm.GetCode(&desc); |
| 123 Object* code = Heap::CreateCode(desc, | 123 Object* code = Heap::CreateCode(desc, |
| 124 NULL, | |
| 125 Code::ComputeFlags(Code::STUB), | 124 Code::ComputeFlags(Code::STUB), |
| 126 Handle<Code>::null()); | 125 Handle<Code>::null()); |
| 127 if (!code->IsCode()) return; | 126 if (!code->IsCode()) return; |
| 128 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, | 127 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, |
| 129 Code::cast(code), "CpuFeatures::Probe")); | 128 Code::cast(code), "CpuFeatures::Probe")); |
| 130 typedef uint64_t (*F0)(); | 129 typedef uint64_t (*F0)(); |
| 131 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); | 130 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); |
| 132 supported_ = probe(); | 131 supported_ = probe(); |
| 133 found_by_runtime_probing_ = supported_; | 132 found_by_runtime_probing_ = supported_; |
| 134 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform(); | 133 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform(); |
| (...skipping 2457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 fprintf(coverage_log, "%s\n", file_line); | 2591 fprintf(coverage_log, "%s\n", file_line); |
| 2593 fflush(coverage_log); | 2592 fflush(coverage_log); |
| 2594 } | 2593 } |
| 2595 } | 2594 } |
| 2596 | 2595 |
| 2597 #endif | 2596 #endif |
| 2598 | 2597 |
| 2599 } } // namespace v8::internal | 2598 } } // namespace v8::internal |
| 2600 | 2599 |
| 2601 #endif // V8_TARGET_ARCH_IA32 | 2600 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |