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

Side by Side Diff: src/api.cc

Issue 987353002: Simplify and correctify pending message location handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/isolate.h » ('j') | src/isolate.cc » ('J')
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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 2146 message_script_ = the_hole;
2147 message_start_pos_ = 0;
2148 message_end_pos_ = 0;
2149 } 2147 }
2150 2148
2151 2149
2152 void v8::TryCatch::SetVerbose(bool value) { 2150 void v8::TryCatch::SetVerbose(bool value) {
2153 is_verbose_ = value; 2151 is_verbose_ = value;
2154 } 2152 }
2155 2153
2156 2154
2157 void v8::TryCatch::SetCaptureMessage(bool value) { 2155 void v8::TryCatch::SetCaptureMessage(bool value) {
2158 capture_message_ = value; 2156 capture_message_ = value;
(...skipping 5832 matching lines...) Expand 10 before | Expand all | Expand 10 after
7991 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7989 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7992 Address callback_address = 7990 Address callback_address =
7993 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7991 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7994 VMState<EXTERNAL> state(isolate); 7992 VMState<EXTERNAL> state(isolate);
7995 ExternalCallbackScope call_scope(isolate, callback_address); 7993 ExternalCallbackScope call_scope(isolate, callback_address);
7996 callback(info); 7994 callback(info);
7997 } 7995 }
7998 7996
7999 7997
8000 } } // namespace v8::internal 7998 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/isolate.h » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698