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

Side by Side Diff: src/api.cc

Issue 995013005: Simplify pending message script handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix hardcoded constant. Created 5 years, 9 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 | « include/v8.h ('k') | src/arm/full-codegen-arm.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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 isolate_->CancelScheduledExceptionFromTryCatch(this); 2136 isolate_->CancelScheduledExceptionFromTryCatch(this);
2137 } 2137 }
2138 ResetInternal(); 2138 ResetInternal();
2139 } 2139 }
2140 2140
2141 2141
2142 void v8::TryCatch::ResetInternal() { 2142 void v8::TryCatch::ResetInternal() {
2143 i::Object* the_hole = isolate_->heap()->the_hole_value(); 2143 i::Object* the_hole = isolate_->heap()->the_hole_value();
2144 exception_ = the_hole; 2144 exception_ = the_hole;
2145 message_obj_ = the_hole; 2145 message_obj_ = the_hole;
2146 message_script_ = the_hole;
2147 } 2146 }
2148 2147
2149 2148
2150 void v8::TryCatch::SetVerbose(bool value) { 2149 void v8::TryCatch::SetVerbose(bool value) {
2151 is_verbose_ = value; 2150 is_verbose_ = value;
2152 } 2151 }
2153 2152
2154 2153
2155 void v8::TryCatch::SetCaptureMessage(bool value) { 2154 void v8::TryCatch::SetCaptureMessage(bool value) {
2156 capture_message_ = value; 2155 capture_message_ = value;
(...skipping 5832 matching lines...) Expand 10 before | Expand all | Expand 10 after
7989 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7988 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7990 Address callback_address = 7989 Address callback_address =
7991 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7990 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7992 VMState<EXTERNAL> state(isolate); 7991 VMState<EXTERNAL> state(isolate);
7993 ExternalCallbackScope call_scope(isolate, callback_address); 7992 ExternalCallbackScope call_scope(isolate, callback_address);
7994 callback(info); 7993 callback(info);
7995 } 7994 }
7996 7995
7997 7996
7998 } } // namespace v8::internal 7997 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698