Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4356 HValue* rhs = environment()->arguments_environment()->Lookup(1); | 4356 HValue* rhs = environment()->arguments_environment()->Lookup(1); |
| 4357 AddLeaveInlined(rhs, state); | 4357 AddLeaveInlined(rhs, state); |
| 4358 } | 4358 } |
| 4359 } else { | 4359 } else { |
| 4360 // Return from a normal inlined function. Visit the subexpression in the | 4360 // Return from a normal inlined function. Visit the subexpression in the |
| 4361 // expression context of the call. | 4361 // expression context of the call. |
| 4362 if (context->IsTest()) { | 4362 if (context->IsTest()) { |
| 4363 TestContext* test = TestContext::cast(context); | 4363 TestContext* test = TestContext::cast(context); |
| 4364 VisitForControl(stmt->expression(), test->if_true(), test->if_false()); | 4364 VisitForControl(stmt->expression(), test->if_true(), test->if_false()); |
| 4365 } else if (context->IsEffect()) { | 4365 } else if (context->IsEffect()) { |
| 4366 CHECK_ALIVE(VisitForEffect(stmt->expression())); | 4366 // Visit in value context and ignore the result. This is needed to keep |
| 4367 // environment in sync with full-codegen since some visitors | |
| 4368 // (e.g. VisitCountOperation) change the environment depending on context. | |
|
Michael Starzinger
2014/03/21 09:57:52
nit: s/change the environment/use the operand stac
ulan
2014/03/21 12:06:17
Done.
| |
| 4369 CHECK_ALIVE(VisitForValue(stmt->expression())); | |
| 4370 Pop(); | |
| 4367 Goto(function_return(), state); | 4371 Goto(function_return(), state); |
| 4368 } else { | 4372 } else { |
| 4369 ASSERT(context->IsValue()); | 4373 ASSERT(context->IsValue()); |
| 4370 CHECK_ALIVE(VisitForValue(stmt->expression())); | 4374 CHECK_ALIVE(VisitForValue(stmt->expression())); |
| 4371 AddLeaveInlined(Pop(), state); | 4375 AddLeaveInlined(Pop(), state); |
| 4372 } | 4376 } |
| 4373 } | 4377 } |
| 4374 set_current_block(NULL); | 4378 set_current_block(NULL); |
| 4375 } | 4379 } |
| 4376 | 4380 |
| (...skipping 6924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11301 if (ShouldProduceTraceOutput()) { | 11305 if (ShouldProduceTraceOutput()) { |
| 11302 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11306 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 11303 } | 11307 } |
| 11304 | 11308 |
| 11305 #ifdef DEBUG | 11309 #ifdef DEBUG |
| 11306 graph_->Verify(false); // No full verify. | 11310 graph_->Verify(false); // No full verify. |
| 11307 #endif | 11311 #endif |
| 11308 } | 11312 } |
| 11309 | 11313 |
| 11310 } } // namespace v8::internal | 11314 } } // namespace v8::internal |
| OLD | NEW |