| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3427 is_recursive_(false), | 3427 is_recursive_(false), |
| 3428 use_optimistic_licm_(false), | 3428 use_optimistic_licm_(false), |
| 3429 depends_on_empty_array_proto_elements_(false), | 3429 depends_on_empty_array_proto_elements_(false), |
| 3430 type_change_checksum_(0), | 3430 type_change_checksum_(0), |
| 3431 maximum_environment_size_(0), | 3431 maximum_environment_size_(0), |
| 3432 no_side_effects_scope_count_(0), | 3432 no_side_effects_scope_count_(0), |
| 3433 disallow_adding_new_values_(false), | 3433 disallow_adding_new_values_(false), |
| 3434 next_inline_id_(0), | 3434 next_inline_id_(0), |
| 3435 inlined_functions_(5, info->zone()) { | 3435 inlined_functions_(5, info->zone()) { |
| 3436 if (info->IsStub()) { | 3436 if (info->IsStub()) { |
| 3437 HydrogenCodeStub* stub = info->code_stub(); | 3437 CallInterfaceDescriptor descriptor = |
| 3438 CodeStubInterfaceDescriptor descriptor(stub); | 3438 info->code_stub()->GetCallInterfaceDescriptor(); |
| 3439 start_environment_ = new (zone_) | 3439 start_environment_ = new (zone_) |
| 3440 HEnvironment(zone_, descriptor.GetEnvironmentParameterCount()); | 3440 HEnvironment(zone_, descriptor.GetEnvironmentParameterCount()); |
| 3441 } else { | 3441 } else { |
| 3442 TraceInlinedFunction(info->shared_info(), HSourcePosition::Unknown()); | 3442 TraceInlinedFunction(info->shared_info(), HSourcePosition::Unknown()); |
| 3443 start_environment_ = | 3443 start_environment_ = |
| 3444 new(zone_) HEnvironment(NULL, info->scope(), info->closure(), zone_); | 3444 new(zone_) HEnvironment(NULL, info->scope(), info->closure(), zone_); |
| 3445 } | 3445 } |
| 3446 start_environment_->set_ast_id(BailoutId::FunctionEntry()); | 3446 start_environment_->set_ast_id(BailoutId::FunctionEntry()); |
| 3447 entry_block_ = CreateBasicBlock(); | 3447 entry_block_ = CreateBasicBlock(); |
| 3448 entry_block_->SetInitialEnvironment(start_environment_); | 3448 entry_block_->SetInitialEnvironment(start_environment_); |
| (...skipping 9042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12491 if (ShouldProduceTraceOutput()) { | 12491 if (ShouldProduceTraceOutput()) { |
| 12492 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12492 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 12493 } | 12493 } |
| 12494 | 12494 |
| 12495 #ifdef DEBUG | 12495 #ifdef DEBUG |
| 12496 graph_->Verify(false); // No full verify. | 12496 graph_->Verify(false); // No full verify. |
| 12497 #endif | 12497 #endif |
| 12498 } | 12498 } |
| 12499 | 12499 |
| 12500 } } // namespace v8::internal | 12500 } } // namespace v8::internal |
| OLD | NEW |