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

Side by Side Diff: src/objects-debug.cc

Issue 174056: Add support for forceful termination of JavaScript execution. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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/messages.cc ('k') | src/objects-inl.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 698
699 void Oddball::OddballVerify() { 699 void Oddball::OddballVerify() {
700 CHECK(IsOddball()); 700 CHECK(IsOddball());
701 VerifyHeapPointer(to_string()); 701 VerifyHeapPointer(to_string());
702 Object* number = to_number(); 702 Object* number = to_number();
703 if (number->IsHeapObject()) { 703 if (number->IsHeapObject()) {
704 ASSERT(number == Heap::nan_value()); 704 ASSERT(number == Heap::nan_value());
705 } else { 705 } else {
706 ASSERT(number->IsSmi()); 706 ASSERT(number->IsSmi());
707 int value = Smi::cast(number)->value(); 707 int value = Smi::cast(number)->value();
708 ASSERT(value == 0 || value == 1 || value == -1 || value == -2); 708 ASSERT(value == 0 || value == 1 || value == -1 ||
709 value == -2 || value == -3);
709 } 710 }
710 } 711 }
711 712
712 713
713 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { 714 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() {
714 CHECK(IsJSGlobalPropertyCell()); 715 CHECK(IsJSGlobalPropertyCell());
715 VerifyObjectField(kValueOffset); 716 VerifyObjectField(kValueOffset);
716 } 717 }
717 718
718 719
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 } 1154 }
1154 current = hash; 1155 current = hash;
1155 } 1156 }
1156 return true; 1157 return true;
1157 } 1158 }
1158 1159
1159 1160
1160 #endif // DEBUG 1161 #endif // DEBUG
1161 1162
1162 } } // namespace v8::internal 1163 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698