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

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

Issue 1183733006: Keep a canonical list of shared function infos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: serializer tweak Created 5 years, 6 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 5166 matching lines...) Expand 10 before | Expand all | Expand 10 after
5177 ACCESSORS(Script, id, Smi, kIdOffset) 5177 ACCESSORS(Script, id, Smi, kIdOffset)
5178 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) 5178 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset)
5179 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 5179 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
5180 ACCESSORS(Script, context_data, Object, kContextOffset) 5180 ACCESSORS(Script, context_data, Object, kContextOffset)
5181 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) 5181 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset)
5182 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 5182 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
5183 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5183 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5184 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 5184 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
5185 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 5185 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
5186 kEvalFrominstructionsOffsetOffset) 5186 kEvalFrominstructionsOffsetOffset)
5187 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset)
5187 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 5188 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
5188 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) 5189 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5189 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) 5190 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5190 5191
5191 Script::CompilationType Script::compilation_type() { 5192 Script::CompilationType Script::compilation_type() {
5192 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5193 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5193 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5194 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5194 } 5195 }
5195 void Script::set_compilation_type(CompilationType type) { 5196 void Script::set_compilation_type(CompilationType type) {
5196 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5197 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
(...skipping 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after
7358 #undef READ_SHORT_FIELD 7359 #undef READ_SHORT_FIELD
7359 #undef WRITE_SHORT_FIELD 7360 #undef WRITE_SHORT_FIELD
7360 #undef READ_BYTE_FIELD 7361 #undef READ_BYTE_FIELD
7361 #undef WRITE_BYTE_FIELD 7362 #undef WRITE_BYTE_FIELD
7362 #undef NOBARRIER_READ_BYTE_FIELD 7363 #undef NOBARRIER_READ_BYTE_FIELD
7363 #undef NOBARRIER_WRITE_BYTE_FIELD 7364 #undef NOBARRIER_WRITE_BYTE_FIELD
7364 7365
7365 } } // namespace v8::internal 7366 } } // namespace v8::internal
7366 7367
7367 #endif // V8_OBJECTS_INL_H_ 7368 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698