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

Side by Side Diff: src/parser.cc

Issue 8055: Fix some style issues. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 int end_pos = scanner_.location().end_pos; 2914 int end_pos = scanner_.location().end_pos;
2915 2915
2916 FunctionEntry entry = log()->LogFunction(start_pos); 2916 FunctionEntry entry = log()->LogFunction(start_pos);
2917 if (entry.is_valid()) { 2917 if (entry.is_valid()) {
2918 entry.set_end_pos(end_pos); 2918 entry.set_end_pos(end_pos);
2919 entry.set_literal_count(materialized_literal_count); 2919 entry.set_literal_count(materialized_literal_count);
2920 entry.set_property_count(expected_property_count); 2920 entry.set_property_count(expected_property_count);
2921 entry.set_contains_array_literal(contains_array_literal); 2921 entry.set_contains_array_literal(contains_array_literal);
2922 } 2922 }
2923 2923
2924 FunctionLiteral *function_literal = 2924 FunctionLiteral* function_literal =
2925 NEW(FunctionLiteral(name, top_scope_, 2925 NEW(FunctionLiteral(name, top_scope_,
2926 body.elements(), materialized_literal_count, 2926 body.elements(), materialized_literal_count,
2927 contains_array_literal, expected_property_count, 2927 contains_array_literal, expected_property_count,
2928 num_parameters, start_pos, end_pos, 2928 num_parameters, start_pos, end_pos,
2929 function_name->length() > 0)); 2929 function_name->length() > 0));
2930 if (!is_pre_parsing_) { 2930 if (!is_pre_parsing_) {
2931 function_literal->set_function_token_position(function_token_position); 2931 function_literal->set_function_token_position(function_token_position);
2932 } 2932 }
2933 return function_literal; 2933 return function_literal;
2934 } 2934 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
3254 start_position, 3254 start_position,
3255 is_expression); 3255 is_expression);
3256 return result; 3256 return result;
3257 } 3257 }
3258 3258
3259 3259
3260 #undef NEW 3260 #undef NEW
3261 3261
3262 3262
3263 } } // namespace v8::internal 3263 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698