| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 is_lvalue_(false), | 78 is_lvalue_(false), |
| 79 position_(RelocInfo::kNoPosition), | 79 position_(RelocInfo::kNoPosition), |
| 80 interface_(var->interface()) { | 80 interface_(var->interface()) { |
| 81 BindTo(var); | 81 BindTo(var); |
| 82 } | 82 } |
| 83 | 83 |
| 84 | 84 |
| 85 VariableProxy::VariableProxy(Isolate* isolate, | 85 VariableProxy::VariableProxy(Isolate* isolate, |
| 86 Handle<String> name, | 86 Handle<String> name, |
| 87 bool is_this, | 87 bool is_this, |
| 88 int position, | 88 Interface* interface, |
| 89 Interface* interface) | 89 int position) |
| 90 : Expression(isolate), | 90 : Expression(isolate), |
| 91 name_(name), | 91 name_(name), |
| 92 var_(NULL), | 92 var_(NULL), |
| 93 is_this_(is_this), | 93 is_this_(is_this), |
| 94 is_trivial_(false), | 94 is_trivial_(false), |
| 95 is_lvalue_(false), | 95 is_lvalue_(false), |
| 96 position_(position), | 96 position_(position), |
| 97 interface_(interface) { | 97 interface_(interface) { |
| 98 // Names must be canonicalized for fast equality checks. | 98 // Names must be canonicalized for fast equality checks. |
| 99 ASSERT(name->IsSymbol()); | 99 ASSERT(name->IsSymbol()); |
| (...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
| 1131 str = arr; | 1131 str = arr; |
| 1132 } else { | 1132 } else { |
| 1133 str = DoubleToCString(handle_->Number(), buffer); | 1133 str = DoubleToCString(handle_->Number(), buffer); |
| 1134 } | 1134 } |
| 1135 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1135 return FACTORY->NewStringFromAscii(CStrVector(str)); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 | 1138 |
| 1139 } } // namespace v8::internal | 1139 } } // namespace v8::internal |
| OLD | NEW |