[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9700: Use env.bottom() for debbuger
From: |
Markus Gothe |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9700: Use env.bottom() for debbuger |
Date: |
Tue, 09 Sep 2008 02:30:54 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9700
committer: Markus Gothe <address@hidden>
branch nick: gnash
timestamp: Tue 2008-09-09 02:30:54 +0200
message:
Use env.bottom() for debbuger
modified:
libcore/as_environment.cpp
libcore/as_environment.h
libcore/debugger.cpp
=== modified file 'libcore/as_environment.cpp'
--- a/libcore/as_environment.cpp 2008-09-07 16:59:52 +0000
+++ b/libcore/as_environment.cpp 2008-09-09 00:30:54 +0000
@@ -979,18 +979,6 @@
{
}
-as_value
-as_environment::get_stack_index(unsigned int index)
-{
- return static_cast<as_value>(_stack.value(index));
-}
-
-void
-as_environment::set_stack_index(unsigned int index, as_value val)
-{
- _stack.assign(index, val);
-}
-
void
as_environment::dump_stack(std::ostream& out, unsigned int limit) const
{
=== modified file 'libcore/as_environment.h'
--- a/libcore/as_environment.h 2008-09-07 16:59:52 +0000
+++ b/libcore/as_environment.h 2008-09-09 00:30:54 +0000
@@ -418,23 +418,6 @@
///
as_object* find_object(const std::string& path, const ScopeStack*
scopeStack=NULL) const;
- /// Return content of the stack on a given index.
- //
- /// @param index
- /// index of the stack.
- ///
- as_value get_stack_index(unsigned int index);
-
- /// Assign value of the stack on a given index.
- //
- /// @param index
- /// Index of the stack.
- ///
- /// @param val
- /// Value to assign to the stack-index.
- ///
- void set_stack_index(unsigned int index, as_value val);
-
/// Dump content of the stack to a std::ostream
//
/// @param out
=== modified file 'libcore/debugger.cpp'
--- a/libcore/debugger.cpp 2008-09-07 16:59:52 +0000
+++ b/libcore/debugger.cpp 2008-09-09 00:30:54 +0000
@@ -550,7 +550,7 @@
return;
}
if (env.stack_size()) {
- env.set_stack_index(index, val);
+ env.bottom(index) = val;
}
}
@@ -567,7 +567,7 @@
for (unsigned int i=0, n=env.stack_size(); i<n; i++) {
// FIXME, shouldn't these go to the log as well as to cerr?
cerr << "\t" << i << ": ";
- as_value val = env.get_stack_index(i);
+ as_value val = env.bottom(i);
// FIXME: we want to print the name of the function
// if (val.is_as_function()) {
// // cerr << val.get_symbol_handle() << endl;
@@ -576,7 +576,7 @@
// cerr << name << " ";
// }
// }
- cerr << env.get_stack_index(i);
+ cerr << env.bottom(i);
if (val.is_object()) {
boost::intrusive_ptr<as_object> o = val.to_object();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9700: Use env.bottom() for debbuger,
Markus Gothe <=