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

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

Issue 42597: Make sure to generate a CodeCreateEvent for the CPU features... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/splaytree.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 __ popfd(); 132 __ popfd();
133 __ pop(ebp); 133 __ pop(ebp);
134 __ ret(0); 134 __ ret(0);
135 #undef __ 135 #undef __
136 136
137 CodeDesc desc; 137 CodeDesc desc;
138 assm.GetCode(&desc); 138 assm.GetCode(&desc);
139 Object* code = 139 Object* code =
140 Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB), NULL); 140 Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB), NULL);
141 if (!code->IsCode()) return; 141 if (!code->IsCode()) return;
142 LOG(CodeCreateEvent("Builtin", Code::cast(code), "CpuFeatures::Probe"));
142 typedef uint64_t (*F0)(); 143 typedef uint64_t (*F0)();
143 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry()); 144 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry());
144 supported_ = probe(); 145 supported_ = probe();
145 } 146 }
146 147
147 148
148 // ----------------------------------------------------------------------------- 149 // -----------------------------------------------------------------------------
149 // Implementation of Displacement 150 // Implementation of Displacement
150 151
151 void Displacement::init(Label* L, Type type) { 152 void Displacement::init(Label* L, Type type) {
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 ASSERT(bound_label.is_bound()); 2196 ASSERT(bound_label.is_bound());
2196 ASSERT(0 <= position); 2197 ASSERT(0 <= position);
2197 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); 2198 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset());
2198 ASSERT(long_at(position) == 0); // only initialize once! 2199 ASSERT(long_at(position) == 0); // only initialize once!
2199 2200
2200 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); 2201 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos()));
2201 long_at_put(position, label_loc); 2202 long_at_put(position, label_loc);
2202 } 2203 }
2203 2204
2204 } } // namespace v8::internal 2205 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | tools/splaytree.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698