OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 293 } |
294 ElapsedTimer timer; | 294 ElapsedTimer timer; |
295 if (FLAG_profile_hydrogen_code_stub_compilation) { | 295 if (FLAG_profile_hydrogen_code_stub_compilation) { |
296 timer.Start(); | 296 timer.Start(); |
297 } | 297 } |
298 CodeStubGraphBuilder<Stub> builder(isolate, stub); | 298 CodeStubGraphBuilder<Stub> builder(isolate, stub); |
299 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); | 299 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); |
300 Handle<Code> code = chunk->Codegen(); | 300 Handle<Code> code = chunk->Codegen(); |
301 if (FLAG_profile_hydrogen_code_stub_compilation) { | 301 if (FLAG_profile_hydrogen_code_stub_compilation) { |
302 double ms = timer.Elapsed().InMillisecondsF(); | 302 double ms = timer.Elapsed().InMillisecondsF(); |
303 PrintF("[Lazy compilation of %s took %0.3f ms]\n", *stub->GetName(), ms); | 303 PrintF("[Lazy compilation of %s took %0.3f ms]\n", |
| 304 stub->GetName().get(), ms); |
304 } | 305 } |
305 return code; | 306 return code; |
306 } | 307 } |
307 | 308 |
308 | 309 |
309 template <> | 310 template <> |
310 HValue* CodeStubGraphBuilder<ToNumberStub>::BuildCodeStub() { | 311 HValue* CodeStubGraphBuilder<ToNumberStub>::BuildCodeStub() { |
311 HValue* value = GetParameter(0); | 312 HValue* value = GetParameter(0); |
312 | 313 |
313 // Check if the parameter is already a SMI or heap number. | 314 // Check if the parameter is already a SMI or heap number. |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 return BuildUncheckedDictionaryElementLoad(receiver, key); | 1331 return BuildUncheckedDictionaryElementLoad(receiver, key); |
1331 } | 1332 } |
1332 | 1333 |
1333 | 1334 |
1334 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { | 1335 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { |
1335 return DoGenerateCode(isolate, this); | 1336 return DoGenerateCode(isolate, this); |
1336 } | 1337 } |
1337 | 1338 |
1338 | 1339 |
1339 } } // namespace v8::internal | 1340 } } // namespace v8::internal |
OLD | NEW |