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

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

Issue 2428343005: [wasm] Improve naming consistency for WASM instances. (Closed)
Patch Set: Also rename FrameArray::WasmObject Created 4 years, 2 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/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 5911 matching lines...) Expand 10 before | Expand all | Expand 10 after
5922 SMI_ACCESSORS(Script, type, kTypeOffset) 5922 SMI_ACCESSORS(Script, type, kTypeOffset)
5923 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5923 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5924 ACCESSORS_CHECKED(Script, eval_from_shared, Object, kEvalFromSharedOffset, 5924 ACCESSORS_CHECKED(Script, eval_from_shared, Object, kEvalFromSharedOffset,
5925 this->type() != TYPE_WASM) 5925 this->type() != TYPE_WASM)
5926 SMI_ACCESSORS_CHECKED(Script, eval_from_position, kEvalFromPositionOffset, 5926 SMI_ACCESSORS_CHECKED(Script, eval_from_position, kEvalFromPositionOffset,
5927 this->type() != TYPE_WASM) 5927 this->type() != TYPE_WASM)
5928 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset) 5928 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset)
5929 SMI_ACCESSORS(Script, flags, kFlagsOffset) 5929 SMI_ACCESSORS(Script, flags, kFlagsOffset)
5930 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) 5930 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5931 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) 5931 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5932 ACCESSORS_CHECKED(Script, wasm_object, JSObject, kEvalFromSharedOffset, 5932 ACCESSORS_CHECKED(Script, wasm_instance, JSObject, kEvalFromSharedOffset,
5933 this->type() == TYPE_WASM) 5933 this->type() == TYPE_WASM)
5934 SMI_ACCESSORS_CHECKED(Script, wasm_function_index, kEvalFromPositionOffset, 5934 SMI_ACCESSORS_CHECKED(Script, wasm_function_index, kEvalFromPositionOffset,
5935 this->type() == TYPE_WASM) 5935 this->type() == TYPE_WASM)
5936 5936
5937 Script::CompilationType Script::compilation_type() { 5937 Script::CompilationType Script::compilation_type() {
5938 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5938 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5939 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5939 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5940 } 5940 }
5941 void Script::set_compilation_type(CompilationType type) { 5941 void Script::set_compilation_type(CompilationType type) {
5942 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5942 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
(...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after
8414 #undef WRITE_INT64_FIELD 8414 #undef WRITE_INT64_FIELD
8415 #undef READ_BYTE_FIELD 8415 #undef READ_BYTE_FIELD
8416 #undef WRITE_BYTE_FIELD 8416 #undef WRITE_BYTE_FIELD
8417 #undef NOBARRIER_READ_BYTE_FIELD 8417 #undef NOBARRIER_READ_BYTE_FIELD
8418 #undef NOBARRIER_WRITE_BYTE_FIELD 8418 #undef NOBARRIER_WRITE_BYTE_FIELD
8419 8419
8420 } // namespace internal 8420 } // namespace internal
8421 } // namespace v8 8421 } // namespace v8
8422 8422
8423 #endif // V8_OBJECTS_INL_H_ 8423 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698