Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 7a9dc90cc43e18d317324fcab7a35600edc2c77a..833dc5186a0908be197f8c1d57d839f2bde71281 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4926,7 +4926,7 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { |
Handle<PropertyCell> cell(global->GetPropertyCell(&lookup)); |
if (cell->type()->IsConstant()) { |
PropertyCell::AddDependentCompilationInfo(cell, top_info()); |
- Handle<Object> constant_object = cell->type()->AsConstant(); |
+ Handle<Object> constant_object = cell->type()->AsConstant()->Value(); |
if (constant_object->IsConsString()) { |
constant_object = |
String::Flatten(Handle<String>::cast(constant_object)); |
@@ -4999,7 +4999,7 @@ void HOptimizedGraphBuilder::VisitRegExpLiteral(RegExpLiteral* expr) { |
static bool CanInlinePropertyAccess(Type* type) { |
if (type->Is(Type::NumberOrString())) return true; |
if (!type->IsClass()) return false; |
- Handle<Map> map = type->AsClass(); |
+ Handle<Map> map = type->AsClass()->Map(); |
return map->IsJSObjectMap() && |
!map->is_dictionary_map() && |
!map->has_named_interceptor(); |
@@ -5991,7 +5991,7 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment( |
Handle<GlobalObject> global(current_info()->global_object()); |
Handle<PropertyCell> cell(global->GetPropertyCell(&lookup)); |
if (cell->type()->IsConstant()) { |
- Handle<Object> constant = cell->type()->AsConstant(); |
+ Handle<Object> constant = cell->type()->AsConstant()->Value(); |
if (value->IsConstant()) { |
HConstant* c_value = HConstant::cast(value); |
if (!constant.is_identical_to(c_value->handle(isolate()))) { |
@@ -9943,7 +9943,7 @@ HControlInstruction* HOptimizedGraphBuilder::BuildCompareInstruction( |
HValue* operand_to_check = |
left->block()->block_id() < right->block()->block_id() ? left : right; |
if (combined_type->IsClass()) { |
- Handle<Map> map = combined_type->AsClass(); |
+ Handle<Map> map = combined_type->AsClass()->Map(); |
AddCheckMap(operand_to_check, map); |
HCompareObjectEqAndBranch* result = |
New<HCompareObjectEqAndBranch>(left, right); |