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

Side by Side Diff: src/top.cc

Issue 112082: Fix determining of JS lower stack bottom used in profiler's JS stack tracer to work with Chromium. (Closed)
Patch Set: Created 11 years, 6 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void Top::Iterate(ObjectVisitor* v) { 85 void Top::Iterate(ObjectVisitor* v) {
86 ThreadLocalTop* current_t = &thread_local_; 86 ThreadLocalTop* current_t = &thread_local_;
87 Iterate(v, current_t); 87 Iterate(v, current_t);
88 } 88 }
89 89
90 90
91 void Top::InitializeThreadLocal() { 91 void Top::InitializeThreadLocal() {
92 thread_local_.c_entry_fp_ = 0; 92 thread_local_.c_entry_fp_ = 0;
93 thread_local_.handler_ = 0; 93 thread_local_.handler_ = 0;
94 #ifdef ENABLE_LOGGING_AND_PROFILING
95 thread_local_.js_entry_sp_ = 0;
96 #endif
94 thread_local_.stack_is_cooked_ = false; 97 thread_local_.stack_is_cooked_ = false;
95 thread_local_.try_catch_handler_ = NULL; 98 thread_local_.try_catch_handler_ = NULL;
96 thread_local_.context_ = NULL; 99 thread_local_.context_ = NULL;
97 thread_local_.external_caught_exception_ = false; 100 thread_local_.external_caught_exception_ = false;
98 thread_local_.failed_access_check_callback_ = NULL; 101 thread_local_.failed_access_check_callback_ = NULL;
99 clear_pending_exception(); 102 clear_pending_exception();
100 clear_pending_message(); 103 clear_pending_message();
101 clear_scheduled_exception(); 104 clear_scheduled_exception();
102 thread_local_.save_context_ = NULL; 105 thread_local_.save_context_ = NULL;
103 thread_local_.catcher_ = NULL; 106 thread_local_.catcher_ = NULL;
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 Top::break_access_->Lock(); 927 Top::break_access_->Lock();
925 } 928 }
926 929
927 930
928 ExecutionAccess::~ExecutionAccess() { 931 ExecutionAccess::~ExecutionAccess() {
929 Top::break_access_->Unlock(); 932 Top::break_access_->Unlock();
930 } 933 }
931 934
932 935
933 } } // namespace v8::internal 936 } } // namespace v8::internal
OLDNEW
« src/top.h ('K') | « src/top.h ('k') | test/cctest/test-log-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698