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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 ASSERT(info()->shared_info()->has_deoptimization_support()); | 357 ASSERT(info()->shared_info()->has_deoptimization_support()); |
358 | 358 |
359 if (FLAG_trace_hydrogen) { | 359 if (FLAG_trace_hydrogen) { |
360 Handle<String> name = info()->function()->debug_name(); | 360 Handle<String> name = info()->function()->debug_name(); |
361 PrintF("-----------------------------------------------------------\n"); | 361 PrintF("-----------------------------------------------------------\n"); |
362 PrintF("Compiling method %s using hydrogen\n", *name->ToCString()); | 362 PrintF("Compiling method %s using hydrogen\n", *name->ToCString()); |
363 isolate()->GetHTracer()->TraceCompilation(info()); | 363 isolate()->GetHTracer()->TraceCompilation(info()); |
364 } | 364 } |
365 | 365 |
366 // Type-check the function. | 366 // Type-check the function. |
367 AstTyper::Type(info()); | 367 AstTyper::Run(info()); |
368 | 368 |
369 graph_builder_ = new(info()->zone()) HOptimizedGraphBuilder(info()); | 369 graph_builder_ = new(info()->zone()) HOptimizedGraphBuilder(info()); |
370 | 370 |
371 Timer t(this, &time_taken_to_create_graph_); | 371 Timer t(this, &time_taken_to_create_graph_); |
372 graph_ = graph_builder_->CreateGraph(); | 372 graph_ = graph_builder_->CreateGraph(); |
373 | 373 |
374 if (isolate()->has_pending_exception()) { | 374 if (isolate()->has_pending_exception()) { |
375 info()->SetCode(Handle<Code>::null()); | 375 info()->SetCode(Handle<Code>::null()); |
376 return SetLastStatus(FAILED); | 376 return SetLastStatus(FAILED); |
377 } | 377 } |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 } | 1161 } |
1162 } | 1162 } |
1163 | 1163 |
1164 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1164 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
1165 Handle<Script>(info->script()), | 1165 Handle<Script>(info->script()), |
1166 Handle<Code>(info->code()), | 1166 Handle<Code>(info->code()), |
1167 info)); | 1167 info)); |
1168 } | 1168 } |
1169 | 1169 |
1170 } } // namespace v8::internal | 1170 } } // namespace v8::internal |
OLD | NEW |