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

Side by Side Diff: src/isolate.h

Issue 11818023: Some more instrumentation to narrow down Failure leaks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | « src/ia32/code-stubs-ia32.cc ('k') | src/isolate.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 // 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 bool has_scheduled_exception() { 608 bool has_scheduled_exception() {
609 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value(); 609 return thread_local_top_.scheduled_exception_ != heap_.the_hole_value();
610 } 610 }
611 void clear_scheduled_exception() { 611 void clear_scheduled_exception() {
612 thread_local_top_.scheduled_exception_ = heap_.the_hole_value(); 612 thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
613 } 613 }
614 614
615 bool IsExternallyCaught(); 615 bool IsExternallyCaught();
616 616
617 bool is_catchable_by_javascript(MaybeObject* exception) { 617 bool is_catchable_by_javascript(MaybeObject* exception) {
618 return (exception != Failure::OutOfMemoryException()) && 618 return (!exception->IsOutOfMemory()) &&
619 (exception != heap()->termination_exception()); 619 (exception != heap()->termination_exception());
620 } 620 }
621 621
622 // Serializer. 622 // Serializer.
623 void PushToPartialSnapshotCache(Object* obj); 623 void PushToPartialSnapshotCache(Object* obj);
624 624
625 // JS execution stack (see frames.h). 625 // JS execution stack (see frames.h).
626 static Address c_entry_fp(ThreadLocalTop* thread) { 626 static Address c_entry_fp(ThreadLocalTop* thread) {
627 return thread->c_entry_fp_; 627 return thread->c_entry_fp_;
628 } 628 }
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 1443
1444 // Mark the native context with out of memory. 1444 // Mark the native context with out of memory.
1445 inline void Context::mark_out_of_memory() { 1445 inline void Context::mark_out_of_memory() {
1446 native_context()->set_out_of_memory(HEAP->true_value()); 1446 native_context()->set_out_of_memory(HEAP->true_value());
1447 } 1447 }
1448 1448
1449 1449
1450 } } // namespace v8::internal 1450 } } // namespace v8::internal
1451 1451
1452 #endif // V8_ISOLATE_H_ 1452 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698