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

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

Issue 316173002: Handle "//# sourceURL" comments in the Parser instead of the JS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: yet another trivial rebase Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/parser.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 5245 matching lines...) Expand 10 before | Expand all | Expand 10 after
5256 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 5256 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
5257 ACCESSORS(Script, context_data, Object, kContextOffset) 5257 ACCESSORS(Script, context_data, Object, kContextOffset)
5258 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) 5258 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset)
5259 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 5259 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
5260 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5260 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5261 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 5261 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
5262 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 5262 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
5263 kEvalFrominstructionsOffsetOffset) 5263 kEvalFrominstructionsOffsetOffset)
5264 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 5264 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
5265 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) 5265 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
5266 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5267 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset)
5266 5268
5267 Script::CompilationType Script::compilation_type() { 5269 Script::CompilationType Script::compilation_type() {
5268 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5270 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5269 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5271 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5270 } 5272 }
5271 void Script::set_compilation_type(CompilationType type) { 5273 void Script::set_compilation_type(CompilationType type) {
5272 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5274 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
5273 type == COMPILATION_TYPE_EVAL)); 5275 type == COMPILATION_TYPE_EVAL));
5274 } 5276 }
5275 Script::CompilationState Script::compilation_state() { 5277 Script::CompilationState Script::compilation_state() {
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
7056 #undef READ_SHORT_FIELD 7058 #undef READ_SHORT_FIELD
7057 #undef WRITE_SHORT_FIELD 7059 #undef WRITE_SHORT_FIELD
7058 #undef READ_BYTE_FIELD 7060 #undef READ_BYTE_FIELD
7059 #undef WRITE_BYTE_FIELD 7061 #undef WRITE_BYTE_FIELD
7060 #undef NOBARRIER_READ_BYTE_FIELD 7062 #undef NOBARRIER_READ_BYTE_FIELD
7061 #undef NOBARRIER_WRITE_BYTE_FIELD 7063 #undef NOBARRIER_WRITE_BYTE_FIELD
7062 7064
7063 } } // namespace v8::internal 7065 } } // namespace v8::internal
7064 7066
7065 #endif // V8_OBJECTS_INL_H_ 7067 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698