OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ? expression()->AsAssignment() | 63 ? expression()->AsAssignment() |
64 : NULL; | 64 : NULL; |
65 } | 65 } |
66 | 66 |
67 | 67 |
68 CountOperation* ExpressionStatement::StatementAsCountOperation() { | 68 CountOperation* ExpressionStatement::StatementAsCountOperation() { |
69 return expression()->AsCountOperation(); | 69 return expression()->AsCountOperation(); |
70 } | 70 } |
71 | 71 |
72 | 72 |
| 73 VariableProxy::VariableProxy(Variable* var) |
| 74 : name_(var->name()), |
| 75 var_(NULL), // Will be set by the call to BindTo. |
| 76 is_this_(var->is_this()), |
| 77 inside_with_(false), |
| 78 is_trivial_(false) { |
| 79 BindTo(var); |
| 80 } |
| 81 |
| 82 |
73 VariableProxy::VariableProxy(Handle<String> name, | 83 VariableProxy::VariableProxy(Handle<String> name, |
74 bool is_this, | 84 bool is_this, |
75 bool inside_with) | 85 bool inside_with) |
76 : name_(name), | 86 : name_(name), |
77 var_(NULL), | 87 var_(NULL), |
78 is_this_(is_this), | 88 is_this_(is_this), |
79 inside_with_(inside_with), | 89 inside_with_(inside_with), |
80 is_trivial_(false) { | 90 is_trivial_(false) { |
81 // names must be canonicalized for fast equality checks | 91 // names must be canonicalized for fast equality checks |
82 ASSERT(name->IsSymbol()); | 92 ASSERT(name->IsSymbol()); |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 cond_(NULL), | 642 cond_(NULL), |
633 may_have_function_literal_(true) { | 643 may_have_function_literal_(true) { |
634 } | 644 } |
635 | 645 |
636 | 646 |
637 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements) | 647 CaseClause::CaseClause(Expression* label, ZoneList<Statement*>* statements) |
638 : label_(label), statements_(statements) { | 648 : label_(label), statements_(statements) { |
639 } | 649 } |
640 | 650 |
641 } } // namespace v8::internal | 651 } } // namespace v8::internal |
OLD | NEW |