| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 uint32_t m_arrayLimit; | 163 uint32_t m_arrayLimit; |
| 164 v8::Isolate* m_isolate; | 164 v8::Isolate* m_isolate; |
| 165 StringBuilder m_builder; | 165 StringBuilder m_builder; |
| 166 Vector<v8::Local<v8::Array>> m_visitedArrays; | 166 Vector<v8::Local<v8::Array>> m_visitedArrays; |
| 167 v8::TryCatch m_tryCatch; | 167 v8::TryCatch m_tryCatch; |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace | 170 } // namespace |
| 171 | 171 |
| 172 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr
iptState, Vector<ScriptValue>& arguments) | 172 RawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, Vector
<ScriptValue>& arguments) |
| 173 { | 173 { |
| 174 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments)); | 174 return new ScriptArguments(scriptState, arguments); |
| 175 } | 175 } |
| 176 | 176 |
| 177 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr
iptState, const v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipA
rgumentCount) | 177 RawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scriptState, const
v8::FunctionCallbackInfo<v8::Value>& v8arguments, unsigned skipArgumentCount) |
| 178 { | 178 { |
| 179 Vector<ScriptValue> arguments; | 179 Vector<ScriptValue> arguments; |
| 180 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i) | 180 for (int i = skipArgumentCount; i < v8arguments.Length(); ++i) |
| 181 arguments.append(ScriptValue(scriptState, v8arguments[i])); | 181 arguments.append(ScriptValue(scriptState, v8arguments[i])); |
| 182 return ScriptArguments::create(scriptState, arguments); | 182 return ScriptArguments::create(scriptState, arguments); |
| 183 } | 183 } |
| 184 | 184 |
| 185 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>&
arguments) | 185 ScriptArguments::ScriptArguments(ScriptState* scriptState, Vector<ScriptValue>&
arguments) |
| 186 : m_scriptState(scriptState) | 186 : m_scriptState(scriptState) |
| 187 { | 187 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 203 if (!argumentCount()) | 203 if (!argumentCount()) |
| 204 return false; | 204 return false; |
| 205 | 205 |
| 206 const ScriptValue& value = argumentAt(0); | 206 const ScriptValue& value = argumentAt(0); |
| 207 ScriptState::Scope scope(m_scriptState.get()); | 207 ScriptState::Scope scope(m_scriptState.get()); |
| 208 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate()); | 208 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate()); |
| 209 return true; | 209 return true; |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |