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

Side by Side Diff: src/api.cc

Issue 227001: Initialize the can_continue_ field in the TryCatch constructor. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 1184
1185 1185
1186 // --- E x c e p t i o n s --- 1186 // --- E x c e p t i o n s ---
1187 1187
1188 1188
1189 v8::TryCatch::TryCatch() 1189 v8::TryCatch::TryCatch()
1190 : next_(i::Top::try_catch_handler()), 1190 : next_(i::Top::try_catch_handler()),
1191 exception_(i::Heap::the_hole_value()), 1191 exception_(i::Heap::the_hole_value()),
1192 message_(i::Smi::FromInt(0)), 1192 message_(i::Smi::FromInt(0)),
1193 is_verbose_(false), 1193 is_verbose_(false),
1194 can_continue_(true),
1194 capture_message_(true), 1195 capture_message_(true),
1195 js_handler_(NULL) { 1196 js_handler_(NULL) {
1196 i::Top::RegisterTryCatchHandler(this); 1197 i::Top::RegisterTryCatchHandler(this);
1197 } 1198 }
1198 1199
1199 1200
1200 v8::TryCatch::~TryCatch() { 1201 v8::TryCatch::~TryCatch() {
1201 i::Top::UnregisterTryCatchHandler(this); 1202 i::Top::UnregisterTryCatchHandler(this);
1202 } 1203 }
1203 1204
(...skipping 2527 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 3732
3732 3733
3733 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3734 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
3734 HandleScopeImplementer* thread_local = 3735 HandleScopeImplementer* thread_local =
3735 reinterpret_cast<HandleScopeImplementer*>(storage); 3736 reinterpret_cast<HandleScopeImplementer*>(storage);
3736 thread_local->IterateThis(v); 3737 thread_local->IterateThis(v);
3737 return storage + ArchiveSpacePerThread(); 3738 return storage + ArchiveSpacePerThread();
3738 } 3739 }
3739 3740
3740 } } // namespace v8::internal 3741 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698