| 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/crankshaft/hydrogen.h" | 5 #include "src/crankshaft/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
| (...skipping 5322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5333 | 5333 |
| 5334 HForInCacheArray* index_cache = Add<HForInCacheArray>( | 5334 HForInCacheArray* index_cache = Add<HForInCacheArray>( |
| 5335 enumerable, map, DescriptorArray::kEnumCacheBridgeIndicesCacheIndex); | 5335 enumerable, map, DescriptorArray::kEnumCacheBridgeIndicesCacheIndex); |
| 5336 array->set_index_cache(index_cache); | 5336 array->set_index_cache(index_cache); |
| 5337 | 5337 |
| 5338 Push(map); | 5338 Push(map); |
| 5339 Push(array); | 5339 Push(array); |
| 5340 Push(enum_length); | 5340 Push(enum_length); |
| 5341 Add<HSimulate>(stmt->PrepareId()); | 5341 Add<HSimulate>(stmt->PrepareId()); |
| 5342 } else { | 5342 } else { |
| 5343 Runtime::FunctionId function_id = Runtime::kGetPropertyNamesFast; | 5343 Runtime::FunctionId function_id = Runtime::kForInEnumerate; |
| 5344 Add<HPushArguments>(enumerable); | 5344 Add<HPushArguments>(enumerable); |
| 5345 HCallRuntime* array = | 5345 HCallRuntime* array = |
| 5346 Add<HCallRuntime>(Runtime::FunctionForId(function_id), 1); | 5346 Add<HCallRuntime>(Runtime::FunctionForId(function_id), 1); |
| 5347 Push(array); | 5347 Push(array); |
| 5348 Add<HSimulate>(stmt->EnumId()); | 5348 Add<HSimulate>(stmt->EnumId()); |
| 5349 Drop(1); | 5349 Drop(1); |
| 5350 | 5350 |
| 5351 IfBuilder if_fast(this); | 5351 IfBuilder if_fast(this); |
| 5352 if_fast.If<HCompareMap>(array, meta_map); | 5352 if_fast.If<HCompareMap>(array, meta_map); |
| 5353 if_fast.Then(); | 5353 if_fast.Then(); |
| (...skipping 8278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13632 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13632 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13633 } | 13633 } |
| 13634 | 13634 |
| 13635 #ifdef DEBUG | 13635 #ifdef DEBUG |
| 13636 graph_->Verify(false); // No full verify. | 13636 graph_->Verify(false); // No full verify. |
| 13637 #endif | 13637 #endif |
| 13638 } | 13638 } |
| 13639 | 13639 |
| 13640 } // namespace internal | 13640 } // namespace internal |
| 13641 } // namespace v8 | 13641 } // namespace v8 |
| OLD | NEW |