vendor/v8/src/func-name-inferrer.cc in mustang-0.0.1 vs vendor/v8/src/func-name-inferrer.cc in mustang-0.1.0

- old
+ new

@@ -36,33 +36,34 @@ void FuncNameInferrer::PushEnclosingName(Handle<String> name) { // Enclosing name is a name of a constructor function. To check // that it is really a constructor, we check that it is not empty // and starts with a capital letter. - if (name->length() > 0 && Runtime::IsUpperCaseChar(name->Get(0))) { + if (name->length() > 0 && Runtime::IsUpperCaseChar( + Isolate::Current()->runtime_state(), name->Get(0))) { names_stack_.Add(name); } } void FuncNameInferrer::PushLiteralName(Handle<String> name) { - if (IsOpen() && !Heap::prototype_symbol()->Equals(*name)) { + if (IsOpen() && !HEAP->prototype_symbol()->Equals(*name)) { names_stack_.Add(name); } } void FuncNameInferrer::PushVariableName(Handle<String> name) { - if (IsOpen() && !Heap::result_symbol()->Equals(*name)) { + if (IsOpen() && !HEAP->result_symbol()->Equals(*name)) { names_stack_.Add(name); } } Handle<String> FuncNameInferrer::MakeNameFromStack() { if (names_stack_.is_empty()) { - return Factory::empty_string(); + return FACTORY->empty_string(); } else { return MakeNameFromStackHelper(1, names_stack_.at(0)); } } @@ -70,11 +71,11 @@ Handle<String> FuncNameInferrer::MakeNameFromStackHelper(int pos, Handle<String> prev) { if (pos >= names_stack_.length()) { return prev; } else { - Handle<String> curr = Factory::NewConsString(dot_, names_stack_.at(pos)); - return MakeNameFromStackHelper(pos + 1, Factory::NewConsString(prev, curr)); + Handle<String> curr = FACTORY->NewConsString(dot_, names_stack_.at(pos)); + return MakeNameFromStackHelper(pos + 1, FACTORY->NewConsString(prev, curr)); } } void FuncNameInferrer::InferFunctionsNames() {