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

Side by Side Diff: src/scopes.cc

Issue 21449: Fix lint errors because of long line. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | « no previous file | no next file » | 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 437
438 // Scope info. 438 // Scope info.
439 if (HasTrivialOuterContext()) { 439 if (HasTrivialOuterContext()) {
440 Indent(n1, "// scope has trivial outer context\n"); 440 Indent(n1, "// scope has trivial outer context\n");
441 } 441 }
442 if (scope_inside_with_) Indent(n1, "// scope inside 'with'\n"); 442 if (scope_inside_with_) Indent(n1, "// scope inside 'with'\n");
443 if (scope_contains_with_) Indent(n1, "// scope contains 'with'\n"); 443 if (scope_contains_with_) Indent(n1, "// scope contains 'with'\n");
444 if (scope_calls_eval_) Indent(n1, "// scope calls 'eval'\n"); 444 if (scope_calls_eval_) Indent(n1, "// scope calls 'eval'\n");
445 if (outer_scope_calls_eval_) Indent(n1, "// outer scope calls 'eval'\n"); 445 if (outer_scope_calls_eval_) Indent(n1, "// outer scope calls 'eval'\n");
446 if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n"); 446 if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n");
447 if (outer_scope_is_eval_scope_) Indent(n1, "// outer scope is 'eval' scope\n") ; 447 if (outer_scope_is_eval_scope_) {
448 Indent(n1, "// outer scope is 'eval' scope\n");
449 }
448 if (num_stack_slots_ > 0) { Indent(n1, "// "); 450 if (num_stack_slots_ > 0) { Indent(n1, "// ");
449 PrintF("%d stack slots\n", num_stack_slots_); } 451 PrintF("%d stack slots\n", num_stack_slots_); }
450 if (num_heap_slots_ > 0) { Indent(n1, "// "); 452 if (num_heap_slots_ > 0) { Indent(n1, "// ");
451 PrintF("%d heap slots\n", num_heap_slots_); } 453 PrintF("%d heap slots\n", num_heap_slots_); }
452 454
453 // Print locals. 455 // Print locals.
454 PrettyPrinter printer; 456 PrettyPrinter printer;
455 Indent(n1, "// function var\n"); 457 Indent(n1, "// function var\n");
456 if (function_ != NULL) { 458 if (function_ != NULL) {
457 PrintVar(&printer, n1, function_); 459 PrintVar(&printer, n1, function_);
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && 917 if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS &&
916 !must_have_local_context) { 918 !must_have_local_context) {
917 num_heap_slots_ = 0; 919 num_heap_slots_ = 0;
918 } 920 }
919 921
920 // Allocation done. 922 // Allocation done.
921 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); 923 ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS);
922 } 924 }
923 925
924 } } // namespace v8::internal 926 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698