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

Side by Side Diff: src/api.cc

Issue 1904313004: Remove more dead code after Object.observe removal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mark outdated mozilla tests as FAIL Created 4 years, 7 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
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | 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/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 } 1785 }
1786 } 1786 }
1787 1787
1788 1788
1789 MaybeLocal<Value> Script::Run(Local<Context> context) { 1789 MaybeLocal<Value> Script::Run(Local<Context> context) {
1790 PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Script::Run()", Value) 1790 PREPARE_FOR_EXECUTION_WITH_CALLBACK(context, "v8::Script::Run()", Value)
1791 i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy()); 1791 i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy());
1792 i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate); 1792 i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
1793 TRACE_EVENT0("v8", "V8.Execute"); 1793 TRACE_EVENT0("v8", "V8.Execute");
1794 auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this)); 1794 auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this));
1795 i::Handle<i::Object> receiver(isolate->global_proxy(), isolate); 1795 i::Handle<i::Object> receiver = isolate->global_proxy();
1796 Local<Value> result; 1796 Local<Value> result;
1797 has_pending_exception = 1797 has_pending_exception =
1798 !ToLocal<Value>(i::Execution::Call(isolate, fun, receiver, 0, NULL), 1798 !ToLocal<Value>(i::Execution::Call(isolate, fun, receiver, 0, NULL),
1799 &result); 1799 &result);
1800 RETURN_ON_FAILED_EXECUTION(Value); 1800 RETURN_ON_FAILED_EXECUTION(Value);
1801 RETURN_ESCAPED(result); 1801 RETURN_ESCAPED(result);
1802 } 1802 }
1803 1803
1804 1804
1805 Local<Value> Script::Run() { 1805 Local<Value> Script::Run() {
(...skipping 7032 matching lines...) Expand 10 before | Expand all | Expand 10 after
8838 Address callback_address = 8838 Address callback_address =
8839 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8839 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8840 VMState<EXTERNAL> state(isolate); 8840 VMState<EXTERNAL> state(isolate);
8841 ExternalCallbackScope call_scope(isolate, callback_address); 8841 ExternalCallbackScope call_scope(isolate, callback_address);
8842 callback(info); 8842 callback(info);
8843 } 8843 }
8844 8844
8845 8845
8846 } // namespace internal 8846 } // namespace internal
8847 } // namespace v8 8847 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698