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

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: Fix 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
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 6019 matching lines...) Expand 10 before | Expand all | Expand 10 after
6030 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) 6030 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator)
6031 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction) 6031 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction)
6032 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, 6032 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method,
6033 kIsConciseMethod) 6033 kIsConciseMethod)
6034 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, 6034 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function,
6035 kIsGetterFunction) 6035 kIsGetterFunction)
6036 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, 6036 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function,
6037 kIsSetterFunction) 6037 kIsSetterFunction)
6038 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, 6038 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor,
6039 kIsDefaultConstructor) 6039 kIsDefaultConstructor)
6040 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
6041 kIsAsmWasmBroken)
6040 6042
6041 inline bool SharedFunctionInfo::is_resumable() const { 6043 inline bool SharedFunctionInfo::is_resumable() const {
6042 return is_generator() || is_async(); 6044 return is_generator() || is_async();
6043 } 6045 }
6044 6046
6045 bool Script::HasValidSource() { 6047 bool Script::HasValidSource() {
6046 Object* src = this->source(); 6048 Object* src = this->source();
6047 if (!src->IsString()) return true; 6049 if (!src->IsString()) return true;
6048 String* src_str = String::cast(src); 6050 String* src_str = String::cast(src);
6049 if (!StringShape(src_str).IsExternal()) return true; 6051 if (!StringShape(src_str).IsExternal()) return true;
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
8186 #undef WRITE_INT64_FIELD 8188 #undef WRITE_INT64_FIELD
8187 #undef READ_BYTE_FIELD 8189 #undef READ_BYTE_FIELD
8188 #undef WRITE_BYTE_FIELD 8190 #undef WRITE_BYTE_FIELD
8189 #undef NOBARRIER_READ_BYTE_FIELD 8191 #undef NOBARRIER_READ_BYTE_FIELD
8190 #undef NOBARRIER_WRITE_BYTE_FIELD 8192 #undef NOBARRIER_WRITE_BYTE_FIELD
8191 8193
8192 } // namespace internal 8194 } // namespace internal
8193 } // namespace v8 8195 } // namespace v8
8194 8196
8195 #endif // V8_OBJECTS_INL_H_ 8197 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | src/runtime/runtime-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698