| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate); | 142 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate); |
| 143 v8::Handle<v8::Function> setVariableValueFunction = v8::Handle<v8::Function>
::Cast(callFrame->Get(v8::String::NewSymbol("setVariableValue"))); | 143 v8::Handle<v8::Function> setVariableValueFunction = v8::Handle<v8::Function>
::Cast(callFrame->Get(v8::String::NewSymbol("setVariableValue"))); |
| 144 v8::Handle<v8::Value> argv[] = { | 144 v8::Handle<v8::Value> argv[] = { |
| 145 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), | 145 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), |
| 146 v8String(variableName, m_isolate), | 146 v8String(variableName, m_isolate), |
| 147 newValue | 147 newValue |
| 148 }; | 148 }; |
| 149 return setVariableValueFunction->Call(callFrame, 3, argv); | 149 return setVariableValueFunction->Call(callFrame, 3, argv); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void JavaScriptCallFrame::rereadScopes() |
| 153 { |
| 154 v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate); |
| 155 v8::Handle<v8::Function> rereadScopesFunction = v8::Handle<v8::Function>::Ca
st(callFrame->Get(v8::String::NewSymbol("rereadScopes"))); |
| 156 rereadScopesFunction->Call(callFrame, 0, 0); |
| 157 } |
| 158 |
| 152 } // namespace WebCore | 159 } // namespace WebCore |
| OLD | NEW |