Chromium Code Reviews| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 343 } else { | 343 } else { |
| 344 return AbortOptimization(); | 344 return AbortOptimization(); |
| 345 } | 345 } |
| 346 } | 346 } |
| 347 | 347 |
| 348 return SetLastStatus(SUCCEEDED); | 348 return SetLastStatus(SUCCEEDED); |
| 349 } | 349 } |
| 350 | 350 |
| 351 OptimizingCompiler::Status OptimizingCompiler::OptimizeGraph() { | 351 OptimizingCompiler::Status OptimizingCompiler::OptimizeGraph() { |
| 352 AssertNoAllocation no_gc; | 352 AssertNoAllocation no_gc; |
| 353 // TODO(mvstanton): Do NOT keep this change in, just here as a temporary measu re | |
| 354 // to test my changes. | |
|
danno
2012/11/14 15:28:18
Looks like you can get rid of this :-)
mvstanton
2012/11/16 15:15:06
Done.
| |
| 353 NoHandleAllocation no_handles; | 355 NoHandleAllocation no_handles; |
| 354 | 356 |
| 355 ASSERT(last_status() == SUCCEEDED); | 357 ASSERT(last_status() == SUCCEEDED); |
| 356 Timer t(this, &time_taken_to_optimize_); | 358 Timer t(this, &time_taken_to_optimize_); |
| 357 ASSERT(graph_ != NULL); | 359 ASSERT(graph_ != NULL); |
| 358 SmartArrayPointer<char> bailout_reason; | 360 SmartArrayPointer<char> bailout_reason; |
| 359 if (!graph_->Optimize(&bailout_reason)) { | 361 if (!graph_->Optimize(&bailout_reason)) { |
| 360 if (!bailout_reason.is_empty()) graph_builder_->Bailout(*bailout_reason); | 362 if (!bailout_reason.is_empty()) graph_builder_->Bailout(*bailout_reason); |
| 361 return SetLastStatus(BAILED_OUT); | 363 return SetLastStatus(BAILED_OUT); |
| 362 } else { | 364 } else { |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1049 } | 1051 } |
| 1050 } | 1052 } |
| 1051 | 1053 |
| 1052 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1054 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1053 Handle<Script>(info->script()), | 1055 Handle<Script>(info->script()), |
| 1054 Handle<Code>(info->code()), | 1056 Handle<Code>(info->code()), |
| 1055 info)); | 1057 info)); |
| 1056 } | 1058 } |
| 1057 | 1059 |
| 1058 } } // namespace v8::internal | 1060 } } // namespace v8::internal |
| OLD | NEW |