| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class ScriptValue; | 43 class ScriptValue; |
| 44 | 44 |
| 45 class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame>, public Scrip
tWrappable { | 45 class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame>, public Scrip
tWrappable { |
| 46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
| 47 public: | 47 public: |
| 48 static PassRefPtr<JavaScriptCallFrame> create(v8::Handle<v8::Context> debugg
erContext, v8::Handle<v8::Object> callFrame) | 48 static PassRefPtr<JavaScriptCallFrame> create(v8::Handle<v8::Context> debugg
erContext, v8::Handle<v8::Object> callFrame) |
| 49 { | 49 { |
| 50 return adoptRef(new JavaScriptCallFrame(debuggerContext, callFrame)); | 50 return adoptRef(new JavaScriptCallFrame(debuggerContext, callFrame)); |
| 51 } | 51 } |
| 52 ~JavaScriptCallFrame(); | 52 ~JavaScriptCallFrame(); |
| 53 void trace(Visitor*); | |
| 54 | 53 |
| 55 JavaScriptCallFrame* caller(); | 54 JavaScriptCallFrame* caller(); |
| 56 | 55 |
| 57 int sourceID() const; | 56 int sourceID() const; |
| 58 int line() const; | 57 int line() const; |
| 59 int column() const; | 58 int column() const; |
| 60 String scriptName() const; | 59 String scriptName() const; |
| 61 String functionName() const; | 60 String functionName() const; |
| 62 | 61 |
| 63 v8::Handle<v8::Value> scopeChain() const; | 62 v8::Handle<v8::Value> scopeChain() const; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 81 | 80 |
| 82 v8::Isolate* m_isolate; | 81 v8::Isolate* m_isolate; |
| 83 RefPtr<JavaScriptCallFrame> m_caller; | 82 RefPtr<JavaScriptCallFrame> m_caller; |
| 84 ScopedPersistent<v8::Context> m_debuggerContext; | 83 ScopedPersistent<v8::Context> m_debuggerContext; |
| 85 ScopedPersistent<v8::Object> m_callFrame; | 84 ScopedPersistent<v8::Object> m_callFrame; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace blink | 87 } // namespace blink |
| 89 | 88 |
| 90 #endif // JavaScriptCallFrame_h | 89 #endif // JavaScriptCallFrame_h |
| OLD | NEW |