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

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

Issue 2229723002: [wasm] Support validation of asm.js modules with != 3 args. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips and more Created 4 years, 4 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.h ('k') | src/runtime/runtime.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 6041 matching lines...) Expand 10 before | Expand all | Expand 10 after
6052 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 6052 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
6053 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction) 6053 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction)
6054 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, 6054 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method,
6055 kIsConciseMethod) 6055 kIsConciseMethod)
6056 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, 6056 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function,
6057 kIsGetterFunction) 6057 kIsGetterFunction)
6058 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, 6058 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function,
6059 kIsSetterFunction) 6059 kIsSetterFunction)
6060 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, 6060 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor,
6061 kIsDefaultConstructor) 6061 kIsDefaultConstructor)
6062 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
6063 kIsAsmWasmBroken)
6062 6064
6063 inline bool SharedFunctionInfo::is_resumable() const { 6065 inline bool SharedFunctionInfo::is_resumable() const {
6064 return is_generator() || is_async(); 6066 return is_generator() || is_async();
6065 } 6067 }
6066 6068
6067 bool Script::HasValidSource() { 6069 bool Script::HasValidSource() {
6068 Object* src = this->source(); 6070 Object* src = this->source();
6069 if (!src->IsString()) return true; 6071 if (!src->IsString()) return true;
6070 String* src_str = String::cast(src); 6072 String* src_str = String::cast(src);
6071 if (!StringShape(src_str).IsExternal()) return true; 6073 if (!StringShape(src_str).IsExternal()) return true;
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
8208 #undef WRITE_INT64_FIELD 8210 #undef WRITE_INT64_FIELD
8209 #undef READ_BYTE_FIELD 8211 #undef READ_BYTE_FIELD
8210 #undef WRITE_BYTE_FIELD 8212 #undef WRITE_BYTE_FIELD
8211 #undef NOBARRIER_READ_BYTE_FIELD 8213 #undef NOBARRIER_READ_BYTE_FIELD
8212 #undef NOBARRIER_WRITE_BYTE_FIELD 8214 #undef NOBARRIER_WRITE_BYTE_FIELD
8213 8215
8214 } // namespace internal 8216 } // namespace internal
8215 } // namespace v8 8217 } // namespace v8
8216 8218
8217 #endif // V8_OBJECTS_INL_H_ 8219 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698