OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 String toString() | 149 String toString() |
150 { | 150 { |
151 if (m_tryCatch.HasCaught()) | 151 if (m_tryCatch.HasCaught()) |
152 return String(); | 152 return String(); |
153 return m_builder.toString(); | 153 return m_builder.toString(); |
154 } | 154 } |
155 | 155 |
156 uint32_t m_arrayLimit; | 156 uint32_t m_arrayLimit; |
157 v8::Isolate* m_isolate; | 157 v8::Isolate* m_isolate; |
158 StringBuilder m_builder; | 158 StringBuilder m_builder; |
159 Vector<v8::Local<v8::Array> > m_visitedArrays; | 159 Vector<v8::Local<v8::Array>> m_visitedArrays; |
160 v8::TryCatch m_tryCatch; | 160 v8::TryCatch m_tryCatch; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace | 163 } // namespace |
164 | 164 |
165 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptArguments) | 165 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptArguments) |
166 | 166 |
167 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr
iptState, Vector<ScriptValue>& arguments) | 167 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr
iptState, Vector<ScriptValue>& arguments) |
168 { | 168 { |
169 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments)); | 169 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments)); |
(...skipping 16 matching lines...) Expand all Loading... |
186 if (!argumentCount()) | 186 if (!argumentCount()) |
187 return false; | 187 return false; |
188 | 188 |
189 const ScriptValue& value = argumentAt(0); | 189 const ScriptValue& value = argumentAt(0); |
190 ScriptState::Scope scope(m_scriptState.get()); | 190 ScriptState::Scope scope(m_scriptState.get()); |
191 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate()); | 191 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate()); |
192 return true; | 192 return true; |
193 } | 193 } |
194 | 194 |
195 } // namespace blink | 195 } // namespace blink |
OLD | NEW |