Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: src/objects-inl.h

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6082 matching lines...) Expand 10 before | Expand all | Expand 10 after
6093 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, 6093 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method,
6094 kIsConciseMethod) 6094 kIsConciseMethod)
6095 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, 6095 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function,
6096 kIsGetterFunction) 6096 kIsGetterFunction)
6097 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, 6097 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function,
6098 kIsSetterFunction) 6098 kIsSetterFunction)
6099 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, 6099 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor,
6100 kIsDefaultConstructor) 6100 kIsDefaultConstructor)
6101 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, 6101 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
6102 kIsAsmWasmBroken) 6102 kIsAsmWasmBroken)
6103 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, requires_class_field_init,
6104 kRequiresClassFieldInit)
6105 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_class_field_initializer,
6106 kIsClassFieldInitializer)
6103 6107
6104 inline bool SharedFunctionInfo::is_resumable() const { 6108 inline bool SharedFunctionInfo::is_resumable() const {
6105 return is_generator() || is_async(); 6109 return is_generator() || is_async();
6106 } 6110 }
6107 6111
6108 bool Script::HasValidSource() { 6112 bool Script::HasValidSource() {
6109 Object* src = this->source(); 6113 Object* src = this->source();
6110 if (!src->IsString()) return true; 6114 if (!src->IsString()) return true;
6111 String* src_str = String::cast(src); 6115 String* src_str = String::cast(src);
6112 if (!StringShape(src_str).IsExternal()) return true; 6116 if (!StringShape(src_str).IsExternal()) return true;
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
8256 #undef WRITE_INT64_FIELD 8260 #undef WRITE_INT64_FIELD
8257 #undef READ_BYTE_FIELD 8261 #undef READ_BYTE_FIELD
8258 #undef WRITE_BYTE_FIELD 8262 #undef WRITE_BYTE_FIELD
8259 #undef NOBARRIER_READ_BYTE_FIELD 8263 #undef NOBARRIER_READ_BYTE_FIELD
8260 #undef NOBARRIER_WRITE_BYTE_FIELD 8264 #undef NOBARRIER_WRITE_BYTE_FIELD
8261 8265
8262 } // namespace internal 8266 } // namespace internal
8263 } // namespace v8 8267 } // namespace v8
8264 8268
8265 #endif // V8_OBJECTS_INL_H_ 8269 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698