Home
last modified time | relevance | path

Searched refs:language_mode (Results 1 – 25 of 33) sorted by relevance

12

/external/v8/src/
Dcompiler.h55 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } in is_classic_mode()
56 bool is_extended_mode() const { return language_mode() == EXTENDED_MODE; } in is_extended_mode()
57 LanguageMode language_mode() const { in language_mode() function
81 void SetLanguageMode(LanguageMode language_mode) { in SetLanguageMode() argument
82 ASSERT(this->language_mode() == CLASSIC_MODE || in SetLanguageMode()
83 this->language_mode() == language_mode || in SetLanguageMode()
84 language_mode == EXTENDED_MODE); in SetLanguageMode()
85 flags_ = LanguageModeField::update(flags_, language_mode); in SetLanguageMode()
196 ASSERT(language_mode() == CLASSIC_MODE); in Initialize()
197 SetLanguageMode(shared_info_->language_mode()); in Initialize()
[all …]
Dpreparser.h454 (prev_ != NULL) ? prev_->language_mode() : i::CLASSIC_MODE) { in Scope()
467 i::LanguageMode language_mode() { in language_mode() function
470 void set_language_mode(i::LanguageMode language_mode) { in set_language_mode() argument
471 language_mode_ = language_mode; in set_language_mode()
601 void set_language_mode(i::LanguageMode language_mode) { in set_language_mode() argument
602 scope_->set_language_mode(language_mode); in set_language_mode()
606 return scope_->language_mode() == i::CLASSIC_MODE; in is_classic_mode()
610 return scope_->language_mode() == i::EXTENDED_MODE; in is_extended_mode()
613 i::LanguageMode language_mode() { return scope_->language_mode(); } in language_mode() function
Dscopes.h229 void SetLanguageMode(LanguageMode language_mode) { in SetLanguageMode() argument
230 language_mode_ = language_mode; in SetLanguageMode()
279 return language_mode() == CLASSIC_MODE; in is_classic_mode()
282 return language_mode() == EXTENDED_MODE; in is_extended_mode()
309 LanguageMode language_mode() const { return language_mode_; } in language_mode() function
Dcompiler.cc548 LanguageMode language_mode, in CompileEval() argument
565 language_mode, in CompileEval()
574 info.SetLanguageMode(language_mode); in CompileEval()
585 ASSERT(language_mode != STRICT_MODE || !result->is_classic_mode()); in CompileEval()
588 ASSERT(language_mode != EXTENDED_MODE || in CompileEval()
625 LanguageMode language_mode = info->function()->language_mode(); in CompileLazy() local
626 info->SetLanguageMode(language_mode); in CompileLazy()
627 shared->set_language_mode(language_mode); in CompileLazy()
711 info.SetLanguageMode(literal->scope()->language_mode()); in BuildFunctionInfo()
777 function_info->set_language_mode(lit->language_mode()); in SetFunctionInfo()
Dpreparse-data.h52 LanguageMode language_mode) = 0;
92 LanguageMode language_mode) { in LogFunction() argument
97 function_store_.Add(language_mode); in LogFunction()
Dcompilation-cache.cc254 LanguageMode language_mode, in Lookup() argument
265 *source, *context, language_mode, scope_position); in Lookup()
399 LanguageMode language_mode, in LookupEval() argument
408 source, context, language_mode, scope_position); in LookupEval()
412 source, context, language_mode, scope_position); in LookupEval()
Dcompilation-cache.h144 LanguageMode language_mode,
215 LanguageMode language_mode,
Dfull-codegen.h557 return language_mode() == CLASSIC_MODE; in is_classic_mode()
559 LanguageMode language_mode() { in language_mode() function
560 return function()->language_mode(); in language_mode()
Dscopeinfo.cc82 LanguageModeField::encode(scope->language_mode()) | in Create()
166 LanguageMode ScopeInfo::language_mode() { in language_mode() function in v8::internal::ScopeInfo
Dparser.cc612 if (!scope->is_global_scope() || info->language_mode() != CLASSIC_MODE) { in DoParseProgram()
619 top_scope_->SetLanguageMode(info->language_mode()); in DoParseProgram()
713 ASSERT(scope->language_mode() != STRICT_MODE || !info->is_classic_mode()); in ParseLazy()
714 ASSERT(scope->language_mode() != EXTENDED_MODE || in ParseLazy()
716 ASSERT(info->language_mode() == shared_info->language_mode()); in ParseLazy()
717 scope->SetLanguageMode(shared_info->language_mode()); in ParseLazy()
2089 switch (top_scope_->language_mode()) { in ParseVariableDeclarations()
2295 LanguageMode language_mode = initialization_scope->language_mode(); in ParseVariableDeclarations() local
2296 arguments->Add(factory()->NewNumberLiteral(language_mode)); in ParseVariableDeclarations()
3921 ObjectLiteralPropertyChecker(Parser* parser, LanguageMode language_mode) : in ObjectLiteralPropertyChecker() argument
[all …]
Dfactory.h299 LanguageMode language_mode);
494 LanguageMode language_mode);
Dfactory.cc1140 LanguageMode language_mode) { in NewFunctionWithoutPrototypeHelper() argument
1142 Handle<Map> map = (language_mode == CLASSIC_MODE) in NewFunctionWithoutPrototypeHelper()
1156 LanguageMode language_mode) { in NewFunctionWithoutPrototype() argument
1158 NewFunctionWithoutPrototypeHelper(name, language_mode); in NewFunctionWithoutPrototype()
Dcode-stubs.h327 explicit FastNewClosureStub(LanguageMode language_mode) in FastNewClosureStub() argument
328 : language_mode_(language_mode) { } in FastNewClosureStub()
Dast.cc169 LanguageMode FunctionLiteral::language_mode() const { in language_mode() function in v8::internal::FunctionLiteral
170 return scope()->language_mode(); in language_mode()
Dscopes.cc198 language_mode_ = scope_info->language_mode(); in SetDefaults()
822 switch (language_mode()) { in Print()
Dobjects-inl.h3672 LanguageMode SharedFunctionInfo::language_mode() { in language_mode() function
3683 void SharedFunctionInfo::set_language_mode(LanguageMode language_mode) { in set_language_mode() argument
3687 ASSERT(this->language_mode() == CLASSIC_MODE || in set_language_mode()
3688 this->language_mode() == language_mode || in set_language_mode()
3689 language_mode == EXTENDED_MODE); in set_language_mode()
3692 hints, kStrictModeFunction, language_mode != CLASSIC_MODE); in set_language_mode()
3694 hints, kExtendedModeFunction, language_mode == EXTENDED_MODE); in set_language_mode()
Dfull-codegen.cc667 ASSERT(DeclareGlobalsLanguageMode::is_valid(language_mode())); in DeclareGlobalsFlags()
670 DeclareGlobalsLanguageMode::encode(language_mode()); in DeclareGlobalsFlags()
Dparser.h88 LanguageMode language_mode() { in language_mode() function
Dpreparser.cc392 switch (language_mode()) { in ParseVariableDeclarations()
1445 language_mode()); in ParseLazyFunctionLiteralBody()
Dobjects.cc10501 LanguageMode language_mode, in StringSharedKey() argument
10505 language_mode_(language_mode), in StringSharedKey()
10517 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); in IsMatch() local
10518 if (language_mode != language_mode_) return false; in IsMatch()
10527 LanguageMode language_mode, in StringSharedHashHelper() argument
10538 if (language_mode == STRICT_MODE) hash ^= 0x8000; in StringSharedHashHelper()
10539 if (language_mode == EXTENDED_MODE) hash ^= 0x0080; in StringSharedHashHelper()
10558 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); in HashForObject() local
10561 source, shared, language_mode, scope_position); in HashForObject()
11789 LanguageMode language_mode, in LookupEval() argument
[all …]
/external/v8/test/cctest/
Dtest-parsing.cc827 i::LanguageMode language_mode; in TEST() member
1022 info.SetLanguageMode(source_data[i].language_mode); in TEST()
/external/v8/src/arm/
Dfull-codegen-arm.cc1172 FastNewClosureStub stub(info->language_mode()); in EmitNewClosure()
2029 __ mov(r0, Operand(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2077 __ mov(r0, Operand(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2298 __ mov(r1, Operand(Smi::FromInt(language_mode()))); in EmitResolvePossiblyDirectEval()
3775 StrictModeFlag strict_mode_flag = (language_mode() == CLASSIC_MODE) in VisitUnaryOperation()
3785 ASSERT(language_mode() == CLASSIC_MODE || var->is_this()); in VisitUnaryOperation()
/external/v8/src/x64/
Dfull-codegen-x64.cc1080 FastNewClosureStub stub(info->language_mode()); in EmitNewClosure()
1898 __ Push(Smi::FromInt(language_mode())); in EmitVariableAssignment()
1941 __ Push(Smi::FromInt(language_mode())); in EmitVariableAssignment()
2142 __ Push(Smi::FromInt(language_mode())); in EmitResolvePossiblyDirectEval()
3664 StrictModeFlag strict_mode_flag = (language_mode() == CLASSIC_MODE) in VisitUnaryOperation()
3673 ASSERT(language_mode() == CLASSIC_MODE || var->is_this()); in VisitUnaryOperation()
/external/v8/src/mips/
Dfull-codegen-mips.cc1181 FastNewClosureStub stub(info->language_mode()); in EmitNewClosure()
2046 __ li(a0, Operand(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2094 __ li(a0, Operand(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2323 __ li(a1, Operand(Smi::FromInt(language_mode()))); in EmitResolvePossiblyDirectEval()
3816 StrictModeFlag strict_mode_flag = (language_mode() == CLASSIC_MODE) in VisitUnaryOperation()
3826 ASSERT(language_mode() == CLASSIC_MODE || var->is_this()); in VisitUnaryOperation()
/external/v8/src/ia32/
Dfull-codegen-ia32.cc1126 FastNewClosureStub stub(info->language_mode()); in EmitNewClosure()
1983 __ push(Immediate(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2026 __ push(Immediate(Smi::FromInt(language_mode()))); in EmitVariableAssignment()
2246 __ push(Immediate(Smi::FromInt(language_mode()))); in EmitResolvePossiblyDirectEval()
3751 StrictModeFlag strict_mode_flag = (language_mode() == CLASSIC_MODE) in VisitUnaryOperation()
3760 ASSERT(language_mode() == CLASSIC_MODE || var->is_this()); in VisitUnaryOperation()

12