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

Side by Side Diff: src/ast.cc

Issue 147075: Allocate arguments object on-demand instead of at function entry.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 VariableProxy::VariableProxy(Handle<String> name, 61 VariableProxy::VariableProxy(Handle<String> name,
62 bool is_this, 62 bool is_this,
63 bool inside_with) 63 bool inside_with)
64 : name_(name), 64 : name_(name),
65 var_(NULL), 65 var_(NULL),
66 is_this_(is_this), 66 is_this_(is_this),
67 inside_with_(inside_with) { 67 inside_with_(inside_with) {
68 // names must be canonicalized for fast equality checks 68 // names must be canonicalized for fast equality checks
69 ASSERT(name->IsSymbol()); 69 ASSERT(name->IsSymbol());
70 // at least one access, otherwise no need for a VariableProxy 70 // at least one access, otherwise no need for a VariableProxy
71 var_uses_.RecordAccess(1); 71 var_uses_.RecordRead(1);
72 } 72 }
73 73
74 74
75 VariableProxy::VariableProxy(bool is_this) 75 VariableProxy::VariableProxy(bool is_this)
76 : is_this_(is_this) { 76 : is_this_(is_this) {
77 } 77 }
78 78
79 79
80 void VariableProxy::BindTo(Variable* var) { 80 void VariableProxy::BindTo(Variable* var) {
81 ASSERT(var_ == NULL); // must be bound only once 81 ASSERT(var_ == NULL); // must be bound only once
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 if (kInfinity - max_match_ < node_max_match) { 503 if (kInfinity - max_match_ < node_max_match) {
504 max_match_ = kInfinity; 504 max_match_ = kInfinity;
505 } else { 505 } else {
506 max_match_ += node->max_match(); 506 max_match_ += node->max_match();
507 } 507 }
508 } 508 }
509 } 509 }
510 510
511 511
512 } } // namespace v8::internal 512 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ia32/codegen-ia32.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698