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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 __ mov(esp, Operand(ebp)); | 107 __ mov(esp, Operand(ebp)); |
108 __ pop(ebx); | 108 __ pop(ebx); |
109 __ pop(ecx); | 109 __ pop(ecx); |
110 __ popfd(); | 110 __ popfd(); |
111 __ pop(ebp); | 111 __ pop(ebp); |
112 __ ret(0); | 112 __ ret(0); |
113 #undef __ | 113 #undef __ |
114 | 114 |
115 CodeDesc desc; | 115 CodeDesc desc; |
116 assm.GetCode(&desc); | 116 assm.GetCode(&desc); |
117 Object* code = | 117 Object* code = Heap::CreateCode(desc, |
118 Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB), NULL); | 118 NULL, |
| 119 Code::ComputeFlags(Code::STUB), |
| 120 Handle<Code>::null()); |
119 if (!code->IsCode()) return; | 121 if (!code->IsCode()) return; |
120 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, | 122 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, |
121 Code::cast(code), "CpuFeatures::Probe")); | 123 Code::cast(code), "CpuFeatures::Probe")); |
122 typedef uint64_t (*F0)(); | 124 typedef uint64_t (*F0)(); |
123 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); | 125 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); |
124 supported_ = probe(); | 126 supported_ = probe(); |
125 } | 127 } |
126 | 128 |
127 | 129 |
128 // ----------------------------------------------------------------------------- | 130 // ----------------------------------------------------------------------------- |
(...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 push_insn[1] = 13; // Skip over coverage insns. | 2211 push_insn[1] = 13; // Skip over coverage insns. |
2210 if (coverage_log != NULL) { | 2212 if (coverage_log != NULL) { |
2211 fprintf(coverage_log, "%s\n", file_line); | 2213 fprintf(coverage_log, "%s\n", file_line); |
2212 fflush(coverage_log); | 2214 fflush(coverage_log); |
2213 } | 2215 } |
2214 } | 2216 } |
2215 | 2217 |
2216 #endif | 2218 #endif |
2217 | 2219 |
2218 } } // namespace v8::internal | 2220 } } // namespace v8::internal |
OLD | NEW |