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

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: oops Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | src/parser.h » ('J')
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 5040 matching lines...) Expand 10 before | Expand all | Expand 10 after
5051 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 5051 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
5052 ACCESSORS(Script, context_data, Object, kContextOffset) 5052 ACCESSORS(Script, context_data, Object, kContextOffset)
5053 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) 5053 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset)
5054 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 5054 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
5055 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 5055 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
5056 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 5056 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
5057 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 5057 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
5058 kEvalFrominstructionsOffsetOffset) 5058 kEvalFrominstructionsOffsetOffset)
5059 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 5059 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
5060 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) 5060 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
5061 ACCESSORS(Script, source_url, Object, kSourceUrlOffset)
5061 5062
5062 Script::CompilationType Script::compilation_type() { 5063 Script::CompilationType Script::compilation_type() {
5063 return BooleanBit::get(flags(), kCompilationTypeBit) ? 5064 return BooleanBit::get(flags(), kCompilationTypeBit) ?
5064 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 5065 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
5065 } 5066 }
5066 void Script::set_compilation_type(CompilationType type) { 5067 void Script::set_compilation_type(CompilationType type) {
5067 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 5068 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
5068 type == COMPILATION_TYPE_EVAL)); 5069 type == COMPILATION_TYPE_EVAL));
5069 } 5070 }
5070 Script::CompilationState Script::compilation_state() { 5071 Script::CompilationState Script::compilation_state() {
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
6862 #undef READ_SHORT_FIELD 6863 #undef READ_SHORT_FIELD
6863 #undef WRITE_SHORT_FIELD 6864 #undef WRITE_SHORT_FIELD
6864 #undef READ_BYTE_FIELD 6865 #undef READ_BYTE_FIELD
6865 #undef WRITE_BYTE_FIELD 6866 #undef WRITE_BYTE_FIELD
6866 #undef NOBARRIER_READ_BYTE_FIELD 6867 #undef NOBARRIER_READ_BYTE_FIELD
6867 #undef NOBARRIER_WRITE_BYTE_FIELD 6868 #undef NOBARRIER_WRITE_BYTE_FIELD
6868 6869
6869 } } // namespace v8::internal 6870 } } // namespace v8::internal
6870 6871
6871 #endif // V8_OBJECTS_INL_H_ 6872 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/parser.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698