Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 1582004: C++ profiles processor: wire up to VM. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 __ ret(0); 116 __ ret(0);
117 #undef __ 117 #undef __
118 118
119 CodeDesc desc; 119 CodeDesc desc;
120 assm.GetCode(&desc); 120 assm.GetCode(&desc);
121 Object* code = Heap::CreateCode(desc, 121 Object* code = Heap::CreateCode(desc,
122 NULL, 122 NULL,
123 Code::ComputeFlags(Code::STUB), 123 Code::ComputeFlags(Code::STUB),
124 Handle<Code>::null()); 124 Handle<Code>::null());
125 if (!code->IsCode()) return; 125 if (!code->IsCode()) return;
126 LOG(CodeCreateEvent(Logger::BUILTIN_TAG, 126 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG,
127 Code::cast(code), "CpuFeatures::Probe")); 127 Code::cast(code), "CpuFeatures::Probe"));
128 typedef uint64_t (*F0)(); 128 typedef uint64_t (*F0)();
129 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); 129 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry());
130 supported_ = probe(); 130 supported_ = probe();
131 found_by_runtime_probing_ = supported_; 131 found_by_runtime_probing_ = supported_;
132 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform(); 132 uint64_t os_guarantees = OS::CpuFeaturesImpliedByPlatform();
133 supported_ |= os_guarantees; 133 supported_ |= os_guarantees;
134 found_by_runtime_probing_ &= ~os_guarantees; 134 found_by_runtime_probing_ &= ~os_guarantees;
135 } 135 }
136 136
137 137
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 push_insn[1] = 13; // Skip over coverage insns. 2521 push_insn[1] = 13; // Skip over coverage insns.
2522 if (coverage_log != NULL) { 2522 if (coverage_log != NULL) {
2523 fprintf(coverage_log, "%s\n", file_line); 2523 fprintf(coverage_log, "%s\n", file_line);
2524 fflush(coverage_log); 2524 fflush(coverage_log);
2525 } 2525 }
2526 } 2526 }
2527 2527
2528 #endif 2528 #endif
2529 2529
2530 } } // namespace v8::internal 2530 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | src/platform-linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698