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

Side by Side Diff: src/scopes.cc

Issue 1264233005: Fix another instance of the previous build issue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« 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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/parser.h" 10 #include "src/parser.h"
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 PrintName(scope_name_); 906 PrintName(scope_name_);
907 } 907 }
908 908
909 // Print parameters, if any. 909 // Print parameters, if any.
910 if (is_function_scope()) { 910 if (is_function_scope()) {
911 PrintF(" ("); 911 PrintF(" (");
912 for (int i = 0; i < params_.length(); i++) { 912 for (int i = 0; i < params_.length(); i++) {
913 if (i > 0) PrintF(", "); 913 if (i > 0) PrintF(", ");
914 const AstRawString* name = params_[i]->raw_name(); 914 const AstRawString* name = params_[i]->raw_name();
915 if (name->IsEmpty()) 915 if (name->IsEmpty())
916 PrintF(".%p", params_[i]); 916 PrintF(".%p", reinterpret_cast<void*>(params_[i]));
917 else 917 else
918 PrintName(name); 918 PrintName(name);
919 } 919 }
920 PrintF(")"); 920 PrintF(")");
921 } 921 }
922 922
923 PrintF(" { // (%d, %d)\n", start_position(), end_position()); 923 PrintF(" { // (%d, %d)\n", start_position(), end_position());
924 924
925 // Function name, if any (named function literals, only). 925 // Function name, if any (named function literals, only).
926 if (function_ != NULL) { 926 if (function_ != NULL) {
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 function_ != NULL && function_->proxy()->var()->IsContextSlot(); 1606 function_ != NULL && function_->proxy()->var()->IsContextSlot();
1607 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() - 1607 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() -
1608 (is_function_var_in_context ? 1 : 0); 1608 (is_function_var_in_context ? 1 : 0);
1609 } 1609 }
1610 1610
1611 1611
1612 int Scope::ContextGlobalCount() const { return num_global_slots(); } 1612 int Scope::ContextGlobalCount() const { return num_global_slots(); }
1613 1613
1614 } // namespace internal 1614 } // namespace internal
1615 } // namespace v8 1615 } // namespace v8
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