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

Side by Side Diff: src/log.cc

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing wrongly wrapped lines Created 4 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/log.h" 5 #include "src/log.h"
6 6
7 #include <cstdarg> 7 #include <cstdarg>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 PROFILE(isolate_, 1677 PROFILE(isolate_,
1678 CodeCreateEvent( 1678 CodeCreateEvent(
1679 Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script), 1679 Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script),
1680 *code, *shared, isolate_->heap()->empty_string(), line_num, 1680 *code, *shared, isolate_->heap()->empty_string(), line_num,
1681 column_num)); 1681 column_num));
1682 } 1682 }
1683 } else if (shared->IsApiFunction()) { 1683 } else if (shared->IsApiFunction()) {
1684 // API function. 1684 // API function.
1685 FunctionTemplateInfo* fun_data = shared->get_api_func_data(); 1685 FunctionTemplateInfo* fun_data = shared->get_api_func_data();
1686 Object* raw_call_data = fun_data->call_code(); 1686 Object* raw_call_data = fun_data->call_code();
1687 if (!raw_call_data->IsUndefined()) { 1687 if (!raw_call_data->IsUndefined(isolate_)) {
1688 CallHandlerInfo* call_data = CallHandlerInfo::cast(raw_call_data); 1688 CallHandlerInfo* call_data = CallHandlerInfo::cast(raw_call_data);
1689 Object* callback_obj = call_data->callback(); 1689 Object* callback_obj = call_data->callback();
1690 Address entry_point = v8::ToCData<Address>(callback_obj); 1690 Address entry_point = v8::ToCData<Address>(callback_obj);
1691 #if USES_FUNCTION_DESCRIPTORS 1691 #if USES_FUNCTION_DESCRIPTORS
1692 entry_point = *FUNCTION_ENTRYPOINT_ADDRESS(entry_point); 1692 entry_point = *FUNCTION_ENTRYPOINT_ADDRESS(entry_point);
1693 #endif 1693 #endif
1694 PROFILE(isolate_, CallbackEvent(*func_name, entry_point)); 1694 PROFILE(isolate_, CallbackEvent(*func_name, entry_point));
1695 } 1695 }
1696 } else { 1696 } else {
1697 PROFILE(isolate_, CodeCreateEvent(Logger::LAZY_COMPILE_TAG, *code, *shared, 1697 PROFILE(isolate_, CodeCreateEvent(Logger::LAZY_COMPILE_TAG, *code, *shared,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 removeCodeEventListener(jit_logger_); 1903 removeCodeEventListener(jit_logger_);
1904 delete jit_logger_; 1904 delete jit_logger_;
1905 jit_logger_ = NULL; 1905 jit_logger_ = NULL;
1906 } 1906 }
1907 1907
1908 return log_->Close(); 1908 return log_->Close();
1909 } 1909 }
1910 1910
1911 } // namespace internal 1911 } // namespace internal
1912 } // namespace v8 1912 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698