Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: src/debug.cc

Issue 430523002: Fix for constant pool support and debug (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updated reviewer Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 reinterpret_cast<intptr_t>(new_code->instruction_start()) + 1886 reinterpret_cast<intptr_t>(new_code->instruction_start()) +
1887 new_code->instruction_size(), 1887 new_code->instruction_size(),
1888 new_code->instruction_size(), 1888 new_code->instruction_size(),
1889 reinterpret_cast<intptr_t>(frame->pc()), 1889 reinterpret_cast<intptr_t>(frame->pc()),
1890 reinterpret_cast<intptr_t>(new_pc)); 1890 reinterpret_cast<intptr_t>(new_pc));
1891 } 1891 }
1892 1892
1893 // Patch the return address to return into the code with 1893 // Patch the return address to return into the code with
1894 // debug break slots. 1894 // debug break slots.
1895 frame->set_pc(new_pc); 1895 frame->set_pc(new_pc);
1896 if (FLAG_enable_ool_constant_pool) {
1897 frame->set_constant_pool(new_code->constant_pool());
1898 }
1896 } 1899 }
1897 } 1900 }
1898 1901
1899 1902
1900 class ActiveFunctionsCollector : public ThreadVisitor { 1903 class ActiveFunctionsCollector : public ThreadVisitor {
1901 public: 1904 public:
1902 explicit ActiveFunctionsCollector(List<Handle<JSFunction> >* active_functions, 1905 explicit ActiveFunctionsCollector(List<Handle<JSFunction> >* active_functions,
1903 Object* active_code_marker) 1906 Object* active_code_marker)
1904 : active_functions_(active_functions), 1907 : active_functions_(active_functions),
1905 active_code_marker_(active_code_marker) { } 1908 active_code_marker_(active_code_marker) { }
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
3397 logger_->DebugEvent("Put", message.text()); 3400 logger_->DebugEvent("Put", message.text());
3398 } 3401 }
3399 3402
3400 3403
3401 void LockingCommandMessageQueue::Clear() { 3404 void LockingCommandMessageQueue::Clear() {
3402 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3405 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3403 queue_.Clear(); 3406 queue_.Clear();
3404 } 3407 }
3405 3408
3406 } } // namespace v8::internal 3409 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698