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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = |
118 Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB), NULL); | 118 Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB), NULL); |
119 if (!code->IsCode()) return; | 119 if (!code->IsCode()) return; |
120 LOG(CodeCreateEvent("Builtin", Code::cast(code), "CpuFeatures::Probe")); | 120 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, |
| 121 Code::cast(code), "CpuFeatures::Probe")); |
121 typedef uint64_t (*F0)(); | 122 typedef uint64_t (*F0)(); |
122 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); | 123 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); |
123 supported_ = probe(); | 124 supported_ = probe(); |
124 } | 125 } |
125 | 126 |
126 | 127 |
127 // ----------------------------------------------------------------------------- | 128 // ----------------------------------------------------------------------------- |
128 // Implementation of Displacement | 129 // Implementation of Displacement |
129 | 130 |
130 void Displacement::init(Label* L, Type type) { | 131 void Displacement::init(Label* L, Type type) { |
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2195 push_insn[1] = 13; // Skip over coverage insns. | 2196 push_insn[1] = 13; // Skip over coverage insns. |
2196 if (coverage_log != NULL) { | 2197 if (coverage_log != NULL) { |
2197 fprintf(coverage_log, "%s\n", file_line); | 2198 fprintf(coverage_log, "%s\n", file_line); |
2198 fflush(coverage_log); | 2199 fflush(coverage_log); |
2199 } | 2200 } |
2200 } | 2201 } |
2201 | 2202 |
2202 #endif | 2203 #endif |
2203 | 2204 |
2204 } } // namespace v8::internal | 2205 } } // namespace v8::internal |
OLD | NEW |