| 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 16 matching lines...) Expand all Loading... |
| 27 #include "src/crankshaft/hydrogen-osr.h" | 27 #include "src/crankshaft/hydrogen-osr.h" |
| 28 #include "src/crankshaft/hydrogen-range-analysis.h" | 28 #include "src/crankshaft/hydrogen-range-analysis.h" |
| 29 #include "src/crankshaft/hydrogen-redundant-phi.h" | 29 #include "src/crankshaft/hydrogen-redundant-phi.h" |
| 30 #include "src/crankshaft/hydrogen-removable-simulates.h" | 30 #include "src/crankshaft/hydrogen-removable-simulates.h" |
| 31 #include "src/crankshaft/hydrogen-representation-changes.h" | 31 #include "src/crankshaft/hydrogen-representation-changes.h" |
| 32 #include "src/crankshaft/hydrogen-sce.h" | 32 #include "src/crankshaft/hydrogen-sce.h" |
| 33 #include "src/crankshaft/hydrogen-store-elimination.h" | 33 #include "src/crankshaft/hydrogen-store-elimination.h" |
| 34 #include "src/crankshaft/hydrogen-uint32-analysis.h" | 34 #include "src/crankshaft/hydrogen-uint32-analysis.h" |
| 35 #include "src/crankshaft/lithium-allocator.h" | 35 #include "src/crankshaft/lithium-allocator.h" |
| 36 #include "src/crankshaft/typing.h" | 36 #include "src/crankshaft/typing.h" |
| 37 #include "src/field-type.h" |
| 37 #include "src/full-codegen/full-codegen.h" | 38 #include "src/full-codegen/full-codegen.h" |
| 38 #include "src/ic/call-optimization.h" | 39 #include "src/ic/call-optimization.h" |
| 39 #include "src/ic/ic.h" | 40 #include "src/ic/ic.h" |
| 40 // GetRootConstructor | 41 // GetRootConstructor |
| 41 #include "src/ic/ic-inl.h" | 42 #include "src/ic/ic-inl.h" |
| 42 #include "src/isolate-inl.h" | 43 #include "src/isolate-inl.h" |
| 43 #include "src/parsing/parser.h" | 44 #include "src/parsing/parser.h" |
| 44 #include "src/runtime/runtime.h" | 45 #include "src/runtime/runtime.h" |
| 45 | 46 |
| 46 #if V8_TARGET_ARCH_IA32 | 47 #if V8_TARGET_ARCH_IA32 |
| (...skipping 6204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6251 } | 6252 } |
| 6252 | 6253 |
| 6253 if (transition_to_field) { | 6254 if (transition_to_field) { |
| 6254 Handle<Map> transition(info->transition()); | 6255 Handle<Map> transition(info->transition()); |
| 6255 DCHECK(!transition->is_deprecated()); | 6256 DCHECK(!transition->is_deprecated()); |
| 6256 instr->SetTransition(Add<HConstant>(transition)); | 6257 instr->SetTransition(Add<HConstant>(transition)); |
| 6257 } | 6258 } |
| 6258 return instr; | 6259 return instr; |
| 6259 } | 6260 } |
| 6260 | 6261 |
| 6262 Handle<FieldType> |
| 6263 HOptimizedGraphBuilder::PropertyAccessInfo::GetFieldTypeFromMap( |
| 6264 Handle<Map> map) const { |
| 6265 DCHECK(IsFound()); |
| 6266 DCHECK(number_ < map->NumberOfOwnDescriptors()); |
| 6267 return handle(map->instance_descriptors()->GetFieldType(number_), isolate()); |
| 6268 } |
| 6261 | 6269 |
| 6262 bool HOptimizedGraphBuilder::PropertyAccessInfo::IsCompatible( | 6270 bool HOptimizedGraphBuilder::PropertyAccessInfo::IsCompatible( |
| 6263 PropertyAccessInfo* info) { | 6271 PropertyAccessInfo* info) { |
| 6264 if (!CanInlinePropertyAccess(map_)) return false; | 6272 if (!CanInlinePropertyAccess(map_)) return false; |
| 6265 | 6273 |
| 6266 // Currently only handle Type::Number as a polymorphic case. | 6274 // Currently only handle Type::Number as a polymorphic case. |
| 6267 // TODO(verwaest): Support monomorphic handling of numbers with a HCheckNumber | 6275 // TODO(verwaest): Support monomorphic handling of numbers with a HCheckNumber |
| 6268 // instruction. | 6276 // instruction. |
| 6269 if (IsNumberType()) return false; | 6277 if (IsNumberType()) return false; |
| 6270 | 6278 |
| (...skipping 7343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13614 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13622 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13615 } | 13623 } |
| 13616 | 13624 |
| 13617 #ifdef DEBUG | 13625 #ifdef DEBUG |
| 13618 graph_->Verify(false); // No full verify. | 13626 graph_->Verify(false); // No full verify. |
| 13619 #endif | 13627 #endif |
| 13620 } | 13628 } |
| 13621 | 13629 |
| 13622 } // namespace internal | 13630 } // namespace internal |
| 13623 } // namespace v8 | 13631 } // namespace v8 |
| OLD | NEW |