Home
last modified time | relevance | path

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

123

/third_party/node/deps/v8/src/parsing/
Dpreparser.cc92 if (is_strict(language_mode())) { in PreParseProgram()
176 if (is_sloppy(function_scope->language_mode())) { in PreParseFunction()
181 is_sloppy(function_scope->language_mode()) && !IsConciseMethod(kind); in PreParseFunction()
183 if (is_sloppy(inner_scope->language_mode())) { in PreParseFunction()
187 SetLanguageMode(function_scope, inner_scope->language_mode()); in PreParseFunction()
212 ValidateFormalParameters(language_mode(), formals, in PreParseFunction()
241 if (is_strict(function_scope->language_mode())) { in PreParseFunction()
268 LanguageMode language_mode, in ParseFunctionLiteral() argument
284 function_scope->SetLanguageMode(language_mode); in ParseFunctionLiteral()
326 language_mode = function_scope->language_mode(); in ParseFunctionLiteral()
[all …]
Dparse-info.cc98 Isolate* isolate, bool is_user_javascript, LanguageMode language_mode, in ForToplevelCompile() argument
102 is_user_javascript, language_mode, repl_mode, in ForToplevelCompile()
131 set_outer_language_mode(function->language_mode()); in SetFlagsFromFunction()
146 LanguageMode language_mode, REPLMode repl_mode, ScriptType type, in SetFlagsForToplevelCompile() argument
153 stricter_language_mode(outer_language_mode(), language_mode)); in SetFlagsForToplevelCompile()
Dtoken.h234 LanguageMode language_mode, in IsValidIdentifier() argument
239 if (token == YIELD) return !is_generator && is_sloppy(language_mode); in IsValidIdentifier()
240 return IsStrictReservedWord(token) && is_sloppy(language_mode); in IsValidIdentifier()
Dparse-info.h71 LanguageMode language_mode,
144 LanguageMode language_mode,
278 LanguageMode language_mode() const { return language_mode_; } in language_mode() function
Dparser-base.h1025 void CheckFunctionName(LanguageMode language_mode, IdentifierT function_name, in CheckFunctionName() argument
1031 if (is_sloppy(language_mode)) return; in CheckFunctionName()
1050 LanguageMode language_mode() { return scope()->language_mode(); } in language_mode() function
1052 LanguageMode old = scope()->language_mode(); in RaiseLanguageMode()
1104 void ValidateFormalParameters(LanguageMode language_mode, in ValidateFormalParameters() argument
1108 if (is_strict(language_mode)) parameters.ValidateStrictMode(impl()); in ValidateFormalParameters()
1403 if (is_strict(language_mode()) && in IsAssignableIdentifier()
1670 if (!Token::IsValidIdentifier(next, language_mode(), is_generator(), in ClassifyPropertyIdentifier()
1702 if (!Token::IsValidIdentifier(next, language_mode(), is_generator(), in ParseAndClassifyIdentifier()
1726 next, language_mode(), IsGeneratorFunction(function_kind), in ParseIdentifier()
[all …]
Dparser.cc119 message = is_strict(language_mode()) in ReportUnexpectedTokenAt()
648 this->scope()->SetLanguageMode(info->language_mode()); in DoParseProgram()
656 if (is_strict(language_mode())) { in DoParseProgram()
659 if (is_sloppy(language_mode())) { in DoParseProgram()
706 info->set_language_mode(literal->language_mode()); in PostProcessParseResult()
786 this->scope()->SetLanguageMode(info->language_mode()); in ParseREPLProgram()
966 DCHECK(is_sloppy(outer->language_mode()) || in DoParseFunction()
967 is_strict(info->language_mode())); in DoParseFunction()
992 SetLanguageMode(scope, info->language_mode()); in DoParseFunction()
1062 info->language_mode(), arguments_for_wrapped_function); in DoParseFunction()
[all …]
/third_party/node/deps/v8/src/objects/
Dcompilation-cache-table-inl.h35 LanguageMode language_mode, in StringSharedHash() argument
48 if (is_strict(language_mode)) hash ^= 0x8000; in StringSharedHash()
54 LanguageMode language_mode) { in StringSharedHash() argument
57 if (is_strict(language_mode)) hash ^= 0x8000; in StringSharedHash()
78 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); in HashForObject() local
83 return StringSharedHash(source, language_mode); in HashForObject()
86 language_mode, position); in HashForObject()
Dcompilation-cache-table.cc146 LanguageMode language_mode, int position) in StringSharedKey() argument
148 *source, *shared, language_mode, position)), in StringSharedKey()
151 language_mode_(language_mode), in StringSharedKey()
155 StringSharedKey(Handle<String> source, LanguageMode language_mode) in StringSharedKey() argument
157 CompilationCacheShape::StringSharedHash(*source, language_mode)), in StringSharedKey()
159 language_mode_(language_mode), in StringSharedKey()
180 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); in IsMatch() local
181 if (language_mode != language_mode_) return false; in IsMatch()
249 LanguageMode language_mode, Isolate* isolate) { in LookupScript() argument
251 StringSharedKey key(src, language_mode); in LookupScript()
[all …]
Dcompilation-cache-table.h34 LanguageMode language_mode,
38 LanguageMode language_mode);
92 LanguageMode language_mode, Isolate* isolate); in EXTERN_DECLARE_HASH_TABLE()
95 LanguageMode language_mode, Handle<SharedFunctionInfo> value, in EXTERN_DECLARE_HASH_TABLE()
113 LanguageMode language_mode, int position); in EXTERN_DECLARE_HASH_TABLE()
Dfeedback-vector.h406 FeedbackSlotKind GetStoreICSlot(LanguageMode language_mode) { in GetStoreICSlot() argument
408 return is_strict(language_mode) ? FeedbackSlotKind::kSetNamedStrict in GetStoreICSlot()
412 FeedbackSlot AddStoreICSlot(LanguageMode language_mode) { in AddStoreICSlot() argument
413 return AddSlot(GetStoreICSlot(language_mode)); in AddStoreICSlot()
426 FeedbackSlot AddStoreGlobalICSlot(LanguageMode language_mode) { in AddStoreGlobalICSlot() argument
428 return AddSlot(is_strict(language_mode) in AddStoreGlobalICSlot()
433 FeedbackSlotKind GetKeyedStoreICSlotKind(LanguageMode language_mode) { in GetKeyedStoreICSlotKind() argument
435 return is_strict(language_mode) ? FeedbackSlotKind::kSetKeyedStrict in GetKeyedStoreICSlotKind()
439 FeedbackSlot AddKeyedStoreICSlot(LanguageMode language_mode) { in AddKeyedStoreICSlot() argument
440 return AddSlot(GetKeyedStoreICSlotKind(language_mode)); in AddKeyedStoreICSlot()
Dshared-function-info-inl.h319 LanguageMode SharedFunctionInfo::language_mode() const { in language_mode() function
324 void SharedFunctionInfo::set_language_mode(LanguageMode language_mode) { in set_language_mode() argument
328 DCHECK(is_sloppy(this->language_mode()) || is_strict(language_mode)); in set_language_mode()
330 hints = IsStrictBit::update(hints, is_strict(language_mode)); in set_language_mode()
397 Context::FunctionMapIndex(language_mode(), kind(), HasSharedName()); in UpdateFunctionMapIndex()
Dcontexts-inl.h212 int Context::FunctionMapIndex(LanguageMode language_mode, FunctionKind kind,
249 base = is_strict(language_mode) ? STRICT_FUNCTION_MAP_INDEX
/third_party/node/deps/v8/src/codegen/
Dcompilation-cache.cc170 LanguageMode language_mode) { in Lookup() argument
181 table, source, language_mode, isolate()); in Lookup()
209 LanguageMode language_mode, in Put() argument
213 SetFirstTable(CompilationCacheTable::PutScript(table, source, language_mode, in Put()
220 LanguageMode language_mode, in Lookup() argument
231 table, source, outer_info, native_context, language_mode, position); in Lookup()
298 LanguageMode language_mode) { in LookupScript() argument
300 return script_.Lookup(source, script_details, language_mode); in LookupScript()
306 LanguageMode language_mode, in LookupEval() argument
314 result = eval_global_.Lookup(source, outer_info, context, language_mode, in LookupEval()
[all …]
Dcompilation-cache.h87 LanguageMode language_mode);
89 void Put(Handle<String> source, LanguageMode language_mode,
118 LanguageMode language_mode, int position);
162 LanguageMode language_mode);
169 Handle<Context> context, LanguageMode language_mode,
179 void PutScript(Handle<String> source, LanguageMode language_mode,
/third_party/node/deps/v8/src/ic/
Dkeyed-store-generic.cc64 TNode<Object> value, LanguageMode language_mode);
72 LanguageMode language_mode);
88 Maybe<LanguageMode> language_mode);
215 TNode<Name> name, TNode<Object> value, LanguageMode language_mode) { in SetProperty() argument
218 language_mode); in SetProperty()
224 LanguageMode language_mode) { in SetProperty() argument
226 assembler.StoreProperty(context, receiver, key, value, language_mode); in SetProperty()
1030 LanguageMode language_mode; in EmitGenericPropertyStore() local
1031 if (maybe_language_mode.To(&language_mode)) { in EmitGenericPropertyStore()
1032 if (language_mode == LanguageMode::kStrict) { in EmitGenericPropertyStore()
[all …]
Dkeyed-store-generic.h22 TNode<Object> value, LanguageMode language_mode);
29 LanguageMode language_mode);
/third_party/node/deps/v8/src/interpreter/
Dbytecode-flags.cc79 uint8_t StoreLookupSlotFlags::Encode(LanguageMode language_mode, in Encode() argument
82 language_mode == LanguageMode::kSloppy); in Encode()
83 return LanguageModeBit::encode(language_mode) | in Encode()
Dbytecode-array-builder.h173 LanguageMode language_mode);
181 LanguageMode language_mode);
195 LanguageMode language_mode);
237 const AstRawString* name, LanguageMode language_mode,
393 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode);
Dbytecode-array-builder.cc821 const AstRawString* name, LanguageMode language_mode, in StoreLookupSlot() argument
825 StoreLookupSlotFlags::Encode(language_mode, lookup_hoisting_mode); in StoreLookupSlot()
884 LanguageMode language_mode) { in SetNamedProperty() argument
888 language_mode); in SetNamedProperty()
895 LanguageMode language_mode) { in SetNamedProperty() argument
897 return SetNamedProperty(object, name_index, feedback_slot, language_mode); in SetNamedProperty()
913 LanguageMode language_mode) { in SetKeyedProperty() argument
917 language_mode); in SetKeyedProperty()
1518 LanguageMode language_mode) { in Delete() argument
1519 if (language_mode == LanguageMode::kSloppy) { in Delete()
[all …]
/third_party/node/deps/v8/src/compiler/
Djs-operator.cc271 lhs.language_mode() == rhs.language_mode() && in operator ==()
282 return base::hash_combine(p.name_.object().location(), p.language_mode(), in hash_value()
288 return os << Brief(*p.name_.object()) << ", " << p.language_mode(); in operator <<()
301 return os << p.language_mode() << ", " << p.feedback(); in operator <<()
306 return lhs.language_mode() == rhs.language_mode() && in operator ==()
326 return base::hash_combine(p.language_mode(), in hash_value()
365 return lhs.language_mode() == rhs.language_mode() && in operator ==()
378 return base::hash_combine(p.language_mode(), p.name_.object().location(), in hash_value()
384 return os << p.language_mode() << ", " << Brief(*p.name_.object()); in operator <<()
1105 LanguageMode language_mode, const NameRef& name, in SetNamedProperty() argument
[all …]
Djs-operator.h450 NamedAccess(LanguageMode language_mode, const NameRef& name, in NamedAccess() argument
452 : name_(name), feedback_(feedback), language_mode_(language_mode) {} in NamedAccess()
455 LanguageMode language_mode() const { return language_mode_; } in language_mode() function
509 StoreGlobalParameters(LanguageMode language_mode, in StoreGlobalParameters() argument
511 : language_mode_(language_mode), name_(name), feedback_(feedback) {} in StoreGlobalParameters()
513 LanguageMode language_mode() const { return language_mode_; } in language_mode() function
539 PropertyAccess(LanguageMode language_mode, FeedbackSource const& feedback) in PropertyAccess() argument
540 : feedback_(feedback), language_mode_(language_mode) {} in PropertyAccess()
542 LanguageMode language_mode() const { return language_mode_; } in language_mode() function
1025 const Operator* SetKeyedProperty(LanguageMode language_mode, in NON_EXPORTED_BASE()
[all …]
/third_party/node/deps/v8/src/ast/
Dscopes.h291 void SetLanguageMode(LanguageMode language_mode) {
292 DCHECK(!is_module_scope() || is_strict(language_mode));
293 set_language_mode(language_mode);
405 return (language_mode() > outer_scope_->language_mode());
459 LanguageMode language_mode() const {
645 void set_language_mode(LanguageMode language_mode) {
646 is_strict_ = is_strict(language_mode);
893 CHECK(is_sloppy(language_mode()));
1105 return is_sloppy(language_mode()) && has_simple_parameters()
1351 if (is_sloppy(language_mode())) {
Dvariables.h176 bool throw_on_const_assignment(LanguageMode language_mode) const { in throw_on_const_assignment() argument
177 return kind() != SLOPPY_FUNCTION_NAME_VARIABLE || is_strict(language_mode); in throw_on_const_assignment()
/third_party/node/deps/v8/src/runtime/
Druntime-compiler.cc349 LanguageMode language_mode, in CompileGlobalEval() argument
381 source.ToHandleChecked(), outer_info, context, language_mode, in CompileGlobalEval()
400 LanguageMode language_mode = static_cast<LanguageMode>(args.smi_value_at(3)); in RUNTIME_FUNCTION() local
404 language_mode, args.smi_value_at(4), in RUNTIME_FUNCTION()
/third_party/node/deps/v8/src/common/
Dglobals.h470 inline bool is_sloppy(LanguageMode language_mode) { in is_sloppy() argument
471 return language_mode == LanguageMode::kSloppy; in is_sloppy()
474 inline bool is_strict(LanguageMode language_mode) { in is_strict() argument
475 return language_mode != LanguageMode::kSloppy; in is_strict()
478 inline bool is_valid_language_mode(int language_mode) { in is_valid_language_mode() argument
479 return language_mode == static_cast<int>(LanguageMode::kSloppy) || in is_valid_language_mode()
480 language_mode == static_cast<int>(LanguageMode::kStrict); in is_valid_language_mode()

123